[xmlsec] Link error on x64 Linux

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


Hello,

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

/usr/bin/ld:
/cob/eng_infra/Build/xmlsec1-1.2.16/../openssl-1.0.0a/export/rhel564/lib
/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
`/cob/eng_infra/Build/xmlsec1-1.2.16/xmlsec1-1.2.16/src/openssl'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory
`/cob/eng_infra/Build/xmlsec1-1.2.16/xmlsec1-1.2.16/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory
`/cob/eng_infra/Build/xmlsec1-1.2.16/xmlsec1-1.2.16'
gmake: *** [all] Error 2

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

Is there a solution for this?

Thanks,
-Tom

Thomas Floodeen, Jr.
Mentor Graphics BSD
720.494.1133



More information about the xmlsec mailing list