Bug 213279 - sys-cluster/torque-2.3.0 emerge fails: 'NULL' undeclared
Bug#: 213279 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: hp-cluster@gentoo.org Reported By: zeekec@mad.scientist.com
Component: Ebuilds
URL: 
Summary: sys-cluster/torque-2.3.0 emerge fails: 'NULL' undeclared
Keywords:  
Status Whiteboard: 
Opened: 2008-03-13 15:11 0000
Description:   Opened: 2008-03-13 15:11 0000
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 From Erik Zeek 2008-03-13 15:13:34 0000 -------
Created an attachment (id=146018) [details]
emerge log

------- Comment #2 From Erik Zeek 2008-03-13 15:15:05 0000 -------
Created an attachment (id=146022) [details]
emerge --info

------- Comment #3 From Justin Bronder 2008-03-13 16:04:32 0000 -------
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 From Erik Zeek 2008-03-13 16:30:16 0000 -------
(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 From Justin Bronder 2008-03-14 17:29:22 0000 -------
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.