Bug 276528 - build failure - kfilemetadatareader linking
Summary: build failure - kfilemetadatareader linking
Status: RESOLVED WORKSFORME
Alias: None
Product: kio
Classification: Unmaintained
Component: general (other bugs)
Version First Reported In: SVN
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: David Faure
URL:
Keywords: investigated, triaged
Depends on:
Blocks:
 
Reported: 2011-06-26 13:42 UTC by tropikhajma
Modified: 2018-10-27 02:42 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tropikhajma 2011-06-26 13:42:30 UTC
Version:           SVN (using Devel) 
OS:                Solaris

building kdelib 4.6.90 on Solaris 11e with Sun Studio 12u1 fails with the below error:

...
Linking CXX executable ../bin/kfilemetadatareader
cd /export/home/kdebuild/packages/BUILD/KDElibs-4.6.90/i386/kdelibs-4.6.90/build-kdelibs-4.6.90/kio && /opt/kde4/bin/cmake -E cmake_link_script CMakeFiles/kfilemetadatareader.dir/link.txt --verbose=1
/opt/sunstudio12.1/bin/CC   -D__EXTENSIONS__ -DSOLARIS -D_REENTRANT -DNDEBUG -D__EXTENSIONS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -DSOLARIS10 -DNO_DEBUG -D_UNICODE -DUNICODE -D_RWSTD_REENTRANT  -D_XOPEN_SOURCE=500 -D_XPG5  -I/usr/include/stdcxx4/ansi -I/usr/include/stdcxx4 -I/opt/kde4/include -D_REENTRANT -DNDEBUG -D__EXTENSIONS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -DSOLARIS10 -DNO_DEBUG -D_UNICODE -DUNICODE -D_RWSTD_REENTRANT  -D_XOPEN_SOURCE=500 -D_XPG5  -I/usr/include/stdcxx4/ansi -I/usr/include/stdcxx4 -I/opt/kde4/include -xtarget=pentium4 -m32 -xarch=sse2 -xchip=pentium4 -xcache=8/64/4:256/128/8 -library=no%Cstd -library=Crun -features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic -instances=global -template=geninlinefuncs -s -xdebugformat=dwarf -xlang=c99 -xalias_level=compatible -xustr=ascii_utf16_ushort -Qoption ccfe -features=gcc -Qoption ccfe -features=zla -Qoption ccfe ++boolflag:sunwcch=false -mt  -g -xO3 -DQT_NO_DEBUG  -L/opt/kde4/lib -R/opt/kde4/lib  -lstdcxx4 -lCrun -L/usr/lib -R/usr/lib -lxml2 -lrt -lsocket -L/usr/X11/lib -R/usr/X11/lib -lXdamage CMakeFiles/kfilemetadatareader.dir/kfilemetadatareader_automoc.o CMakeFiles/kfilemetadatareader.dir/kfile/kfilemetadatareaderprocess.o  -o ../bin/kfilemetadatareader  -L/export/home/kdebuild/packages/BUILD/KDElibs-4.6.90/i386/kdelibs-4.6.90/build-kdelibs-4.6.90/lib -L/opt/kde4/lib ../lib/libkio.so.5.7.0 ../lib/libnepomuk.so.4.7.0 ../lib/libnepomukutils.so.4.7.0 /opt/kde4/lib/libQtNetwork.so /opt/kde4/lib/libQtXml.so ../lib/libnepomuk.so.4.7.0 ../lib/libkdeui.so.5.7.0 /opt/kde4/lib/libQtGui.so /opt/kde4/lib/libQtSvg.so /opt/kde4/lib/libsoprano.so ../lib/libkdecore.so.5.7.0 /opt/kde4/lib/libQtDBus.so /opt/kde4/lib/libQtCore.so -lthread -R/export/home/kdebuild/packages/BUILD/KDElibs-4.6.90/i386/kdelibs-4.6.90/build-kdelibs-4.6.90/lib:/opt/kde4/lib: 
ld: warning: file ../lib/libnepomuk.so.4.7.0: attempted multiple inclusion of file
Undefined                       first referenced
 symbol                             in file
