Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 213279

Summary: sys-cluster/torque-2.3.0 emerge fails: 'NULL' undeclared
Product: Gentoo Linux Reporter: Erik Zeek <zeekec>
Component: New packagesAssignee: Gentoo Cluster Team <cluster>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge log
emerge --info

Description Erik Zeek 2008-03-13 15:11:49 UTC
I'm getting the following emerging the latest torque (full log and emerge --info to follow):

if /bin/sh ../../../libtool --mode=compile --tag=CC i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/include  -I../../../src/include -I../Libdis -DIFF_PATH=\"/usr/sbin/pbs_iff\" -DPBS_DEFAULT_FILE=\"/var/spool/torque/server_name\" -DNDEBUG  -O2 -mtune=native -march=native -pipe -mfpmath=sse -fomit-frame-pointer -D_LARGEFILE64_SOURCE -MT tm.lo -MD -MP -MF ".deps/tm.Tpo" -c -o tm.lo `test -f '../Libifl/tm.c' || echo './'`../Libifl/tm.c; \
        then mv -f ".deps/tm.Tpo" ".deps/tm.Plo"; else rm -f ".deps/tm.Tpo"; exit 1; fi
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I../../../src/include -I../Libdis -DIFF_PATH=\"/usr/sbin/pbs_iff\" -DPBS_DEFAULT_FILE=\"/var/spool/torque/server_name\" -DNDEBUG -O2 -mtune=native -march=native -pipe -mfpmath=sse -fomit-frame-pointer -D_LARGEFILE64_SOURCE -MT tm.lo -MD -MP -MF .deps/tm.Tpo -c ../Libifl/tm.c  -fPIC -DPIC -o .libs/tm.o
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I../../../src/include -I../Libdis -DIFF_PATH=\"/usr/sbin/pbs_iff\" -DPBS_DEFAULT_FILE=\"/var/spool/torque/server_name\" -DNDEBUG -O2 -mtune=native -march=native -pipe -mfpmath=sse -fomit-frame-pointer -D_LARGEFILE64_SOURCE -MT tm.lo -MD -MP -MF .deps/tm.Tpo -c ../Libifl/tm.c -o tm.o >/dev/null 2>&1
if /bin/sh ../../../libtool --mode=compile --tag=CC i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/include  -I../../../src/include -I../Libdis -DIFF_PATH=\"/usr/sbin/pbs_iff\" -DPBS_DEFAULT_FILE=\"/var/spool/torque/server_name\" -DNDEBUG  -O2 -mtune=native -march=native -pipe -mfpmath=sse -fomit-frame-pointer -D_LARGEFILE64_SOURCE -MT list_link.lo -MD -MP -MF ".deps/list_link.Tpo" -c -o list_link.lo `test -f '../Libifl/list_link.c' || echo './'`../Libifl/list_link.c; \
        then mv -f ".deps/list_link.Tpo" ".deps/list_link.Plo"; else rm -f ".deps/list_link.Tpo"; exit 1; fi
 i686-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I../../../src/include -I../Libdis -DIFF_PATH=\"/usr/sbin/pbs_iff\" -DPBS_DEFAULT_FILE=\"/var/spool/torque/server_name\" -DNDEBUG -O2 -mtune=native -march=native -pipe -mfpmath=sse -fomit-frame-pointer -D_LARGEFILE64_SOURCE -MT list_link.lo -MD -MP -MF .deps/list_link.Tpo -c ../Libifl/list_link.c  -fPIC -DPIC -o .libs/list_link.o
../Libifl/list_link.c: In function 'insert_link':
../Libifl/list_link.c:174: error: 'NULL' undeclared (first use in this function)
../Libifl/list_link.c:174: error: (Each undeclared identifier is reported only once
../Libifl/list_link.c:174: error: for each function it appears in.)
make[3]: *** [list_link.lo] Error 1
make[3]: Leaving directory `/gentoo/tmp/portage/sys-cluster/torque-2.3.0/work/torque-2.3.0/src/lib/Libpbs'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/gentoo/tmp/portage/sys-cluster/torque-2.3.0/work/torque-2.3.0/src/lib'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/gentoo/tmp/portage/sys-cluster/torque-2.3.0/work/torque-2.3.0/src'
make: *** [all-recursive] Error 1
Comment 1 Erik Zeek 2008-03-13 15:13:34 UTC
Created attachment 146018 [details]
emerge log
Comment 2 Erik Zeek 2008-03-13 15:15:05 UTC
Created attachment 146022 [details]
emerge --info
Comment 3 Justin Bronder (RETIRED) gentoo-dev 2008-03-13 16:04:32 UTC
Removing -DNDEBUG from your CPPFLAGS will solve this for now, and I've let an upstream developer know about the problem.

Leaving this bug open until we get a real fix.
Comment 4 Erik Zeek 2008-03-13 16:30:16 UTC
(In reply to comment #3)
> Removing -DNDEBUG from your CPPFLAGS will solve this for now, and I've let an
> upstream developer know about the problem.
> 
> Leaving this bug open until we get a real fix.
> 

Thanks for the quick diagnosis.

Erik
Comment 5 Justin Bronder (RETIRED) gentoo-dev 2008-03-14 17:29:22 UTC
Glen Beane just supplied me with a patch, and I've added it to cvs.  Patch also contains a fix for a memory leak in pbs_mom.

torque-2.3.0-r1 should be on the mirrors soon.