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 
> 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.
> 
> 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.. 
> >>-fPIC -MT time.lo -MD -MP -MF .deps/time.Tpo -c shims/time.c  -fPIC 
> >>-DPIC -o .libs/time.o
> >>libtool: compile:  clang -DHAVE_CONFIG_H -I. -I../config -I.. -I.. 
> >>-fPIC -MT time.lo -MD -MP -MF .deps/time.Tpo -c shims/time.c -o 
> >>time.o >/dev/null 2>&1
> >>mv -f .deps/time.Tpo .deps/time.Plo
> >>/bin/sh ../libtool --tag=CC    --mode=link clang  -fPIC    -o 
> >>libshims.la  mach.lo time.lo  -lpthread  -L/usr/local/lib 
> >>-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 
> >>"../libshims.la" "libshims.la" )
> >>/bin/sh ../libtool --tag=CC    --mode=link clang -Wall  -fblocks    
> >>-fPIC   -o libdispatch.la -rpath /usr/local/lib 
> >>libdispatch_la-apply.lo  libdispatch_la-benchmark.lo 
> >>libdispatch_la-object.lo  libdispatch_la-once.lo 
> >>libdispatch_la-queue.lo  libdispatch_la-queue_kevent.lo 
> >>libdispatch_la-semaphore.lo  libdispatch_la-source.lo 
> >>libdispatch_la-source_kevent.lo  libdispatch_la-time.lo   
> >>libshims.la  -lpthread  -L/usr/local/lib -lBlocksRuntime
> >>libtool: link: clang -shared  .libs/libdispatch_la-apply.o 
> >>.libs/libdispatch_la-benchmark.o .libs/libdispatch_la-object.o 
> >>.libs/libdispatch_la-once.o .libs/libdispatch_la-queue.o 
> >>.libs/libdispatch_la-queue_kevent.o .libs/libdispatch_la-semaphore.o 
> >>.libs/libdispatch_la-source.o .libs/libdispatch_la-source_kevent.o 
> >>.libs/libdispatch_la-time.o  -Wl,--whole-archive ./.libs/libshims.a 
> >>-Wl,--no-whole-archive  -L/usr/local/lib -lpthread -lBlocksRuntime    
> >>-Wl,-soname -Wl,libdispatch.so.0 -o .libs/libdispatch.so.0
> >>/usr/local/bin/ld: .libs/libdispatch_la-apply.o: relocation 
> >>R_X86_64_PC32 against symbol `_dispatch_hw_config' can not be used 
> >>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 
> >>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.
> >>
> >
> >
> 
> 
> -- 
> Danilo Eg?a Gondolfo
> http://daniloegea.wordpress.com
> 
> __________________________________________________
> Fale com seus amigos  de gra?a com o novo Yahoo! Messenger 
> http://br.messenger.yahoo.com/ 
> _______________________________________________
> freebsd-hackers@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
> To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"

Attachment: pgpLtps2kgy7Z.pgp
Description: PGP signature

Reply via email to