Bug 213528 - fails to build - undefined symbol
Summary: fails to build - undefined symbol
Status: RESOLVED FIXED
Alias: None
Product: marble
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: 0.8 (KDE 4.3)
Assignee: Dennis Nienhüser
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-07 12:49 UTC by tropikhajma
Modified: 2013-10-20 08:02 UTC (History)
2 users (show)

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 2009-11-07 12:49:17 UTC
Version:           4.3.73 (using Devel)
Compiler:          Sun Studio 12 U1 
OS:                Solaris
Installed from:    Compiled sources

building kdeedu 4.3.73 fails with the below message:
...
Linking CXX executable marble
cd /export/home/hajma/packages/BUILD/kdeedu-4.3.73svn1040395/build-kdeedu-4.3.73svn1040395/marble/src && /opt/dtbld/bin/cmake -E cmake_link_script CMakeFiles/marble.dir/link.txt --verbose=1
/opt/sunstudio12.1/bin/CC  -library=no%Cstd -library=Crun -xannotate=no  -D__EXTENSIONS__ -DSOLARIS -D_REENTRANT -D__EXTENSIONS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -DSOLARIS10 -DNDEBUG -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/foss/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 -s -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 -xbuiltin=%all -xinline=%auto -xprefetch=auto -xprefetch_auto_type=indirect_array_access -xprefetch_level=3 -xalias_level=compatible -KPIC -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 -s -xtarget=pentium4 -m32 -xarch=sse2 -xchip=pentium4 -xcache=8/64/4:256/128/8 -lc -lm -ldl -lpthread -lposix4 -lrt -mt -L/opt/foss/lib -R/opt/foss/lib -L/usr/lib -R/usr/lib -Y P,/opt/foss/lib -i -L/opt/foss/lib -R/opt/foss/lib -L/usr/lib -R/usr/lib -Bdynamic -lstdcxx4 -lCrun -lc -lm -xannotate=no -Usun   -DQT_NO_DEBUG  -KPIC -L/opt/foss/lib -R/opt/foss/lib  -lstdcxx4 -lCrun -L/usr/lib -R/usr/lib -lxml2 -lrt -lsocket -L/usr/X11/lib -R/usr/X11/lib CMakeFiles/marble.dir/marble_automoc.o CMakeFiles/marble.dir/ControlView.o CMakeFiles/marble.dir/MarbleTest.o CMakeFiles/marble.dir/kdemain.o CMakeFiles/marble.dir/KdeMainWindow.o CMakeFiles/marble.dir/marble_part.o CMakeFiles/marble.dir/qrc_marble.o CMakeFiles/marble.dir/settings.o  -o marble  -L/opt/kde4/lib -L/export/home/hajma/packages/BUILD/kdeedu-4.3.73svn1040395/build-kdeedu-4.3.73svn1040395/lib -L/opt/foss/qt4/lib /opt/kde4/lib/libkparts.so.4.4.0 /opt/kde4/lib/libknewstuff2.so.4.4.0 ../../lib/libmarblewidget.so.4.4.0 /opt/kde4/lib/libkio.so.5.4.0 /opt/foss/qt4/lib/libQtNetwork.so /opt/foss/qt4/lib/libQtXml.so /opt/kde4/lib/libkdeui.so.5.4.0 /opt/foss/qt4/lib/libQtSvg.so /opt/foss/qt4/lib/libQtGui.so /opt/kde4/lib/libkdecore.so.5.4.0 /opt/foss/qt4/lib/libQtDBus.so /opt/foss/qt4/lib/libQtCore.so -lthread -R/opt/kde4/lib:/export/home/hajma/packages/BUILD/kdeedu-4.3.73svn1040395/build-kdeedu-4.3.73svn1040395/lib:/opt/foss/qt4/lib
Undefined                     first referenced
 symbol                           in file
void Marble::ViewParams::setRadiusUpdated(const int) ../../lib/libmarblewidget.so.4.4.0
ld: fatal: symbol referencing errors. No output written to marble
gmake[3]: *** [marble/src/marble] Error 1


I'd expect that it's due to the difference between cpp and h:
./src/lib/ViewParams.cpp:void ViewParams::setRadiusUpdated( int radiusUpdated )
./src/lib/ViewParams.h:    void setRadiusUpdated( const int );
but don't have time to verify at the moment
Comment 1 Dennis Nienhüser 2009-11-07 17:43:08 UTC
nienhueser * r1046141 trunk/KDE/kdeedu/marble/src/lib/ViewParams.cpp
Adjust setRadiusUpdated signature.
Bug: 213528
http://websvn.kde.org/?view=rev&revision=1046141

Thanks for reporting, please reopen if the commit above doesn't fix it.