Bug 442261 - undefined references to `DIGIKAM_WEBSERVICES_LOG()'
Summary: undefined references to `DIGIKAM_WEBSERVICES_LOG()'
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-WebService-Vkontakte (show other bugs)
Version: 7.3.0
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-09-10 14:08 UTC by gessel
Modified: 2021-09-10 18:18 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 7.4.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description gessel 2021-09-10 14:08:34 UTC
SUMMARY

building 7.3.0 from git clone source, barfs at 90% with errors in building vkontakte.   

STEPS TO REPRODUCE
1. git clone (etc.)
2. standard build process
3. barf

OBSERVED RESULT

[ 90%] Linking CXX executable frequentrequests_utest
Scanning dependencies of target photos_utest
/usr/bin/ld: ../../dplugins/generic/webservices/vkontakte/libvkontaktebackend.a(vkontakte_authenticationdialog.cpp.o): in function `Vkontakte::AuthenticationDialog::start()':
/home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_authenticationdialog.cpp:184: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: /home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_authenticationdialog.cpp:184: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: ../../dplugins/generic/webservices/vkontakte/libvkontaktebackend.a(vkontakte_authenticationdialog.cpp.o): in function `Vkontakte::AuthenticationDialog::urlChanged(QUrl const&)':
/home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_authenticationdialog.cpp:202: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: /home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_authenticationdialog.cpp:202: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: ../../dplugins/generic/webservices/vkontakte/libvkontaktebackend.a(vkontakte_jobs.cpp.o): in function `Vkontakte::VkontakteJob::handleError(QJsonValue const&)':
/home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_jobs.cpp:109: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: ../../dplugins/generic/webservices/vkontakte/libvkontaktebackend.a(vkontakte_jobs.cpp.o):/home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_jobs.cpp:109: more undefined references to `DIGIKAM_WEBSERVICES_LOG()' follow
collect2: error: ld returned 1 exit status
make[2]: *** [core/tests/vkontakte/CMakeFiles/frequentrequests_utest.dir/build.make:129: core/tests/vkontakte/frequentrequests_utest] Error 1
make[1]: *** [CMakeFiles/Makefile2:28475: core/tests/vkontakte/CMakeFiles/frequentrequests_utest.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 90%] Linking CXX executable albums_utest
[ 90%] Building CXX object core/tests/vkontakte/CMakeFiles/photos_utest.dir/photos_utest_autogen/mocs_compilation.cpp.o
[ 90%] Building CXX object core/tests/vkontakte/CMakeFiles/photos_utest.dir/photos_utest.cpp.o
/usr/bin/ld: ../../dplugins/generic/webservices/vkontakte/libvkontaktebackend.a(vkontakte_authenticationdialog.cpp.o): in function `Vkontakte::AuthenticationDialog::start()':
/home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_authenticationdialog.cpp:184: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: /home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_authenticationdialog.cpp:184: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: ../../dplugins/generic/webservices/vkontakte/libvkontaktebackend.a(vkontakte_authenticationdialog.cpp.o): in function `Vkontakte::AuthenticationDialog::urlChanged(QUrl const&)':
/home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_authenticationdialog.cpp:202: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: /home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_authenticationdialog.cpp:202: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: ../../dplugins/generic/webservices/vkontakte/libvkontaktebackend.a(vkontakte_jobs.cpp.o): in function `Vkontakte::VkontakteJob::handleError(QJsonValue const&)':
/home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_jobs.cpp:109: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: ../../dplugins/generic/webservices/vkontakte/libvkontaktebackend.a(vkontakte_jobs.cpp.o):/home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_jobs.cpp:109: more undefined references to `DIGIKAM_WEBSERVICES_LOG()' follow
collect2: error: ld returned 1 exit status
make[2]: *** [core/tests/vkontakte/CMakeFiles/albums_utest.dir/build.make:129: core/tests/vkontakte/albums_utest] Error 1
make[1]: *** [CMakeFiles/Makefile2:28505: core/tests/vkontakte/CMakeFiles/albums_utest.dir/all] Error 2
[ 90%] Linking CXX executable userinfo_utest
/usr/bin/ld: ../../dplugins/generic/webservices/vkontakte/libvkontaktebackend.a(vkontakte_authenticationdialog.cpp.o): in function `Vkontakte::AuthenticationDialog::start()':
/home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_authenticationdialog.cpp:184: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: /home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_authenticationdialog.cpp:184: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: ../../dplugins/generic/webservices/vkontakte/libvkontaktebackend.a(vkontakte_authenticationdialog.cpp.o): in function `Vkontakte::AuthenticationDialog::urlChanged(QUrl const&)':
/home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_authenticationdialog.cpp:202: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: /home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_authenticationdialog.cpp:202: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: ../../dplugins/generic/webservices/vkontakte/libvkontaktebackend.a(vkontakte_jobs.cpp.o): in function `Vkontakte::VkontakteJob::handleError(QJsonValue const&)':
/home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_jobs.cpp:109: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: ../../dplugins/generic/webservices/vkontakte/libvkontaktebackend.a(vkontakte_jobs.cpp.o):/home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_jobs.cpp:109: more undefined references to `DIGIKAM_WEBSERVICES_LOG()' follow
collect2: error: ld returned 1 exit status
make[2]: *** [core/tests/vkontakte/CMakeFiles/userinfo_utest.dir/build.make:129: core/tests/vkontakte/userinfo_utest] Error 1
make[1]: *** [CMakeFiles/Makefile2:28535: core/tests/vkontakte/CMakeFiles/userinfo_utest.dir/all] Error 2
[ 90%] Linking CXX executable photos_utest
/usr/bin/ld: ../../dplugins/generic/webservices/vkontakte/libvkontaktebackend.a(vkontakte_authenticationdialog.cpp.o): in function `Vkontakte::AuthenticationDialog::start()':
/home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_authenticationdialog.cpp:184: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: /home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_authenticationdialog.cpp:184: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: ../../dplugins/generic/webservices/vkontakte/libvkontaktebackend.a(vkontakte_authenticationdialog.cpp.o): in function `Vkontakte::AuthenticationDialog::urlChanged(QUrl const&)':
/home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_authenticationdialog.cpp:202: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: /home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_authenticationdialog.cpp:202: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: ../../dplugins/generic/webservices/vkontakte/libvkontaktebackend.a(vkontakte_jobs.cpp.o): in function `Vkontakte::VkontakteJob::handleError(QJsonValue const&)':
/home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_jobs.cpp:109: undefined reference to `DIGIKAM_WEBSERVICES_LOG()'
/usr/bin/ld: ../../dplugins/generic/webservices/vkontakte/libvkontaktebackend.a(vkontakte_jobs.cpp.o):/home/gessel/projects/digikam/core/dplugins/generic/webservices/vkontakte/backend/vkontakte_jobs.cpp:109: more undefined references to `DIGIKAM_WEBSERVICES_LOG()' follow
collect2: error: ld returned 1 exit status
make[2]: *** [core/tests/vkontakte/CMakeFiles/photos_utest.dir/build.make:129: core/tests/vkontakte/photos_utest] Error 1
make[1]: *** [CMakeFiles/Makefile2:28565: core/tests/vkontakte/CMakeFiles/photos_utest.dir/all] Error 2
make: *** [Makefile:141: all] Error 2


EXPECTED RESULT

SUCCESS!

SOFTWARE/OS VERSIONS 
Linux/KDE Plasma: 20.04.2 LTS (Focal Fossa) 5.11.0-27-generic
(available in About System)
KDE Plasma Version: plasmashell 5.18.5
KDE Frameworks Version: 5.68.0
Qt Version: 5.12.8

mariadb  Ver 15.1 Distrib 10.3.31-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2

ADDITIONAL INFORMATION

Given that a lot of us would never use any of the web services and perhaps quite a few of the other plugins, a build/config option to omit those might make build times faster and avoid some of these dependency hangs.
Comment 1 Maik Qualmann 2021-09-10 14:19:18 UTC
Fixed with this commit:

https://invent.kde.org/graphics/digikam/-/commit/8587be8fbb5806a0c53ee2ad43ded389c3eaf524

Maik
Comment 2 gessel 2021-09-10 14:42:08 UTC
Thanks - I gather not backported to 7.3.0?  I did a 

git clone -b v7.3.0 https://invent.kde.org/graphics/digikam.git and then built, running into the bug.  I'll redo without the branch spec and verify...  big honkin' git pull...
Comment 3 gessel 2021-09-10 16:56:58 UTC
Thanks, I originally built with

git clone -b v7.3.0 https://invent.kde.org/graphics/digikam.git

to get stable

this time I used

git clone  https://invent.kde.org/graphics/digikam.git

to get Master                                                                                 

and got stuck at a different spot:

make[1]: *** [CMakeFiles/Makefile2:28565: core/tests/vkontakte/CMakeFiles/photos_utest.dir/all] Error 2
[ 90%] Built target Generic_Panorama_Plugin_autogen
[ 90%] Linking CXX executable filesaveoptionsbox_utest
[ 90%] Built target filesaveoptionsbox_utest
[ 90%] Linking CXX executable dimghistorygraph_utest
[ 90%] Built target dimghistorygraph_utest
make: *** [Makefile:141: all] Error 2
Comment 4 gessel 2021-09-10 18:18:38 UTC
retried: success!