Emerging kde-frameworks/baloo-5.43.0 fails during emake. [ 19%] Linking CXX shared module ../../../bin/baloosearchmodule.so cd /var/tmp/portage/kde-frameworks/baloo-5.43.0/work/baloo-5.43.0_build/src/kioslaves/kded && /usr/bin/cmake -E cmake_link_script CMakeFiles/baloosearchmodule.dir/link.txt --verbose=1 /usr/bin/x86_64-pc-linux-gnu-g++ -fPIC -march=native -O2 -pipe -ggdb -std=c++0x -fno-operator-names -fno-exceptions -Wall -Wextra -Wcast-align -Wchar-subscripts -Wformat-security -Wno-long-long -Wpointer-arith -Wundef -Wnon-virtual-dtor -Woverloaded-virtual -Werror=return-type -Wvla -Wdate-time -pedantic -Wsuggest-override -Wl,--no-undefined -Wl,--fatal-warnings -Wl,--enable-new-dtags -Wl,-O1 -Wl,--as-needed -shared -o ../../../bin/baloosearchmodule.so CMakeFiles/baloosearchmodule.dir/baloosearchmodule.cpp.o CMakeFiles/baloosearchmodule.dir/baloosearchmodule_autogen/mocs_compilation.cpp.o /usr/lib64/libKF5KIOCore.so.5.43.0 /usr/lib64/libKF5Service.so.5.43.0 /usr/lib64/libKF5CoreAddons.so.5.43.0 /usr/lib64/libKF5DBusAddons.so.5.43.0 /usr/lib64/libQt5DBus.so.5.9.4 /usr/lib64/libKF5ConfigCore.so.5.43.0 /usr/lib64/libQt5Core.so.5.9.4 CMakeFiles/baloosearchmodule.dir/baloosearchmodule.cpp.o: In function `Factory::Factory()': /var/tmp/portage/kde-frameworks/baloo-5.43.0/work/baloo-5.43.0/src/kioslaves/kded/baloosearchmodule.cpp:106: undefined reference to `vtable for Factory' CMakeFiles/baloosearchmodule.dir/baloosearchmodule.cpp.o: In function `Factory::~Factory()': /var/tmp/portage/kde-frameworks/baloo-5.43.0/work/baloo-5.43.0/src/kioslaves/kded/baloosearchmodule.cpp:106: undefined reference to `vtable for Factory' CMakeFiles/baloosearchmodule.dir/baloosearchmodule.cpp.o: In function `Factory::~Factory()': /var/tmp/portage/kde-frameworks/baloo-5.43.0/work/baloo-5.43.0/src/kioslaves/kded/baloosearchmodule.cpp:106: undefined reference to `vtable for Factory' collect2: error: ld returned 1 exit status make[2]: *** [src/kioslaves/kded/CMakeFiles/baloosearchmodule.dir/build.make:121: bin/baloosearchmodule.so] Error 1
Created attachment 526960 [details] emerge --info '=kde-frameworks/baloo-5.43.0::gentoo'
Created attachment 526962 [details] emerge -pqv '=kde-frameworks/baloo-5.43.0::gentoo'
Created attachment 526964 [details] build.log
Created attachment 526966 [details] environment
I just managed to build baloo and baloo-widgets without problems, but I had to manually remove the file /usr/include/kpluginfactory.h (and then I put it back after emerge completed). # equery belongs /usr/include/kpluginfactory.h * Searching for /usr/include/kpluginfactory.h ... kde-frameworks/kdelibs-4.14.37 (/usr/include/kpluginfactory.h) I suppose there is a conflict while the file src/kioslaves/kded/baloosearchmodule.cpp is processed with moc and the wrong file (/usr/include/kpluginfactory.h instead of /usr/include/KF5/KCoreAddons/kpluginfactory.h) is used for include with moc, while the correct one is used while compiling the file.
Looking at the CMakeLists.txt file though I can't see why, as KF5::CoreAddons is properly added to link_libraries for baloosearchmodule, there is no change to those sources in years and no one else has come up with this build issue so far. Even though it will solve itself when we dance the kdelibs-4 last-rites soon, it would be still interesting to know what's going on...
(In reply to Andreas Sturmlechner from comment #6) > Looking at the CMakeLists.txt file though I can't see why, as > KF5::CoreAddons is properly added to link_libraries for baloosearchmodule, > there is no change to those sources in years and no one else has come up > with this build issue so far. > > Even though it will solve itself when we dance the kdelibs-4 last-rites > soon, it would be still interesting to know what's going on... There is something I can do to help you figure out what's happening?
Please test with 5.46.0.