[Marble-bugs] [Bug 213528] New: fails to build - undefined symbol

tropikhajma tropikhajma at gmail.com
Sat Nov 7 12:49:21 CET 2009


https://bugs.kde.org/show_bug.cgi?id=213528

           Summary: fails to build - undefined symbol
           Product: marble
           Version: unspecified
          Platform: Compiled Sources
        OS/Version: Solaris
            Status: UNCONFIRMED
          Severity: normal
          Priority: NOR
         Component: general
        AssignedTo: marble-bugs at kde.org
        ReportedBy: tropikhajma at gmail.com


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

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Marble-bugs mailing list