The build process fails with “relocation R_X86_64_32 against `a local symbol can not be used when making a shared object; recompile with -fPIC”. Whats wrong?
Many plugins have to be linked against libraries. A few of them (currently iptables, netlink and nut are known to be affected) link against libraries that are only available as “static libraries” in many distributions. Most distributions (e. g. Debian and SuSE GNU/Linux) do not compile static libraries with the “-fPIC” option. Thus they cannot be linked with shared objects compiled with “-fPIC”. Some architectures (among them i386) do not seem to care about that and handle it in some (probably magic) way. However, other architectures (mostly 64bit like amd64 or hppa) cannot handle that and thus the compiler aborts with the error message mentioned above. To fix this issue, you need a version of the static library compiled with “-fPIC” (or a shared library). Ask your distributor to provide a suitable version of the library or compile it yourself. For more detailed information please refer to: • the gentoo documentation, • Debian Bug #358637 • Debian Bug #419684 • Debian Bug #430933 • Sol
Related Questions
- The build process fails with "relocation R_X86_64_32 against `a local symbol can not be used when making a shared object; recompile with -fPIC". Whats wrong?
- Different devices use different process technologies to build the memory cells used to program a device. Which one is best?
- What selection process was used to determine who would build the port?