awesomized / libmemcached

Resurrection of libmemcached
https://awesomized.github.io/libmemcached/
BSD 3-Clause "New" or "Revised" License
45 stars 26 forks source link

make fails: recompile with -fPIC #69

Closed m6w6 closed 4 years ago

m6w6 commented 4 years ago

Imported from Launchpad using lp2gh.


CXXLD libtest/backtrace

fails: /bin/ld: libtest/backtrace_test.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC

I run it with ./configure --prefix=/usr/glibc/libmemcached --disable-sasl: Attached the config.log file.

m6w6 commented 4 years ago

m6w6 commented 4 years ago

Update:

I am using another glibc version than the system has. This error occurs when the LDFLAGS variable does not have a value. When I export LDFLAGS to the path of the new glibc version then I can compile it but the summary differs.

Summary when LDFLAGS is set: Configuration summary for libmemcached version 1.0.18

Summary when LDFLAGS is empty: Configuration summary for libmemcached version 1.0.18