[torqueusers] problems with build and gcc compiler

Garrick Staples garrick at usc.edu
Mon Jul 14 16:28:26 MDT 2008


On Mon, Jul 14, 2008 at 02:22:33PM +0200, Juergen Kabelitz alleged:
> Hello folks,
> 
> I will build the torque system on a system with open suse version 11

Which version of torque are you building?


> uname -a
> Linux tamaro 2.6.25.9-0.2-default #1 SMP 2008-06-28 00:00:07 +0200 x86_64 x86_64 x86_64 GNU/Linux
> 
> When I build the system I got an error message.
> 
> gcc -DHAVE_CONFIG_H -I. -I. -I../../../src/include -I../../../src/include -I../Libdis -DIFF_PATH=\"/usr/local/sbin/pbs_iff\" -DPBS_DEFAULT_FILE=\"/var/spool/torque/server_name\" -g -O2 -D_LARGEFILE64_SOURCE -W -Wall -Wno-unused-parameter -Wno-long-long -pedantic -Werror -MT md5.lo -MD -MP -MF .deps/md5.Tpo -c ../Libnet/md5.c  -fPIC -DPIC -o .libs/md5.o
> cc1: warnings being treated as errors
> ../Libnet/net_server.c: In function ?netcounter_incr?:
> ../Libnet/net_server.c:152: error: call to function ?time? without a real prototype
> ../Libnet/net_server.c:118: note: ?time? was declared here
> ../Libnet/net_server.c: In function ?wait_request?:
> ../Libnet/net_server.c:445: error: call to function ?time? without a real prototype
> ../Libnet/net_server.c:118: note: ?time? was declared here
> ../Libnet/net_server.c:478: error: call to function ?time? without a real prototype
> ../Libnet/net_server.c:118: note: ?time? was declared here
> ../Libnet/net_server.c: In function ?accept_conn?:
> ../Libnet/net_server.c:543: error: call to function ?time? without a real prototype
> ../Libnet/net_server.c:118: note: ?time? was declared here
> ../Libnet/net_server.c: In function ?add_conn?:
> ../Libnet/net_server.c:608: error: call to function ?time? without a real prototype
> ../Libnet/net_server.c:118: note: ?time? was declared here
> cc1: warnings being treated as errors

If you add an include for time.h to net_server.c, does that fix it?


> With the option -disable-gcc-warnings the build are made.

I see -Werror in the compile line above, so this is not true.  

-- 
Garrick Staples, GNU/Linux HPCC SysAdmin
University of Southern California

Please avoid sending me Word or PowerPoint attachments.
See http://www.gnu.org/philosophy/no-word-attachments.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.supercluster.org/pipermail/torqueusers/attachments/20080714/3773bc44/attachment.bin


More information about the torqueusers mailing list