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

David Jackson jacksond at clusterresources.com
Mon Feb 14 16:12:30 MST 2005


Chris,

  Changes have benn made to address the warnings and build issues for
AIX5

Dave

On Fri, 2005-02-11 at 11:22 +1100, Chris Samuel wrote:
> 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
> _______________________________________________
> torqueusers mailing list
> torqueusers at supercluster.org
> http://supercluster.org/mailman/listinfo/torqueusers



More information about the torqueusers mailing list