[torqueusers] FYI: Patch6 compiler warnings

Rick.Ingham at expeditors.com Rick.Ingham at expeditors.com
Mon Sep 12 10:47:20 MDT 2005

It may not be important, butI noticed these compiler warnings.  Personally,
I like to try to remove compiler warnings with more kosher coding, even if
the code techically is not incorrect.

gcc  -g -I../../src/include -I../../src/include -DHAVE_CONFIG_H -o
pbs_server accounting.o attr_recov.o dis_read.o geteusernam.o iss
ue_request.o job_attr_def.o job_func.o job_recov.o job_route.o list_link.o
node_attr_def.o node_func.o node_manager.o pbsd_init.o pb
sd_main.o process_request.o queue_attr_def.o queue_func.o queue_recov.o
reply_send.o req_delete.o req_getcred.o req_holdjob.o req_jo
bobit.o req_locate.o req_manager.o req_message.o req_modify.o req_movejob.o
req_quejob.o req_register.o req_rerun.o req_rescq.o req_
runjob.o req_signal.o req_track.o req_select.o req_shutdown.o req_stat.o
resc_def_all.o run_sched.o stat_job.o svr_attr_def.o svr_ch
k_owner.o svr_connect.o svr_func.o svr_jobfunc.o svr_mail.o svr_movejob.o
svr_recov.o svr_resccost.o svr_task.o ../lib/Libattr/libat
tr.a ../lib/Liblog/liblog.a ../lib/Libnet/libnet.a ../lib/Libpbs/libpbs.a
../lib/Libsite/libsite.a  -ldl -lkvm -lelf -lsocket -lnsl
ld: warning: symbol `connection' has differing sizes:
        (file svr_connect.o value=0x5000; file
../lib/Libpbs/libpbs.a(PBS_data.o) value=0x64);
        svr_connect.o definition taken

gcc -g -I../../src/include -I../../src/include -DHAVE_CONFIG_H -o pbs_sched
pbs_sched.o get_4byte.o ../../src/scheduler.cc/samples/f
ifo/pbs_sched.a ../lib/Libnet/libnet.a ../lib/Liblog/liblog.a
../lib/Libpbs/libpbs.a -ldl -lkvm -lelf -lsocket -lnsl
ld: warning: symbol `connection' has differing sizes:
        (file pbs_sched.o value=0x5000; file
../lib/Libpbs/libpbs.a(PBS_data.o) value=0x64);
        pbs_sched.o definition taken

This is not causing any problem that I know of, but if it is easily
corrected to avoid compiler warnings, that would be nice.  In my
experience, compiler warnings usually indicate a deaper problem, so I try
to avoid ignoring them, and try to avoid generating them.

--- Rick Ingham, Expeditors Int'l / IS
---- RICK.INGHAM at EXPEDITORS.COM  (206) 674-3400 x3284   FAX  246-3197

More information about the torqueusers mailing list