Version: 3.1.6 (using KDE 4.2.0) Compiler: gcc 4.3.3 OS: Linux Installed from: Gentoo Packages SUMMARY: When ktorrent is compiled with LDFLAGS="-Wl,--as-needed" it fails upon linking. (But only if we assume it is compiled on 4.2.0, not a problem with kde-4.1.X). ERROR: [ 90%] Building CXX object plugins/upnp/CMakeFiles/ktupnpplugin.dir/upnppluginsettings.o /var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/plugins/upnp/routermodel.cpp:125: warning: unused parameter ‘parent’ /var/tmp/portage/net-p2p/ktorrent-3.1.6/work/ktorrent-3.1.6/plugins/upnp/routermodel.cpp:132: warning: unused parameter ‘parent’ Linking CXX shared module ../../lib/ktupnpplugin.so CMakeFiles/ktupnptest.dir/main.o: In function `main': main.cpp:(.text+0x1ef): undefined reference to `kt::DataDir()' collect2: ld returned 1 exit status make[2]: *** [ktupnptest/ktupnptest] Error 1 make[1]: *** [ktupnptest/CMakeFiles/ktupnptest.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... DOWNSTREAM BUG WITH MORE INFO: https://bugs.gentoo.org/show_bug.cgi?id=256987
You probably have the first package which had some linking problems on 4.2, use this one instead : http://ktorrent.org/downloads/3.1.6/ktorrent-3.1.6-4.tar.bz2
(In reply to comment #1) > You probably have the first package which had some linking problems on 4.2, use > this one instead : > > http://ktorrent.org/downloads/3.1.6/ktorrent-3.1.6-4.tar.bz2 That's the tarball that fails (in other words, this one is already in Gentoo's portage.)
Try this package then : http://ktorrent.org/downloads/3.1.6/ktorrent-3.1.6-5.tar.bz2
Just tested it and it builds correctly now.
Good, then I will update the website with the new package