Hello list
When building gtk-gnutella-current on NetBSD-5.0rc4/amd64 I get this
compile error:
cc -c -I../.. -I.. -I/usr/pkg/include/glib/glib-2.0
-I/usr/pkg/lib/glib-2.0/include -DCURDIR=src/lib -O2 -g -pipe
-momit-leaf-frame-pointer -W -Wall -Wformat=2 -Wshadow atoms.c
atoms.c: In function 'atom_get':
atoms.c:837: error: duplicate case value
atoms.c:837: error: previously used here
gmake[3]: *** [atoms.o] Error 1
I think it relates this this entry in config.h
%grep MEM_ALI work/gtk-gnutella/config.h
/* MEM_ALIGNBYTES:
#define MEM_ALIGNBYTES 16 /**/
Building the latest gtk-gnutella release, 0.96.5, gives this in the
generated config.h:
%grep 'define MEM_ALI' work/gtk-gnutella-0.96.5/config.h
#define MEM_ALIGNBYTES 8 /**/
Changing the config.h file entry 16 to 8 gets me through the build on
gtk-gnutella-current, but I have not tried starting the binary.
Investigating the alignbytes detection program embedded in the
configure script reveals that it is the long double type which bumps up
the alignment constraint to 16. In the 0.96.5 release, only char and
double types are checked.
Any comments? I am not really sure how to proceed here.. I assume this
works fine on other 64bit OSes?
Best regards,
Lars Nordlund
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
gtk-gnutella-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtk-gnutella-devel