[torqueusers] torque-1.2.0p0 release will not compile on AIX 5.2 with XLC (and how I worked around it)

Chris Samuel csamuel at vpac.org
Thu Feb 10 17:22:04 MST 2005


This was simpler.

xlc -g -lodm -lcfg -I../include -I../../src/include -I./aix5 -DHAVE_CONFIG_H -DPBS_MOM -DDEMUX=\"/usr/local/sbin/pbs_demux\"  -DRCP_PATH=\"/usr/local/sbin/pbs_rcp\" -c start_exec.c
"start_exec.c", line 764.37: 1506-280 (E) Function argument assignment between types "unsigned int*" and "int*" is not allowed.
"start_exec.c", line 779.36: 1506-280 (E) Function argument assignment between types "unsigned int*" and "int*" is not allowed.
"start_exec.c", line 2695.15: 1506-045 (S) Undeclared identifier __func__.
"start_exec.c", line 3493.58: 1506-280 (E) Function argument assignment betweentypes "unsigned int*" and "int*" is not allowed.

Fixing that __func__ to be "start_process" means it
compiles with those assignment warnings, and
then fails with:
xlc -g -lodm -lcfg -I../include -I../../src/include -I./aix5 -DHAVE_CONFIG_H -DPBS_MOM -DDEMUX=\"/usr/local/sbin/pbs_demux\"  -DRCP_PATH=\"/usr/local/sbin/pbs_rcp\" -c ./aix5/mom_mach.c
[...]
"./aix5/mom_mach.c", line 372.50: 1506-068 (S) Operation between types "char*" and "int" is not allowed.

Changing:

 if ((odm_path = odm_set_path("/etc/objrepos")) != -1)
to:
 if ((odm_path = odm_set_path("/etc/objrepos")) != (char *) -1)

makes that file compile.

cheers!
Chris
-- 
 Christopher Samuel - (03)9925 4751 - VPAC Systems & Network Admin
 Victorian Partnership for Advanced Computing http://www.vpac.org/
 Bldg 91, 110 Victoria Street, Carlton South, VIC 3053, Australia

-------------- 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/20050211/9482e1f8/attachment.bin


More information about the torqueusers mailing list