pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/45406: rtorrent fails to build on i386



>Number:         45406
>Category:       pkg
>Synopsis:       rtorrent fails to build/link on NetBSD 5.1/i386.
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Sep 26 20:25:00 +0000 2011
>Originator:     Greg Oster
>Release:        NetBSD 5.1
>Organization:
>Environment:
        
        
System: NetBSD scrooge 5.1 NetBSD 5.1 (QUAD) #0: Sun Nov  7 08:13:54 CST 2010  
oster@quad:/u1/builds/build184/src/obj/i386/u1/builds/build184/src/sys/arch/i386/compile/QUAD
 i386
Architecture: i386
Machine: i386
>Description:
        rtorrent fails to link at the end of the build.  Error message follows:

...
mv -f .deps/main.Tpo .deps/main.Po
/bin/sh ../libtool --tag=CXX   --mode=link c++  -O2 -I/usr/include 
-I/usr/pkg/include -I/usr/include/krb5 -I/usr/pkg/include/ncurses -g -DDEBUG 
-I/usr/pkg/include/sigc++-2.0 -I/usr/pkg/lib/sigc++-2.0/include   
-I/usr/pkg/include   -I/usr/pkg/include   -I/usr/pkg/include   -pthread 
-L/usr/lib -Wl,-R/usr/lib -L/usr/pkg/lib -Wl,-R/usr/pkg/lib -o rtorrent main.o 
libsub_root.a ui/libsub_ui.a core/libsub_core.a display/libsub_display.a 
input/libsub_input.a rpc/libsub_rpc.a utils/libsub_utils.a -lncurses  
-Wl,-R/usr/pkg/lib -L/usr/pkg/lib -lsigc-2.0   -Wl,-R/usr/pkg/lib 
-L/usr/pkg/lib -lcurl   -L/usr/pkg/lib -ltorrent   -L/usr/pkg/lib   
-lxmlrpc_server -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok 
libtool: link: c++ -O2 
-I/usr/pkgsrc/net/rtorrent/work.scrooge/.buildlink/include -I/usr/include/krb5 
-I/usr/pkgsrc/net/rtorrent/work.scrooge/.buildlink/include/ncurses -g -DDEBUG 
-I/usr/pkgsrc/net/rtorrent/work.scrooge/.buildlink/include/sigc++-2.0 
-I/usr/pkgsrc/net/rtorrent/work.scrooge/.buildlink/lib/sigc++-2.0/include 
-pthread -Wl,-R/usr/pkg/lib -o rtorrent main.o  
-L/usr/pkgsrc/net/rtorrent/work.scrooge/.buildlink/lib libsub_root.a 
ui/libsub_ui.a core/libsub_core.a display/libsub_display.a input/libsub_input.a 
rpc/libsub_rpc.a utils/libsub_utils.a 
/usr/pkgsrc/net/rtorrent/work.scrooge/.buildlink/lib/libncurses.so 
/usr/pkgsrc/net/rtorrent/work.scrooge/.buildlink/lib/libcurl.so 
/usr/pkgsrc/net/rtorrent/work.scrooge/.buildlink/lib/libidn.so -lintl -lssl 
-lgssapi -lheimntlm -lkrb5 -lhx509 -lcom_err -lasn1 -lroken -lcrypt -lz 
/usr/pkgsrc/net/rtorrent/work.scrooge/.buildlink/lib/libtorrent.so -lcrypto 
/usr/pkgsrc/net/rtorrent/work.scrooge/.buildlink/lib/libsigc-2.0.so -lxmlrpc
 _server -lxmlrpc -lxmlrpc_util -lxmlrpc_xmlparse -lxmlrpc_xmltok -pthread 
-Wl,-rpath -Wl,/usr/pkgsrc/net/rtorrent/work.scrooge/.buildlink/lib -Wl,-rpath 
-Wl,/usr/pkgsrc/net/rtorrent/work.scrooge/.buildlink/lib
libsub_root.a(thread_base.o): In function `lock':
/usr/pkgsrc/net/rtorrent/work.scrooge/rtorrent-0.8.9/src/thread_base.cc:66: 
undefined reference to `__sync_bool_compare_and_swap_4'
libsub_root.a(thread_base.o): In function `ThreadBase::queue_item(void 
(*)(ThreadBase*))':
/usr/pkgsrc/net/rtorrent/work.scrooge/rtorrent-0.8.9/src/thread_base.cc:82: 
undefined reference to `__sync_bool_compare_and_swap_4'
/usr/pkgsrc/net/rtorrent/work.scrooge/rtorrent-0.8.9/src/thread_base.cc:83: 
undefined reference to `__sync_bool_compare_and_swap_4'
libsub_root.a(thread_base.o): In function `lock':
/usr/pkgsrc/net/rtorrent/work.scrooge/rtorrent-0.8.9/src/thread_base.cc:66: 
undefined reference to `__sync_bool_compare_and_swap_4'
libsub_root.a(thread_worker.o): In function 
`ThreadWorker::set_scgi(rpc::SCgi*)':
/usr/pkgsrc/net/rtorrent/work.scrooge/rtorrent-0.8.9/src/thread_worker.cc:72: 
undefined reference to `__sync_bool_compare_and_swap_4'
gmake[3]: *** [rtorrent] Error 1
gmake[3]: Leaving directory 
`/usr/pkgsrc/net/rtorrent/work.scrooge/rtorrent-0.8.9/src'
gmake[2]: *** [all-recursive] Error 1
gmake[2]: Leaving directory 
`/usr/pkgsrc/net/rtorrent/work.scrooge/rtorrent-0.8.9/src'
gmake[1]: *** [all-recursive] Error 1
gmake[1]: Leaving directory 
`/usr/pkgsrc/net/rtorrent/work.scrooge/rtorrent-0.8.9'
gmake: *** [all] Error 2
*** Error code 2

Stop.
make: stopped in /usr/pkgsrc/net/rtorrent
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/rtorrent
*** Error code 1

Stop.
make: stopped in /usr/pkgsrc/net/rtorrent

The package builds fine on NetBSD 5.1/amd64.  Havn't tried building it on other 
arches.

>How-To-Repeat:

        cd /usr/pkgsrc/net/rtorrent
        make install
>Fix:
        please and thanks.  Additional debugging info available upon request.




Home | Main Index | Thread Index | Old Index