The dladdr() function used in DSO_pathbyaddr within
crypto/dso/dso_dlfcn.c is not a standard function, though
quite a few OSs appear to have it. Those that specifically
don't (that I've tested) are:

AIX 4.3.3+
AIX 5.1 (though 5.2/5.3 may have it, though it may be
         Itanium only, not POWER).
SCO Openserver 5 (OpenServer 6 looks like it has it)

The odd thing is grepping through the entire source tree,
I can find no reference to that function.  Nothing appears
to ever call it.  Simply #if 0'ing it out, compilation completes
successfully on those other platforms, and 'make test' succeeds.
I've also checked the latest 0.9.7 snapshot, and the situation
is the same as the official OpenSSL-fips-1.0 release.  Anyone
know the particular reason for the existence of this, or was
it something that was started on and never needed/finished ?

On AIX, I am getting this error after that last fix:
gcc -I. -I.. -I../include -DOPENSSL_SYSNAME_AIX -DOPENSSL_THREADS
-D_THREAD_SAFE -DDSO_DLFCN -DHAVE_DLFCN_H -DOPENSSL_NO_KRB5 -O3
-DB_ENDIAN -DHMAC_EXT=\"${HMAC_EXT:-sha1}\"
-DFINGERPRINT_PREMAIN_DSO_LOAD -o fips_premain_dso fips_premain.c \
        ../libcrypto.a
ld: 0711-317 ERROR: Undefined symbol: .
ld: 0711-345 Use the -bloadmap or -bnoquiet option to obtain more
information.
collect2: ld returned 8 exit status


Looking at ../libcrypto.a, that '.' symbol is showing as undefined
in fipscanister.o ... It appears as though in fips_canister.c, there
is some inline assembler for PPC.  I'm using GCC 3.4.4, so I'm thinking
that it's wanting GAS in order to properly compile it, but my GCC
version is using AIX's native 'as'.  I'm going to rebuild GCC now
to use binutils (GAS), and see if that resolves the problem.  The only
other way to fix it is to use IBMs xlC compiler (which I don't have),
or to modify the fips_canister.c to use the same _AIX fallback as if
it was using xlC instead of GCC, but obviously I can't modify that
file since it's signed ... Anyone that can provide their input on
this would be greatly appreciated!

Thanks!
-Brad
______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
Development Mailing List                       [email protected]
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to