1. I have not seen that error.  Are you able to build other C++ programs 
using xlC?  What version of make are you using ("make -v")?

2. As I mentioned in the other staf-users posting, you will need to build 
your C++ service on AIX with xlC instead of gcc.
 
Thanks, 
David 

David Bender 
STAF/STAX Development 
IBM Software Group, WPLC 
 
11501 Burnet Rd. 
Bldg. 903-5B002 
Austin, TX 78758-3400 
 
Phone (T/L): 1-512-286-5315 (363-5315) 
ITN: 23635315 
Email: bda...@us.ibm.com 
 





"jander...@talentex.co.uk" <jander...@talentex.co.uk> 
10/12/2009 03:05 AM

To
staf <staf-users@lists.sourceforge.net>
cc

Subject
[staf-users] Problems building on AIX






Two problems:

1. I am trying to build STAF on AIX (oslevel -r: 5200-00, compiler is 
VisualAge 6.0.0.0), and I get the following message:

/repo/staf/src/staf/connproviders/tcp/makefile.connprov_tcp:134: 
warning: overriding commands for target 
`/repo/staf/rel/aix64/staf/retail/lib'
/repo/staf/src/staf/connproviders/tcp/makefile.connprov_tcp:131: 
warning: ignoring old commands for target 
`/repo/staf/rel/aix64/staf/retail/lib'
*** Compiling ucm2bin.o ***
make: execvp: xlC_r: A parameter must be a directory.
make: *** [/repo/staf/obj/aix64/staf/retail/codepage/ucm2bin.o] Error 127


I have tried setting OS_NAME to aix or aix64 and running 'make' or 'make 
staf'. This is version 3.3.2 (STAF332-src.tar.gz)

2. The other problem is, when I use the precompiled STAF for aix and 
build a service using gcc, the linker can't find the relevant staf 
library although it is in the LIBPATH - I think it is because the 
binaries are incompatible:

/usr/local/staf/lib/libSTAF.so: 64-bit XCOFF executable or object module 
not stripped

whereas my service object, made with gcc:

infauth.o: executable (RISC System/6000) or object module not stripped

A bit of searching shows that gcc should produce 64 XCOFF if OBJECT_MODE 
is set to 64, but in that case it produces an assembler error instead - 
what is the correct way to build services on AIX, then?

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to