Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 2 Mar 2011 17:40:24 +0200
From:      Kostik Belousov <kostikbel@gmail.com>
To:        Danilo Egea <daniloegea@yahoo.com.br>
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: libdispatch don't build on 8.2-RELEASE amd64
Message-ID:  <20110302154024.GD78089@deviant.kiev.zoral.com.ua>
In-Reply-To: <4D6E5FE5.3030306@yahoo.com.br>
References:  <4D69D639.1010505@yahoo.com.br> <4D6A8BC6.1030409@yahoo.com.br> <4D6E5FE5.3030306@yahoo.com.br>

next in thread | previous in thread | raw e-mail | index | archive | help

--iVeLy+mkNfkgBwIW
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Wed, Mar 02, 2011 at 12:19:01PM -0300, Danilo Egea wrote:
> The problem is the binutils version, the port try to use the=20
> binutils-2.21. With the binutils-2.15 (native of the system) works fine.
Rather, it is binutils 2.15 silently creating broken library.
2.21 refuses to do it.

Some object used to create the final dso was not built with -fPIC.
>=20
> On 2/27/11 2:37 PM, Danilo Egea wrote:
> >Worked with GCC, but support blocks is disabled... :(
> >
> >On 2/27/11 1:42 AM, Danilo Egea wrote:
> >>Hi guys,
> >>
> >>Anyone know what's going on?
> >>
> >>PS: with clang-devel
> >>
> >>libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../config -I.. -I..=20
> >>-fPIC -MT time.lo -MD -MP -MF .deps/time.Tpo -c shims/time.c  -fPIC=20
> >>-DPIC -o .libs/time.o
> >>libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../config -I.. -I..=20
> >>-fPIC -MT time.lo -MD -MP -MF .deps/time.Tpo -c shims/time.c -o=20
> >>time.o >/dev/null 2>&1
> >>mv -f .deps/time.Tpo .deps/time.Plo
> >>/bin/sh ../libtool --tag=3DCC    --mode=3Dlink clang  -fPIC    -o=20
> >>libshims.la  mach.lo time.lo  -lpthread  -L/usr/local/lib=20
> >>-lBlocksRuntime
> >>libtool: link: ar cru .libs/libshims.a .libs/mach.o .libs/time.o
> >>libtool: link: ranlib .libs/libshims.a
> >>libtool: link: ( cd ".libs" && rm -f "libshims.la" && ln -s=20
> >>"../libshims.la" "libshims.la" )
> >>/bin/sh ../libtool --tag=3DCC    --mode=3Dlink clang -Wall  -fblocks   =
=20
> >>-fPIC   -o libdispatch.la -rpath /usr/local/lib=20
> >>libdispatch_la-apply.lo  libdispatch_la-benchmark.lo=20
> >>libdispatch_la-object.lo  libdispatch_la-once.lo=20
> >>libdispatch_la-queue.lo  libdispatch_la-queue_kevent.lo=20
> >>libdispatch_la-semaphore.lo  libdispatch_la-source.lo=20
> >>libdispatch_la-source_kevent.lo  libdispatch_la-time.lo  =20
> >>libshims.la  -lpthread  -L/usr/local/lib -lBlocksRuntime
> >>libtool: link: clang -shared  .libs/libdispatch_la-apply.o=20
> >>.libs/libdispatch_la-benchmark.o .libs/libdispatch_la-object.o=20
> >>.libs/libdispatch_la-once.o .libs/libdispatch_la-queue.o=20
> >>.libs/libdispatch_la-queue_kevent.o .libs/libdispatch_la-semaphore.o=20
> >>.libs/libdispatch_la-source.o .libs/libdispatch_la-source_kevent.o=20
> >>.libs/libdispatch_la-time.o  -Wl,--whole-archive ./.libs/libshims.a=20
> >>-Wl,--no-whole-archive  -L/usr/local/lib -lpthread -lBlocksRuntime   =
=20
> >>-Wl,-soname -Wl,libdispatch.so.0 -o .libs/libdispatch.so.0
> >>/usr/local/bin/ld: .libs/libdispatch_la-apply.o: relocation=20
> >>R_X86_64_PC32 against symbol `_dispatch_hw_config' can not be used=20
> >>when making a shared object; recompile with -fPIC
> >>/usr/local/bin/ld: final link failed: Bad value
> >>clang: error: linker command failed with exit code 1 (use -v to see=20
> >>invocation)
> >>*** Error code 1
> >>
> >>Stop in /usr/ports/devel/libdispatch/work/libdispatch-r174/src.
> >>*** Error code 1
> >>
> >>Stop in /usr/ports/devel/libdispatch/work/libdispatch-r174/src.
> >>*** Error code 1
> >>
> >>Stop in /usr/ports/devel/libdispatch/work/libdispatch-r174.
> >>*** Error code 1
> >>
> >>Stop in /usr/ports/devel/libdispatch.
> >>*** Error code 1
> >>
> >>Stop in /usr/ports/devel/libdispatch.
> >>
> >
> >
>=20
>=20
> --=20
> Danilo Eg?a Gondolfo
> http://daniloegea.wordpress.com
>=20
> __________________________________________________
> Fale com seus amigos  de gra?a com o novo Yahoo! Messenger=20
> http://br.messenger.yahoo.com/=20
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"

--iVeLy+mkNfkgBwIW
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (FreeBSD)

iEYEARECAAYFAk1uZOgACgkQC3+MBN1Mb4jXKQCdHm9Gil4LaNIHPhA53vt08kv5
W40AnjhidSBWsv34xpGSLXWs09XVbc3J
=ytXD
-----END PGP SIGNATURE-----

--iVeLy+mkNfkgBwIW--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20110302154024.GD78089>