On Fri, May 22, 2015 at 10:15:44AM +0200, Mark Kettenis wrote:
> > Date: Fri, 22 May 2015 09:59:08 +0200
> > From: Antoine Jacoutot <ajacou...@bsdfrog.org>
> > 
> > On Mon, May 18, 2015 at 05:19:38PM +0200, Mark Kettenis wrote:
> > > Hi Folks,
> > > 
> > > robert@ has been so kind to do a bulk build with binutils 2.17 on
> > > amd64, sent me a list of ports that failed to build and gave me access
> > > to the build logs.  I've analyzed most of these now.  I'm looking into
> > > the harder ones myself, but below is a list of ports with "trivial"
> > > issues.  These basically fall into two categories:
> > > 
> > > 1. Ports that link by invoking ld directly:
> > > 
> > >   lang/tinyscheme
> > >   net/honeyd
> > >   security/ADMfzap
> > >   www/mongrel2
> > >   x11/pinot
> > >   audio/swh-plugins (-nostartfiles)
> > > 
> > > These ports dont include /usr/lib/crtbeginS.o and therefore run into
> > > an issue referencing __guard_local, resulting in messages like:
> > > 
> > >   ld: foobar.o: relocation R_X86_64_PC32 against `__guard_local' can
> > >   not be used when making a shared object; recompile with -fPIC
> > 
> > Seems  luarexlib needs the same kind of love.
> 
> Yeah.  I sent out a diff for that a week ago or so, but nobody
> bothered to ok it.

Ah sorry I missed it. I'll look at it.

> 
> > ===>  Extracting for luarexlib-2.4.0p4
> > ===>  Patching for luarexlib-2.4.0p4
> > ===>  Configuring for luarexlib-2.4.0p4
> > ===>  Building for luarexlib-2.4.0p4
> > gmake -C src/pcre -f rex_pcre.mak
> > gmake[1]: Entering directory 
> > '/exopi-obj/pobj/luarexlib-2.4.0/lrexlib-2.4.0/src/pcre'
> > cc -O2 -pipe -W -Wall -fPIC -I/usr/local/include/lua-5.1/ 
> > -I/usr/local/include  -DREX_OPENLIB=luaopen_rex_pcre 
> > -DREX_LIBNAME=\"rex_pcre\"    -c -o lpcre.o lpcre.c
> > In file included from lpcre.c:78:
> > ../algo.h: In function 'check_ud':
> > ../algo.h:102: warning: cast to pointer from integer of different size
> > cc -O2 -pipe -W -Wall -fPIC -I/usr/local/include/lua-5.1/ 
> > -I/usr/local/include  -DREX_OPENLIB=luaopen_rex_pcre 
> > -DREX_LIBNAME=\"rex_pcre\"    -c -o lpcre_f.o lpcre_f.c
> > cc -O2 -pipe -W -Wall -fPIC -I/usr/local/include/lua-5.1/ 
> > -I/usr/local/include  -DREX_OPENLIB=luaopen_rex_pcre 
> > -DREX_LIBNAME=\"rex_pcre\"    -c -o ../common.o ../common.c
> > ar rcu librex_pcre.a lpcre.o lpcre_f.o ../common.o
> > ld -o rex_pcre.so.2.4 -fPIC -shared lpcre.o lpcre_f.o ../common.o -lpcre 
> > -L/usr/local/lib -llua5.1
> > ld: lpcre.o: relocation R_X86_64_PC32 against `__guard_local' can not be 
> > used when making a shared object; recompile with -fPIC
> > ld: final link failed: Bad value
> > ../common.mak:18: recipe for target 'rex_pcre.so' failed
> > 
> > 
> > 
> > 

-- 
Antoine

Reply via email to