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
Created attachment 146018 [details] emerge log
Created attachment 146022 [details] emerge --info
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.
(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
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.