Nepomuk::Query::Term::Term(const Nepomuk::Query::Term&) CMakeFiles/kfilemetadatareader.dir/kfile/kfilemetadatareaderprocess.o  (symbol belongs to implicit dependency /export/home/kdebuild/packages/BUILD/KDElibs-4.6.90/i386/kdelibs-4.6.90/build-kdelibs-4.6.90/lib/libnepomukquery.so.4)
Nepomuk::Query::Term::Term()    CMakeFiles/kfilemetadatareader.dir/kfile/kfilemetadatareaderprocess.o  (symbol belongs to implicit dependency /export/home/kdebuild/packages/BUILD/KDElibs-4.6.90/i386/kdelibs-4.6.90/build-kdelibs-4.6.90/lib/libnepomukquery.so.4)
Nepomuk::Query::Term::~Term()    CMakeFiles/kfilemetadatareader.dir/kfile/kfilemetadatareaderprocess.o  (symbol belongs to implicit dependency /export/home/kdebuild/packages/BUILD/KDElibs-4.6.90/i386/kdelibs-4.6.90/build-kdelibs-4.6.90/lib/libnepomukquery.so.4)
ld: fatal: symbol referencing errors. No output written to ../bin/kfilemetadatareader
gmake[2]: *** [bin/kfilemetadatareader] Error 1


fix:
--- kio/CMakeLists.txt.orig       2011-06-26 13:39:14.742178425 +0000
+++ kio/CMakeLists.txt    2011-06-26 13:36:40.746819396 +0000
@@ -330,7 +330,7 @@
 
 if(NOT KIO_NO_NEPOMUK)
   kde4_add_executable(kfilemetadatareader ${kfilemetadatareaderprocess_SRCS})
-  target_link_libraries(kfilemetadatareader ${KDE4_KIO_LIBS} ${KDE4_NEPOMUK_LIBRARY} nepomukutils)
+  target_link_libraries(kfilemetadatareader ${KDE4_KIO_LIBS} ${KDE4_NEPOMUK_LIBRARY} nepomukquery nepomukutils)
   target_link_libraries(kio ${KDE4_NEPOMUK_LIBRARY} nepomukquery nepomukutils)
 endif(NOT KIO_NO_NEPOMUK)
 target_link_libraries(kio ${KDE4_KDEUI_LIBS} ${ZLIB_LIBRARY} ${QT_QTNETWORK_LIBRARY} ${QT_QTXML_LIBRARY} ${QT_QTSVG_LIBRARY} ${X11_LIBRARIES} ${KIO_EXTRA_LIBS})



Reproducible: Always

Steps to Reproduce:
build it

Actual Results:  
build failed

Expected Results:  
build passes
Comment 1 Frank Reininghaus 2011-06-27 15:00:48 UTC
I think Peter won't mind if this fix is pushed to master and KDE/4.7, right?
Comment 2 Peter Penz 2011-06-27 15:10:19 UTC
Right :-) Thanks for the patch, please push it to master.
Comment 3 Dawit Alemayehu 2013-02-01 01:38:01 UTC
@frank: is this still applicable today ? If so why was the patch rejected ?
Comment 4 Frank Reininghaus 2013-02-01 10:22:32 UTC
(In reply to comment #3)
> @frank: is this still applicable today ? If so why was the patch rejected ?

I don't know, I'm not familiar with Solaris. I don't know why the patch was never pushed despite Peter's approval.
Comment 5 Dawit Alemayehu 2013-06-19 11:14:14 UTC
Is this compilation issue still a problem on Sun Solaris when compiling with their own compiler? The proposed patch has not been submitted.
Comment 6 Andrew Crouthamel 2018-09-24 02:11:10 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 15 days. Please provide the requested information as soon as possible and set the bug status as REPORTED. Due to regular bug tracker maintenance, if the bug is still in NEEDSINFO status with no change in 30 days, the bug will be closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

If you have already provided the requested information, please set the bug status as REPORTED so that the KDE team knows that the bug is ready to be confirmed.

Thank you for helping us make KDE software even better for everyone!
Comment 7 Andrew Crouthamel 2018-10-27 02:42:07 UTC
Dear Bug Submitter,

This bug has been in NEEDSINFO status with no change for at least 30 days. The bug is now closed as RESOLVED > WORKSFORME due to lack of needed information.

For more information about our bug triaging procedures please read the wiki located here: https://community.kde.org/Guidelines_and_HOWTOs/Bug_triaging

Thank you for helping us make KDE software even better for everyone!