Registered Member
|
Hi,
I have error when building KTorrent 4.0.1: Linking CXX executable ktupnptest cd /home/user/rpmbuild/BUILD/ktorrent-4.0.1/i686-redhat-linux-gnu/ktupnptest && /usr/bin/cmake -E cmake_link_script CMakeFiles/ktupnptest.dir/link.txt --verbose=1 /usr/lib/ccache/c++ -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=core2 -mtune=core2 -fasynchronous-unwind-tables -fno-var-tracking-assignments -Wnon-virtual-dtor -Wno-long-long -ansi -Wundef -Wcast-align -Wchar-subscripts -Wall -W -Wpointer-arith -Wformat-security -fno-exceptions -DQT_NO_EXCEPTIONS -fno-check-new -fno-common -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -fexceptions -UQT_NO_EXCEPTIONS -O2 -DNDEBUG -DQT_NO_DEBUG -Wl,--enable-new-dtags CMakeFiles/ktupnptest.dir/ktupnptest_automoc.o CMakeFiles/ktupnptest.dir/main.o CMakeFiles/ktupnptest.dir/upnptestwidget.o -o ktupnptest -rdynamic -L/usr/lib/kde4/devel -L/home/user/rpmbuild/BUILD/ktorrent-4.0.1/i686-redhat-linux-gnu/lib -lktorrent ../lib/libktupnp.so.4.0.1 /usr/lib/libQtNetwork.so /usr/lib/libkdeui.so.5.4.0 /usr/lib/libkdecore.so.5.4.0 /usr/lib/libQtDBus.so /usr/lib/libQtCore.so -lpthread /usr/lib/libQtSvg.so /usr/lib/libQtGui.so -Wl,-rpath,/usr/lib/kde4/devel:/home/user/rpmbuild/BUILD/ktorrent-4.0.1/i686-redhat-linux-gnu/lib: -Wl,-rpath-link,/home/user/rpmbuild/BUILD/ktorrent-4.0.1/i686-redhat-linux-gnu/lib /usr/bin/ld: CMakeFiles/ktupnptest.dir/main.o: undefined reference to symbol 'kt::DataDir()' /usr/bin/ld: note: 'kt::DataDir()' is defined in DSO /home/user/rpmbuild/BUILD/ktorrent-4.0.1/i686-redhat-linux-gnu/lib/libktcore.so.11 so try adding it to the linker command line /home/user/rpmbuild/BUILD/ktorrent-4.0.1/i686-redhat-linux-gnu/lib/libktcore.so.11: could not read symbols: Invalid operation collect2: ld returned 1 exit status make[2]: *** [ktupnptest/ktupnptest] Error 1 make[2]: Leaving directory `/home/user/rpmbuild/BUILD/ktorrent-4.0.1/i686-redhat-linux-gnu' make[1]: *** [ktupnptest/CMakeFiles/ktupnptest.dir/all] Error 2 make[1]: *** Waiting for unfinished jobs.... This error may be caused Fedora changes in DSO Linking: http://fedoraproject.org/wiki/Understan ... LinkChange This patch fixes problem: http://nucleo.fedorapeople.org/ktorrent ... -fix.patch Is this patch can be accepted in ktorrent svn? |
Moderator
|
Registered users: abc72656, Bing [Bot], daret, Google [Bot], lockheed, Sogou [Bot], Yahoo [Bot]