Bug 761931 (GLUSTER-199) - Unable to build with booster under Debian 3.1 (Sarge) / GCC 3.3.5
Summary: Unable to build with booster under Debian 3.1 (Sarge) / GCC 3.3.5
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: GLUSTER-199
Product: GlusterFS
Classification: Community
Component: booster
Version: mainline
Hardware: i386
OS: Linux
low
low
Target Milestone: ---
Assignee: Shehjar Tikoo
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2009-08-10 22:01 UTC by cory.meyer
Modified: 2010-02-23 10:02 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Regression: RTNR
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:


Attachments (Terms of Use)

Description cory.meyer 2009-08-10 22:01:09 UTC
I'm having troubles to build GlusterFS-2.0.6-rc2 under Debian 3.1 and GCC 3.3.5 Glusterfs-2.0.2 built just fine.  Commenting out GF_BOOSTER_SUBDIR and Make completes minus Booster.   Not much and issue for me though could be for someone else on an old outdated OS who should really upgrade to something supported. 

localhost:/usr/src/glusterfs-2.0.6rc2# gcc -v 
Reading specs from /usr/lib/gcc-lib/i486-linux/3.3.5/specs
Configured with: ../src/configure -v --enable-languages=c,c++,java,f77,pascal,objc,ada,treelang --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-gxx-include-dir=/usr/include/c++/3.3 --enable-shared --enable-__cxa_atexit --with-system-zlib --enable-nls --without-included-gettext --enable-clocale=gnu --enable-debug --enable-java-gc=boehm --enable-java-awt=xlib --enable-objc-gc i486-linux
Thread model: posix
gcc version 3.3.5 (Debian 1:3.3.5-13)

localhost:/usr/src/glusterfs-2.0.6rc2# CFLAGS="-O0 -g" ./configure --sysconfdir=/etc --prefix=/usr/local/glusterfs-2.0.6-rc2-debug 


Make results: 

make[3]: Entering directory `/usr/src/glusterfs-2.0.6rc2/booster/src'
if /bin/sh ../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I. -I../..  -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I../../libglusterfsclient/src -I../../libglusterfs/src -DDATADIR=\"/usr/local/glusterfs-2.0.6-rc2-debug/var\" -DCONFDIR=\"/etc/glusterfs\"  -I../../libglusterfsclient/src/ -D_GNU_SOURCE -DGF_LINUX_HOST_OS -fPIC -Wall -pthread  -shared -nostartfiles -O0 -g -MT libglusterfs_booster_la-booster.lo -MD -MP -MF ".deps/libglusterfs_booster_la-booster.Tpo" -c -o libglusterfs_booster_la-booster.lo `test -f 'booster.c' || echo './'`booster.c; \
then mv -f ".deps/libglusterfs_booster_la-booster.Tpo" ".deps/libglusterfs_booster_la-booster.Plo"; else rm -f ".deps/libglusterfs_booster_la-booster.Tpo"; exit 1; fi
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I. -I../.. -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE -I../../libglusterfsclient/src -I../../libglusterfs/src -DDATADIR=\"/usr/local/glusterfs-2.0.6-rc2-debug/var\" -DCONFDIR=\"/etc/glusterfs\" -I../../libglusterfsclient/src/ -D_GNU_SOURCE -DGF_LINUX_HOST_OS -fPIC -Wall -pthread -nostartfiles -O0 -g -MT libglusterfs_booster_la-booster.lo -MD -MP -MF .deps/libglusterfs_booster_la-booster.Tpo -c booster.c  -fPIC -DPIC -o .libs/libglusterfs_booster_la-booster.o
booster.c:470: error: syntax error before "__nonnull"
booster.c:472: error: syntax error before "__nonnull"
booster.c:1357: error: syntax error before "__nonnull"
booster.c:1359: error: syntax error before "__nonnull"
make[3]: *** [libglusterfs_booster_la-booster.lo] Error 1
make[3]: Leaving directory `/usr/src/glusterfs-2.0.6rc2/booster/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/src/glusterfs-2.0.6rc2/booster'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/src/glusterfs-2.0.6rc2'
make: *** [all] Error 2

Comment 1 Shehjar Tikoo 2009-08-12 02:35:12 UTC
The error has more to do with glibc than gcc, most probably because of our use of the REDIRECT macro in booster.

Cory, can you please tell me the glibc version?

Thanks

Comment 2 cory.meyer 2009-08-12 10:37:39 UTC
Here are the libc packages which are installed.  

libc5-5.4.46-15
libc6-2.3.2.ds1-22sarge
libc6-dev-2.3.2.ds1-22sarge

Comment 3 Shehjar Tikoo 2010-01-28 04:08:00 UTC
Cory,

This bug is caused due to booster using macros that are available only in later releases of libc. Is it possible for you to test with recent libc versions please?

Thanks

Comment 4 Shehjar Tikoo 2010-02-23 07:02:23 UTC
please re-open if the problem surfaces again. Closing this bug on account of no response.


Note You need to log in before you can comment on or make changes to this bug.