Package: eli
Version: 4.4.1-1
Severity: normal
Tags: patch
When building 'eli' on amd64/unstable with gcc-4.0,
I get the following error:
make[4]: Entering directory `/eli-4.4.1/Eli/pkg/noosa'
x86_64-linux-gcc -I/eli-4.4.1/Eli/pkg/Adt -I/eli-4.4.1/Eli/pkg/eli
-I/usr/include/tcl8.4 -I/usr/X11R6/include -c -o child.o child.c
x86_64-linux-gcc -I/eli-4.4.1/Eli/pkg/Adt -I/eli-4.4.1/Eli/pkg/eli
-I/usr/include/tcl8.4 -I/usr/X11R6/include -c -o handlers.o handlers.c
x86_64-linux-gcc -I/eli-4.4.1/Eli/pkg/Adt -I/eli-4.4.1/Eli/pkg/eli
-I/usr/include/tcl8.4 -I/usr/X11R6/include -c -o main.o main.c
x86_64-linux-gcc -I/eli-4.4.1/Eli/pkg/Adt -I/eli-4.4.1/Eli/pkg/eli
-I/usr/include/tcl8.4 -I/usr/X11R6/include -I/eli-4.4.1/Eli/pkg/Adt
-I/eli-4.4.1/Eli/pkg/eli -c /eli-4.4.1/Eli/pkg/Adt/obstack.c
x86_64-linux-gcc -I/eli-4.4.1/Eli/pkg/Adt -I/eli-4.4.1/Eli/pkg/eli
-I/usr/include/tcl8.4 -I/usr/X11R6/include -c -o wattr.o wattr.c
wattr.c: In function 'BuildListsRoot':
wattr.c:304: error: invalid lvalue in increment
wattr.c:309: warning: assignment discards qualifiers from pointer target type
make[4]: *** [wattr.o] Error 1
make[4]: Leaving directory `/eli-4.4.1/Eli/pkg/noosa'
With the attached patch 'eli' can be compiled
on amd64 using gcc-4.0.
Regards
Andreas Jochens
diff -urN ../tmp-orig/eli-4.4.1/Eli/pkg/Adt/obstack.h ./Eli/pkg/Adt/obstack.h
--- ../tmp-orig/eli-4.4.1/Eli/pkg/Adt/obstack.h 1998-03-20 13:08:44.000000000
+0100
+++ ./Eli/pkg/Adt/obstack.h 2005-04-11 16:01:52.030674514 +0200
@@ -458,7 +458,8 @@
({ struct obstack *__o = (OBSTACK); \
if (__o->next_free + sizeof (void *) > __o->chunk_limit) \
_obstack_newchunk (__o, sizeof (void *)); \
- *((void **)__o->next_free)++ = ((void *)datum); \
+ *((void **)__o->next_free) = ((void *)datum); \
+ __o->next_free = ((void **)__o->next_free) + 1; \
(void) 0; })
#define obstack_int_grow(OBSTACK,datum)
\
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]