Package: clips
Severity: normal
Tags: patch

When building 'clips' on amd64 with gcc-4.0,
I get the following error:

cc -g -O2 -fno-common  -I -I. -I../../clipssrc/   -c -o xclipstext.o 
xclipstext.c
In file included from xclipstext.c:57:
xmenu_exec.h:32:7: warning: no newline at end of file
xclipstext.c: In function '_DeleteOrKill':
xclipstext.c:441: warning: cast to pointer from integer of different size
xclipstext.c: At top level:
xclipstext.c:584: error: static declaration of 'compose_status' follows 
non-static declaration
xmain.h:50: error: previous declaration of 'compose_status' was here
make[1]: *** [xclipstext.o] Error 1
make[1]: Leaving directory `/clips-6.21/x-prjct/xinterface'
make: *** [build-x] Error 2

With the attached patch 'clips' can be compiled
on amd64 using gcc-4.0.

Regards
Andreas Jochens

diff -urN ../tmp-orig/clips-6.21/x-prjct/xinterface/xclipstext.c 
./x-prjct/xinterface/xclipstext.c
--- ../tmp-orig/clips-6.21/x-prjct/xinterface/xclipstext.c      2005-03-07 
16:47:18.243113065 +0100
+++ ./x-prjct/xinterface/xclipstext.c   2005-03-07 16:43:59.756424658 +0100
@@ -581,7 +581,7 @@
  *
  ************************************************************/
 
-static XComposeStatus compose_status = {NULL, 0};
+static XComposeStatus compose_status_local = {NULL, 0};
 
 /*     Function Name: AutoFill
  *     Description: Breaks the line at the previous word boundry when
@@ -632,7 +632,7 @@
   XawTextBlock text;
   
   MoveEndOfFile(w, event);
-  if ( (text.length = XLookupString (&event->xkey, strbuf, BUFSIZ, &keysym, 
&compose_status)) == 0)
+  if ( (text.length = XLookupString (&event->xkey, strbuf, BUFSIZ, &keysym, 
&compose_status_local)) == 0)
     return;
   if((!quit_get_event)&&(get_clips_command())&& (!GetManagerList()))
    {


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to