[Xapian-discuss] relocation against 'a local symbol' on make

Ted Pedersen duluthted at gmail.com
Mon Oct 19 19:02:53 BST 2009


Greetings all,

I'm trying to install Xapian on the following sort of system:

Linux marimba 2.6.24-23-server #1 SMP Wed Apr 1 22:14:30 UTC 2009
x86_64 GNU/Linux

Before installing (or trying to) xapian-core I downloaded and
installed zlib from http://zlib.net, using the usual ./configure,
make, make test, make install sequence, which all worked fine.

Then, I ran ./configure for xapian-core and then ran make, which ended
with the following:

/usr/bin/ld: /usr/local/lib/libz.a(deflate.o): relocation R_X86_64_32S
against `a local symbol' can not be used when making a shared object;
recompile with -fPIC
/usr/local/lib/libz.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
make[2]: *** [libxapian.la] Error 1
make[2]: Leaving directory `/home/ted/xapian-core-1.0.16'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ted/xapian-core-1.0.16'
make: *** [all] Error 2

I tried to set the compiler option for xapian to -fPIC as follows...

./configure CFLAGS=-fPIC

...and while that seems to work just fine, I get the same error when I
run make.

Any ideas on this?

Thanks,
Ted

-- 
Ted Pedersen
http://www.d.umn.edu/~tpederse



More information about the Xapian-discuss mailing list