Search code examples
linuxgcccurlglibc

error while compiling curl library


I have this error message while building the curl library:

libssl.a(s2_clnt.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC

I tried to use the -fPIC switch - nothing helps. The openssl library was before compiled without any error. make check passed as well.

Info: I am compiling curl against another version of glibc - the include path is provided in ./configure with the $CPPFLAGS and $LDFLAGS == -L/usr/glibc-2.22/lib [== this is the path to the new glibc version]

This error is thrown only when I compile it with the new glibc version.


Solution

  • Here is the solution for the issue collection I had in the past days: several make issues...