* zsh 4.3.8-dev fails to link on amd64
@ 2008-10-30 11:09 Helmut Jarausch
2008-10-30 11:13 ` Peter Stephenson
0 siblings, 1 reply; 2+ messages in thread
From: Helmut Jarausch @ 2008-10-30 11:09 UTC (permalink / raw)
To: zsh-workers
Hi,
I've just tried to build zsh from CVS on an AMD64 architecture
but it fails with
x86_64-pc-linux-gnu-gcc -shared -o pcre.so pcre..o -lgdbm -L/usr/lib64 /usr/lib64/libpcre.a -lcap -ldl -lncursesw -lm -lc
/usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld: /usr/lib64/libpcre.a(pcre_compile.o): relocation R_X86_64_32S against `a local symbol' can not be used when making a shared object; recompile with -fPIC
/usr/lib64/libpcre.a: could not read symbols: Bad value
collect2: ld returned 1 exit status
(This is a GenToo system, pcre-7.8)
What am I missing?
Many thanks for a hint,
Helmut Jarausch
Lehrstuhl fuer Numerische Mathematik
RWTH - Aachen University
D 52056 Aachen, Germany
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: zsh 4.3.8-dev fails to link on amd64
2008-10-30 11:09 zsh 4.3.8-dev fails to link on amd64 Helmut Jarausch
@ 2008-10-30 11:13 ` Peter Stephenson
0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2008-10-30 11:13 UTC (permalink / raw)
To: zsh-workers
Helmut Jarausch wrote:
> I've just tried to build zsh from CVS on an AMD64 architecture
> but it fails with
>
> x86_64-pc-linux-gnu-gcc -shared -o pcre.so pcre..o -lgdbm -L/usr/lib64
> /usr/lib64/libpcre.a -lcap -ldl -lncursesw -lm -lc
> /usr/lib/gcc/x86_64-pc-linux-gnu/4.3.2/../../../../x86_64-pc-linux-gnu/bin/ld
> : /usr/lib64/libpcre.a(pcre_compile.o): relocation R_X86_64_32S against `a lo
> cal symbol' can not be used when making a shared object; recompile with -fPIC
> /usr/lib64/libpcre.a: could not read symbols: Bad value
> collect2: ld returned 1 exit status
>
> (This is a GenToo system, pcre-7.8)
>
> What am I missing?
It looks like you're linking a dynamical library against a static
library; this doesn't work on some systems. If you're making a dynamic
version of zsh you need a dynamic version of pcre; look for libpcre.so
rather than libpcre.a. In principle, configure should be able to do all
this.
--
Peter Stephenson <pws@csr.com> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-10-30 11:14 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-10-30 11:09 zsh 4.3.8-dev fails to link on amd64 Helmut Jarausch
2008-10-30 11:13 ` Peter Stephenson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).