Page 1 of 1

R_X86_64_32

Posted: 2010/01/22 02:34:04
by rhedin
I am building a 32-bit package on a 64-bit Intel machine running CentOS 5. At a certain state, the linker tells me:

R_X86_64_32 against `a local symbol' can not be used when making a shared object; recompile with -fPIC

As far as we can tell, all the compilation steps use -fPIC. We are mystified.

Has anyone else encountered this?


Regards,

Rick

R_X86_64_32

Posted: 2010/01/22 18:23:39
by pschaff
Building i386 on x86_64 is often done with a chroot environment, or if building RPMs [url=http://wiki.centos.org/PackageManagement/SourceInstalls](recommended)[/url], done with a tool like [url=http://fedoraproject.org/wiki/Projects/Mock]mock[/url] available in the [url=http://wiki.centos.org/AdditionalResources/Repositories?highlight=(extras)][extras] repo[/url].