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

Peter Karman peter at peknet.com
Mon Oct 19 19:10:34 BST 2009


Ted Pedersen wrote on 10/19/2009 01:02 PM:
> Greetings all,
> 

Hi Ted,


> /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

I read that error message as indicating you need to compile *zlib* with 
the fPIC option.


-- 
Peter Karman  .  http://peknet.com/  .  peter at peknet.com



More information about the Xapian-discuss mailing list