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

Ted Pedersen duluthted at gmail.com
Mon Oct 19 20:14:59 BST 2009


Greetings all, again...

I think I may have worked this out.

/usr/local/lib/zlib.a was the result of me installing zlib from source
(from zlib.net) in resposne to a message from the Xapian install the
first time I ran it (saying zlib was missing). However, what I
probably should have done was this (I'm running on Ubuntu):

sudo apt-get install zlib1g-dev

After I did this, I actually just deleted my manually installed zlib
from /usr/local/lib, and then did the ./configure, make, make install
sequence just fine on Xapian.

So, I think all is well! Thanks to Peter K for some advice that helped
point me in this direction.

Cordially,
Ted

On Mon, Oct 19, 2009 at 1:02 PM, Ted Pedersen <duluthted at gmail.com> wrote:
> 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
>



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



More information about the Xapian-discuss mailing list