[torquedev] Build error on trunk revision 2136 (with patch)

Chris Samuel csamuel at vpac.org
Sun May 11 03:55:57 MDT 2008

This is on Ubuntu 8.04 with GCC 4.2.3 (Ubuntu 4.2.3-2ubuntu7).

if gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/include  -I../../../src/include -DPBS_MOM -DDEMUX=\"/usr/local/torque-trunk/sbin/pbs_demux\"   -g -O2 -D_LARGEFILE64_SOURCE -W -Wall -Wno-unused-parameter -Wno-long-long -pedantic -Werror -MT cpuset.o -MD -MP -MF ".deps/cpuset.Tpo" -c -o cpuset.o cpuset.c; \
        then mv -f ".deps/cpuset.Tpo" ".deps/cpuset.Po"; else rm -f ".deps/cpuset.Tpo"; exit 1; fi
cc1: warnings being treated as errors
cpuset.c: In function ‘initialize_root_cpuset’:
cpuset.c:219: warning: implicit declaration of function ‘MAX’
cpuset.c:219: warning: assignment makes pointer from integer without a cast
make[3]: *** [cpuset.o] Error 1

This patch fixes it:

$ svn diff
Index: src/resmom/linux/cpuset.c
--- src/resmom/linux/cpuset.c   (revision 2136)
+++ src/resmom/linux/cpuset.c   (working copy)
@@ -6,6 +6,7 @@
 #include <sys/types.h>
 #include <signal.h>
 #include <unistd.h>
+#include <sys/param.h>

 #include "libpbs.h"
 #include "attribute.h"

Christopher Samuel - (03) 9925 4751 - Systems Manager
 The Victorian Partnership for Advanced Computing
 P.O. Box 201, Carlton South, VIC 3053, Australia
VPAC is a not-for-profit Registered Research Agency

More information about the torquedev mailing list