I tested aix builds of ftp://ftp.openssl.org/snapshot/openssl-0.9.7-stable-SNAP-20030118.tar.gz
The results: --------------------------------------------------------------- ./Configure aix43-cc ... shared .... - succeeds --------------------------------------------------------------- ./config ... shared - script fails with ./config[59]: syntax error at line 442 : `fi' unexpected (looks unrelated to changes concerning aix) --------------------------------------------------------------- ./Configure aix64-cc ... (without shared) - succeeds --------------------------------------------------------------- ./Configure aix64-cc ... shared .... - build fails with only libcrypto.a built (no libssl.a) and message + ld -r -o libcrypto.o -bnogc libcrypto.a ld: 0711-245 WARNING: No csects or exported symbols have been saved. + nm -Pg libcrypto.o + grep [BD] + cut -f1 -d + 1> libcrypto.exp + cc -q64 -G -bE:libcrypto.exp -bM:SRE -o libcrypto.so.0.9.7 libcrypto.o -L. ld: 0711-738 ERROR: Input file libcrypto.o: XCOFF32 object files are not allowed in 64-bit mode. make[3]: *** [do_aix-shared] Error 1 --------------------------------------------------------------- The main concern was aix43-cc shared which is OK. So, at this time it would be better to leave aix64-cc without shared and fix "config" script. I would also recommend recommend to check "Configure" so that one could just type "./Configure cc ..." or "./Configure gcc ..." and automatically get the correct default version, like "solaris-sparcv9-cc" without typing it completely. For example, when I try to build "./Configure [cc/gcc]..." in solaris, openssl-0.9.7 (instead of "./Configure solaris-sparcv9-[cc/gcc] ..."), it fails unless Makefile.ssl is manually modified (this less important though). Vladimir -----Original Message----- From: Andy Polyakov via RT [mailto:[EMAIL PROTECTED]] Sent: Saturday, January 18, 2003 7:25 AM To: Shklover, Vladimir Cc: [EMAIL PROTECTED] Subject: Re: [openssl.org #463] PATCH ??? I wasn't ready with it... Pressed wrong button... > 1)I didn't give any preference to aix-cc; But you've suggested to change it:-) > I just changed > in config script the default CC=gcc It would be possible to fix even gcc shared build, if we had -bautoexp and no hardcoded SHAREDFLAGS. It this case we would be able to put necessary flags as -Wl,-bautoexp -Wl,-bM:SRE, etc directly into the aix43-gcc config line... Never mind... > to CC=cc for AIX case only. Is vendor compiler optional on AIX? Because if it is, then you've got to test if cc is actually present. Normally it's done by passing a "tell me what version you are" flag to cc and examining the output. As I can't find such flag in AIX cc manual page so that we probably have to go for '(cc) 2>&1 | grep -iv "command not found" > /dev/null && CC=cc'... > 3)My understanding is that our AIX machine should support 64 bits, > at least static libraries libssl.a & libcrypto.a were built > but aix-shared target failed. So, it there is a correct line > in the Makefile for aix64-cc, I hope it will build shared libraries. Try ftp://ftp.openssl.org/snapshot/openssl-0.9.7-stable-SNAP-20030118.tar.gz [or later] as it becomes available. I mean try even './Configure aix64-cc shared' and report how it went. A. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]