[Rcpp-devel] stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC

Dirk Eddelbuettel edd at debian.org
Fri Feb 1 17:32:56 CET 2019


On 1 February 2019 at 16:22, Sariya, Sanjeev wrote:
| /usr/bin/ld: /usr/local/lib/libgslcblas.a(xerbla.o): relocation R_X86_64_PC32 against symbol `stderr@@GLIBC_2.2.5' can not be used when making a shared object; recompile with -fPIC

You are trying to build a shared library object: the code from your package.
Linking such shared library code requires appropriately built external
libraries. The error tells you that this version of libgslcblas is NOT
appropriate, and also tells you how correct this: add -fPIC to _its_
compilation.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list