Bug 257359 - build failure - linking in plato
Summary: build failure - linking in plato
Status: RESOLVED FIXED
Alias: None
Product: kplato
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Dag Andersen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-19 22:26 UTC by tropikhajma
Modified: 2010-12-08 14:02 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tropikhajma 2010-11-19 22:26:32 UTC
Version:           unspecified (using Devel) 
OS:                Solaris

koffice 2.2.84 fails to build with the below error.

This is on Solaris 11 Express with the Sun Studio 12.1 compiler.
I do not have a patch right now nor do I know the cause.
Sun Studio tends to be really picky about details like declaring a variable as const int and using only int etc., so it could be something similar.

...
Linking CXX executable kplato
cd /export/home/test/packages/BUILD/koffice-2.2.84/build-koffice-2.2.84/kplato && /opt/kde4/bin/cmake -E cmake_link_script CMakeFiles/kplato.dir/link.txt --verbose=1
/opt/sunstudio12.1/bin/CC  -library=no%Cstd -library=Crun  -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 -I/usr/include/stdcxx4/ansi -I/usr/include/stdcxx4 -library=no%Cstd -library=Crun -features=anachronisms,except,rtti,export,extensions,nestedaccess,tmplife,tmplrefstatic -instances=global -template=geninlinefuncs -g -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 -xF=%none -xinline=%auto -xprefetch=auto -xprefetch_auto_type=indirect_array_access -xprefetch_level=3 -xalias_level=compatible -KPIC -DPIC -xipo=0 -xO3 -xregs=no%frameptr -xjobs=2 -xrestrict=%all -xthreadvar=%all -z combreloc -z redlocsym -z nodefaultlib -z ignore -z now -z rescan -z absexec -xldscope=symbolic -xlibmil -g -xtarget=pentium4 -m32 -xarch=sse2 -xchip=pentium4 -xcache=8/64/4:256/128/8 -lc -lm -ldl -lpthread -lposix4 -lrt -mt -Y P,/opt/kde4/lib -i -L/opt/kde4/lib -R/opt/kde4/lib -L/usr/lib -R/usr/lib -Bdynamic -lstdcxx4 -lCrun -lc -lm   -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/kplato.dir/kplato_dummy.o  -o kplato  -L/opt/kde4/lib -L/export/home/test/packages/BUILD/koffice-2.2.84/build-koffice-2.2.84/lib ../lib/libkdeinit4_kplato.so ../lib/libkdeinit4_kplato.so ../lib/libkomain.so.8.0.0 ../lib/libkowidgets.so.8.0.0 ../lib/libkotext.so.8.0.0 ../lib/libflake.so.8.0.0 ../lib/libkoodf.so.8.0.0 ../lib/libpigmentcms.so.8.0.0 ../lib/libkoplugin.so.8.0.0 /opt/kde4/lib/libImath.so /opt/kde4/lib/libIlmImf.so /opt/kde4/lib/libIex.so /opt/kde4/lib/libHalf.so /opt/kde4/lib/libIlmThread.so /opt/kde4/lib/libkparts.so.4.6.0 /opt/kde4/lib/libkio.so.5.6.0 /opt/kde4/lib/libnepomukutils.so.4.6.0 /opt/kde4/lib/libQtXml.so /opt/kde4/lib/libQtNetwork.so /opt/kde4/lib/libnepomuk.so.4.6.0 /opt/kde4/lib/libsoprano.so /opt/kde4/lib/libkdeui.so.5.6.0 /opt/kde4/lib/libQtGui.so /opt/kde4/lib/libQtSvg.so /opt/kde4/lib/libkdecore.so.5.6.0 /opt/kde4/lib/libQtCore.so -lthread /opt/kde4/lib/libQtDBus.so -R/export/home/test/packages/BUILD/koffice-2.2.84/build-koffice-2.2.84/lib:/opt/kde4/lib: 
ld: warning: file ../lib/libkdeinit4_kplato.so: attempted multiple inclusion of file
Undefined                       first referenced
 symbol                             in file
KPlato::DateTime::DateTime()         ../lib/libkdeinit4_kplato.so
ld: fatal: symbol referencing errors. No output written to kplato




Reproducible: Always
Comment 1 Dag Andersen 2010-12-04 16:44:25 UTC
SVN commit 1203566 by danders:

Fix for "problem with linking in Solaris"
BUG: 257359


 M  +3 -0      libs/kernel/kptschedulerplugin.cpp  
 M  +0 -14     main.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1203566
Comment 2 Dag Andersen 2010-12-08 14:02:55 UTC
SVN commit 1204631 by danders:

Backport commit 1204458
Fix build on Solaris.
BUG: 257359.




 M  +3 -0      libs/kernel/kptschedulerplugin.cpp  
 M  +0 -14     main.cpp  


WebSVN link: http://websvn.kde.org/?view=rev&revision=1204631