Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: zsh 4.3.8-dev fails to link on amd64



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@xxxxxxx>                  Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK                          Tel: +44 (0)1223 692070



Messages sorted by: Reverse Date, Date, Thread, Author