[torquedev] Build error on trunk revision 2136 (with patch)
Glen Beane
glen.beane at gmail.com
Sun May 11 07:45:37 MDT 2008
On Sun, May 11, 2008 at 5:55 AM, Chris Samuel <csamuel at vpac.org> wrote:
> 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"
>
>
> cheers!
> Chris
Thanks Chris, I'll try to get your patch added to trunk today
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.supercluster.org/pipermail/torquedev/attachments/20080511/a8fd4267/attachment.html
More information about the torquedev
mailing list