[xmlsec] Xmlsec not ok with AIX 5.2
asso at cp.finances.gouv.fr
Fri Jan 6 03:57:34 PST 2006
Well, I try again other ways to compile and I think I found a way.
Perhaps it could be useful to include it inside the doc
or the configure.
I figure one way I didn't check with your question... So Thanks a lot !
First I answear to your question :
It is correct. I decided to compile myself OpenSSL
and I did the self-test and all were ok for OpenSSL.
Now for Xmlsec, the compile part is ok, but when
I do make check, all tests are failed.
In the log they all say the same thing :
r=7:io function failed:filename=libxmlsec1-openssl.so
ibraryCreate:error=1:xmlsec library function failed:crypto=openssl
yFunctions:error=1:xmlsec library function failed:
Error: unable to load xmlsec-openssl library. Make sure you have
this it installed, check shared libraries path (LD_LIBRARY_PATH)
envornment variable or use "--crypto" option to specify different
Error: initialization failed
Here is my env : (part of it)
LD_LIBRARY_PATH=/opt/XML/lib/... (even if not necessary on AIX)
The only thing I found is that OpenSSL (0.9.8) is only compiled as static library,
and OpenSSL(0.9.7) given by IBM (precompiled) is both shared and static version.
Now my way to get it working :
I compile OpenSSL 0.9.8 in the normal way (aix-gcc) not shared since it is not possible
according to the documentation (AIX + GCC KO, but AIX + XLC (IBM compiler) OK).
Then I compile xmlenc with the following options :
./configure --prefix=dest --with-libxml=... -with-libxslt=... --with-openssl=where_I_insta
-- enable-crypto-dl=no --enable-apps-crypto-dl=no
I was always using --enable-shared=no previously which brokes the compile step.
Now, without specified --enabled-shared but only --enable-(apps)-crypto-dl=no,
it compiles well and as far as I see right now, the beginning of the test (check) is ok
except from merlin-xmldsig-twenty-three/signature-external-(b64)-dsa,
I send later on the final status.
I will try to change of OpenSSL Library to see if it changes something in the check, as I
now how to compile it.
So, compiling with gcc on AIX needs to disable crypto-dl to work and of course
to add the libcrypto.a staticly to the program when we compile it with xmlenc.
Hope this can help other users...
----- Original Message -----
From: "Aleksey Sanin" <aleksey at aleksey.com>
To: "ASSO" <asso at cp.finances.gouv.fr>
Cc: <xmlsec at aleksey.com>
Sent: Friday, January 06, 2006 5:47 AM
Subject: Re: [xmlsec] Xmlsec not ok with AIX 5.2
According to this log, ./configure script found OpenSSL 0.9.8
installed in /opt/XML
Is this correct? What error do you get for this setup?
More information about the xmlsec