Bug 323207 - build of latest repository fails
Summary: build of latest repository fails
Status: RESOLVED WORKSFORME
Alias: None
Product: ktorrent
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Fedora RPMs Linux
: NOR normal
Target Milestone: ---
Assignee: Joris Guisson
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-08-06 00:27 UTC by George R. Goffe
Modified: 2018-11-07 08:17 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments
output of script command running the build process (50.59 KB, text/x-log)
2013-08-06 00:29 UTC, George R. Goffe
Details
log files (9.65 KB, application/x-gzip)
2013-08-10 12:28 UTC, George R. Goffe
Details

Note You need to log in before you can comment on or make changes to this bug.
Description George R. Goffe 2013-08-06 00:27:43 UTC
Building Ktorrent on FC 16 x86_64 encounters build problems in libKtorrent code. See complete log enclosed.

    785 activity.cpp:(.text+0x118): undefined reference to `KParts::Part::~Part(void const**)'
    786 CMakeFiles/ktcore.dir/interfaces/activity.o: In function `kt::ActivityPart::~ActivityPart()':
    787 activity.cpp:(.text+0xcf): undefined reference to `KParts::Part::~Part(void const**)'
    788 collect2: error: ld returned 1 exit status
    789 make[2]: *** [lib/libktcore.so.14.0.0] Error 1
    790 make[1]: *** [libktcore/CMakeFiles/ktcore.dir/all] Error 2
    791 make: *** [all] Error 2


Reproducible: Always

Steps to Reproduce:
1.Run build.usr script which updates from the ktorrent repositories
2.Ktorrent builds
3.libKtorrent fails
Comment 1 George R. Goffe 2013-08-06 00:29:58 UTC
Created attachment 81576 [details]
output of script command running the build process
Comment 2 George R. Goffe 2013-08-07 09:47:16 UTC
Error messages from a build attempt just a few minutes ago.

00000797 [ 12%] Building CXX object libktcore/CMakeFiles/ktcore.dir/plugin/pluginactivity.o
00000798 [ 12%] Building CXX object libktcore/CMakeFiles/ktcore.dir/settings.o
00000799 Linking CXX shared library ../lib/libktcore.so
00000800 CMakeFiles/ktcore.dir/interfaces/plugin.o: In function `kt::Plugin::~Plugin()':
00000801 /tools/ktorrent/ktorrent/libktcore/interfaces/plugin.cpp:33: undefined reference to `KParts::Plugin::~Plugin(void const**)'
00000802 CMakeFiles/ktcore.dir/interfaces/plugin.o: In function `kt::Plugin::Plugin(QObject*)':
00000803 /tools/ktorrent/ktorrent/libktcore/interfaces/plugin.cpp:25: undefined reference to `KParts::Plugin::Plugin(void const**, QObject*)'
00000804 CMakeFiles/ktcore.dir/interfaces/plugin.o: In function `kt::Plugin::Plugin(QObject*)':
00000805 /tools/ktorrent/ktorrent/libktcore/interfaces/plugin.cpp:25: undefined reference to `KParts::Plugin::Plugin(void const**, QObject*)'
00000806 CMakeFiles/ktcore.dir/interfaces/plugin.o: In function `kt::Plugin::~Plugin()':
00000807 /tools/ktorrent/ktorrent/libktcore/interfaces/plugin.cpp:33: undefined reference to `KParts::Plugin::~Plugin(void const**)'
00000808 CMakeFiles/ktcore.dir/interfaces/activity.o: In function `kt::ActivityPart::ActivityPart(kt::Activity*)':
00000809 activity.cpp:(.text+0x11): undefined reference to `KParts::Part::Part(void const**, QObject*)'
00000810 CMakeFiles/ktcore.dir/interfaces/activity.o: In function `kt::ActivityPart::ActivityPart(kt::Activity*)':
00000811 activity.cpp:(.text+0x68): undefined reference to `KParts::Part::Part(void const**, QObject*)'
00000812 CMakeFiles/ktcore.dir/interfaces/activity.o: In function `kt::ActivityPart::~ActivityPart()':
00000813 activity.cpp:(.text+0x118): undefined reference to `KParts::Part::~Part(void const**)'
00000814 CMakeFiles/ktcore.dir/interfaces/activity.o: In function `kt::ActivityPart::~ActivityPart()':
00000815 activity.cpp:(.text+0xcf): undefined reference to `KParts::Part::~Part(void const**)'
00000816 collect2: error: ld returned 1 exit status
00000817 make[2]: *** [lib/libktcore.so.14.0.0] Error 1
00000818 make[1]: *** [libktcore/CMakeFiles/ktcore.dir/all] Error 2
00000819 make: *** [all] Error 2
Comment 3 Jekyll Wu 2013-08-07 10:03:58 UTC
It builds fine for me, as usual  Could you upload your build script itself ?  Or maybe you have some unusual setup in your building environment ?
Comment 4 George R. Goffe 2013-08-10 12:27:26 UTC
It's not exactly rocket science but it's been working for quite a while. Also, here's a tar.gz file containing the error logs from ktorrent and libktorrent.

#!/bin/bash -xv

 CMAKE_PREFIX_PATH=/usr/

 cd /tools/ktorrent

 which automoc4

 automoc4 --version

 ./updkt

 mkdir  libktorrent/build 2>/dev/null
 cd  libktorrent/build
 cmake -DLIB_SUFFIX=64 -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) ..
 make clean
 make depend
 make
 make install

 mkdir  ../../ktorrent/build 2>/dev/null
 cd  ../../ktorrent/build
 cmake -DLIB_SUFFIX=64 -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DCMAKE_INSTALL_PREFIX=$(kde4-config --prefix) ..
 make clean
 make depend
 make
 make install

 exit 0
Comment 5 George R. Goffe 2013-08-10 12:28:45 UTC
Created attachment 81629 [details]
log files

      1 -rw-r--r-- root/root      8020 2013-08-05 18:48 ./ktorrent/build/CMakeFiles/CMakeError.log
      2 -rw-r--r-- root/root     40861 2013-08-05 18:48 ./ktorrent/build/CMakeFiles/CMakeOutput.log
      3 -rw-r--r-- root/root     12027 2013-08-05 18:45 ./libktorrent/build/CMakeFiles/CMakeError.log
      4 -rw-r--r-- root/root     66125 2013-08-05 18:45 ./libktorrent/build/CMakeFiles/CMakeOutput.log
Comment 6 George R. Goffe 2013-08-10 12:29:31 UTC
By the way, this is from the source repository and is a dev version I believe.
Comment 7 George R. Goffe 2013-08-20 03:26:37 UTC
Hi,

I'm still having this problem. Could someone please help me?

Thanks,

George...
Comment 8 George R. Goffe 2018-11-06 18:52:40 UTC
Andrew (andrew.crouthamel@kdemail.net)

Let's kill this one, ok?

George
Comment 9 Andrew Crouthamel 2018-11-07 08:17:43 UTC
Closing per request.