The problem was that OpenSSL was not configured with the shared option. When I configure OpenSSL shared for 64-bit Linux, it will build. Strange that I did not need to configure OpenSSL on 32-bit Linux or Solaris as shared.
-Tom Thomas Floodeen, Jr. Mentor Graphics BSD 720.494.1133 -----Original Message----- From: Aleksey Sanin [mailto:[email protected]] Sent: Wednesday, February 16, 2011 12:29 PM To: Floodeenjr, Thomas Cc: [email protected] Subject: Re: [xmlsec] Link error on x64 Linux Well, obviously from the error the linker doesn't think that openssl was compiled with -fPIC On 2/16/11 11:23 AM, Floodeenjr, Thomas wrote: > 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 > > _______________________________________________ > xmlsec mailing list > [email protected] > http://www.aleksey.com/mailman/listinfo/xmlsec _______________________________________________ xmlsec mailing list [email protected] http://www.aleksey.com/mailman/listinfo/xmlsec
