[torquedev] Compile error in 2.4-fixes on Ubuntu 9.10

Chris Samuel csamuel at vpac.org
Fri Nov 20 22:10:20 MST 2009


Hi all,

It looks like gcc 4.4.1 refuses to compile the file
src/server/req_jobobit.c due to multiple missing checks
for the return code of link() - it says:

if gcc -DHAVE_CONFIG_H -I. -I. -I../../src/include  -I../../src/include  -DPBS_SERVER_HOME=\"/var/spool/torque\" -DPBS_ENVIRON=\"/var/spool/torque/pbs_environment\" -g -O2 -D_LARGEFILE64_SOURCE -W -Wall -Wno-unused-parameter -Wno-long-long -pedantic -Werror -MT req_jobobit.o -MD -MP -MF ".deps/req_jobobit.Tpo" -c -o req_jobobit.o req_jobobit.c; \
        then mv -f ".deps/req_jobobit.Tpo" ".deps/req_jobobit.Po"; else rm -f ".deps/req_jobobit.Tpo"; exit 1; fi
cc1: warnings being treated as errors
req_jobobit.c: In function ‘on_job_exit’:
req_jobobit.c:912: error: ignoring return value of ‘link’, declared with attribute warn_unused_result
req_jobobit.c:929: error: ignoring return value of ‘link’, declared with attribute warn_unused_result
req_jobobit.c:1215: error: ignoring return value of ‘link’, declared with attribute warn_unused_result
req_jobobit.c:1232: error: ignoring return value of ‘link’, declared with attribute warn_unused_result
make[2]: *** [req_jobobit.o] Error 1

cheers,
Chris
-- 
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