Problem installing warc-tools on 64 bits Ubuntu

1,824 views
Skip to first unread message

jp.vitulli

unread,
Jul 17, 2009, 9:12:55 AM7/17/09
to warc-tools
Hello,

I try to install the warc-tools on my Ubuntu 9.04 (amd64, gcc 4.3.3,
Python 2.6.2)
The compilation works fine (make) but when it comes to the install
(make install), some sources are recompiled and there is an error
which stop the installation process:

/usr/bin/ld: lib/private/plugin/python/warc_wrap.o: relocation
R_X86_64_32S against `a local symbol' can not be used when making a
shared object; recompile with -fPIC
lib/private/plugin/python/warc_wrap.o: could not read symbols: Bad
value

I googled that but couldn't find a simple way to correct that. It
seems to be more a problem of the system and not one of the warc-tools
lib but if someone has a few links to read about that, I would be
happy :-)

Thanks.
jp

Erik Hetzner

unread,
Jul 21, 2009, 2:58:36 PM7/21/09
to warc-...@googlegroups.com
At Fri, 17 Jul 2009 06:12:55 -0700 (PDT),

jp.vitulli wrote:
>
>
> Hello,
>
> I try to install the warc-tools on my Ubuntu 9.04 (amd64, gcc 4.3.3,
> Python 2.6.2)
> The compilation works fine (make) but when it comes to the install
> (make install), some sources are recompiled and there is an error
> which stop the installation process:
>
> /usr/bin/ld: lib/private/plugin/python/warc_wrap.o: relocation
> R_X86_64_32S against `a local symbol' can not be used when making a
> shared object; recompile with -pic

> lib/private/plugin/python/warc_wrap.o: could not read symbols: Bad
> value
>
> I googled that but couldn't find a simple way to correct that. It
> seems to be more a problem of the system and not one of the warc-tools
> lib but if someone has a few links to read about that, I would be
> happy :-)

Just a note to confirm the same problem on my amd64 desktop, same
versions as JP.

Linux rex 2.6.28-13-generic #45-Ubuntu SMP Tue Jun 30 22:12:12 UTC 2009 x86_64 GNU/Linux

best,
Erik Hetzner

jp.vitulli

unread,
Jul 22, 2009, 5:19:45 AM7/22/09
to warc-tools
found a way (on a debian lenny amd64 gcc 4.3.2 python 2.5.2)

added the -fPIC option on the line 187 of the makefile
LARGE_FILES = -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -
D_LARGE_FILES -fPIC

I didn't verify if this make the makefile still working on 32 bits
machines.

ciao :-)
jp
Reply all
Reply to author
Forward
0 new messages