[xmlsec] Link error on x64 Linux

Floodeenjr, Thomas thomas_floodeenjr at mentor.com
Wed Feb 16 11:23:03 PST 2011


I am attempting to build xmlsec on Red Hat 5u5 x64. I get this error:

/libcrypto.a(x86_64cpuid.o): relocation R_X86_64_PC32 against
`OPENSSL_cpuid_setup' can not be used when making a shared object;
recompile with -fPIC
/usr/bin/ld: final link failed: Bad value
collect2: ld returned 1 exit status
gmake[3]: *** [libxmlsec1-openssl.la] Error 1
gmake[3]: Leaving directory
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
gmake: *** [all] Error 2

Both OpenSSL and XMLSEC are built with -m64 and -fPIC.

Is there a solution for this?


Thomas Floodeen, Jr.
Mentor Graphics BSD

More information about the xmlsec mailing list