Bug 182860

Summary: ktorrent 3.1.6 fail with forced --as-needed if installed on kde-4.2.0
Product: [Applications] ktorrent Reporter: Tomáš Chvátal <scarabeus>
Component: generalAssignee: Joris Guisson <joris.guisson>
Status: RESOLVED FIXED    
Severity: normal CC: realnc
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Gentoo Packages   
OS: Linux   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Tomáš Chvátal 2009-02-02 13:46:38 UTC
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
Comment 1 Joris Guisson 2009-02-02 13:57:26 UTC
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
Comment 2 Nikos Chantziaras 2009-02-04 02:43:24 UTC
(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.)
Comment 3 Joris Guisson 2009-02-04 09:14:05 UTC
Try this package then :

http://ktorrent.org/downloads/3.1.6/ktorrent-3.1.6-5.tar.bz2 
Comment 4 Nikos Chantziaras 2009-02-04 09:27:44 UTC
Just tested it and it builds correctly now.
Comment 5 Joris Guisson 2009-02-04 10:31:51 UTC
Good, then I will update the website with the new package