I'm trying to compile xml-security-c, in 64bits, in solaris.
I have had no problems compiling all the myriad dependancies required.
However, when it comes to xml-security-c, I hit a silent failure to link.
Configuration happens with little problem. I have tried version 1.4.0, and 1.5.1
I have tried with, and without, xalan-c.
All with basically the same result.
Things get hidden in libtool obscurity:
/bin/bash ../libtool --mode=link CC -m64 -xO2 -KPIC -mt -norunpath -mt
-D_REENTRANT -DXSEC_LIBRARY_BUILD -xO2 -DNDEBUG -R/var/local/64/lib
-L/var/local/64/lib -o libxml-security-c.la -rpath /var/local/64/lib
-version-info 15:1 XSECC14n20010315.lo XSECXMLNSStack.lo XSECCanon.lo
......
OpenSSLCryptoKeyHMAC.lo -L/var/local/64/lib -lxalan-c -L/var/local/64/lib
-lxerces-c -lsocket -lm -lpthread -lxalanMsg -lcrypto
(cd .libs && rm -f libxml-security-c.so.15 && ln -s
libxml-security-c.so.15.0.1 libxml-security-c.so.15)
(cd .libs && rm -f libxml-security-c.so && ln -s libxml-security-c.so.15.0.1
libxml-security-c.so)
creating libxml-security-c.la
(cd .libs && rm -f libxml-security-c.la && ln -s ../libxml-security-c.la
libxml-security-c.la)
gmake[1]: Leaving directory
`/auto/src/common/local/xml-security-c/xml-security-c-1.5.1-sparc64/lib'
Making all in bin
As you can see, it seems to continue as if all is well.
However, all it has succeeded indoing, is creating a libxml-security-c.la,
without an actual shared library??
(i hate libtool, for just this reason!)
Then it eventually fails, a little later, with
CC -m64 -xO2 -KPIC -norunpath -D_REENTRANT -DXSEC_LIBRARY_BUILD -xO2
-DNDEBUG -o .libs/xtest xtest.o -mt -L/var/local/64/lib
../lib/.libs/libxml-security-c.so -lxalan-c -lxerces-c -lsocket -lm
-lpthread -lxalanMsg -lcrypto
ld: fatal: file ../lib/.libs/libxml-security-c.so: open failed: No such file
or directory
ld: fatal: File processing errors. No output written to .libs/xtest
The failure is not surprising, because "../lib/.libs/libxml-security-c.so"
is now a symlink -> libxml-security-c.so.15.0.1
which does not exist.
Can someone help me out here please?
Solaris 10, CC -V
CC: Sun C++ 5.9 SunOS_sparc Patch 124863-01 2007/07/25
I've just built everything from scratch today.
I thought there was some magic libtool command to use the .la file, and
force generation of the shared lib, to somehow debug that process.... but I
have no idea what that is.