Bug 272109 - build failure on Solaris due to a compiler define
Summary: build failure on Solaris due to a compiler define
Status: RESOLVED DUPLICATE of bug 237873
Alias: None
Product: plasma4
Classification: Plasma
Component: general (show other bugs)
Version: 4.6.2
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-01 00:45 UTC by tropikhajma
Modified: 2012-05-29 16:41 UTC (History)
1 user (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 2011-05-01 00:45:43 UTC
Version:           unspecified (using KDE 4.6.2) 
OS:                Solaris

building kdebase-workspace 4.6.2 on Solaris 11e with gcc 4.5.2 fails with
...
cd /home/test/packages/BUILD/kdebase-workspace-4.6.2/build/plasma/generic/dataengines/time && /usr/gcc/4.5/bin/g++   -DMAKE_PLASMA_ENGINE_TIME_LIB -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DKDE4_CMAKE_TOPLEVEL_DIR_LENGTH=25 -DHAVE_CONFIG_H=1 -DDISABLE_NEPOMUK_LEGACY -DKDE_DEFAULT_DEBUG_AREA=1204 -Woverloaded-virtual -fno-threadsafe-statics -fvisibility=hidden -fvisibility-inlines-hidden -O2 -g -DNDEBUG -DQT_NO_DEBUG -fPIC -I/home/test/packages/BUILD/kdebase-workspace-4.6.2/build/plasma/generic/dataengines/time -I/home/test/packages/BUILD/kdebase-workspace-4.6.2/plasma/generic/dataengines/time -I/home/test/packages/BUILD/kdebase-workspace-4.6.2 -I/home/test/packages/BUILD/kdebase-workspace-4.6.2/build -I/home/test/packages/BUILD/kdebase-workspace-4.6.2/kdm -I/home/test/packages/BUILD/kdebase-workspace-4.6.2/libs -I/home/test/packages/BUILD/kdebase-workspace-4.6.2/libs/kworkspace -I/opt/kde4/include -I/opt/kde4/include/KDE -I/opt/kde4/include/phonon -I/opt/kde4/include/QtXmlPatterns -I/opt/kde4/include/QtXml -I/opt/kde4/include/QtWebKit -I/opt/kde4/include/QtUiTools -I/opt/kde4/include/QtTest -I/opt/kde4/include/QtSvg -I/opt/kde4/include/QtSql -I/opt/kde4/include/QtScriptTools -I/opt/kde4/include/QtScript -I/opt/kde4/include/QtOpenGL -I/opt/kde4/include/QtNetwork -I/opt/kde4/include/QtMultimedia -I/opt/kde4/include/QtHelp -I/opt/kde4/include/QtDesigner -I/opt/kde4/include/QtDeclarative -I/opt/kde4/include/QtDBus -I/opt/kde4/include/Qt3Support -I/opt/kde4/include/QtGui -I/opt/kde4/include/QtCore -I/opt/kde4/include/Qt -I/opt/kde4/mkspecs/default    -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -o CMakeFiles/plasma_engine_time.dir/plasma_engine_time_automoc.o -c /home/test/packages/BUILD/kdebase-workspace-4.6.2/build/plasma/generic/dataengines/time/plasma_engine_time_automoc.cpp
In file included from /home/test/packages/BUILD/kdebase-workspace-4.6.2/build/plasma/generic/dataengines/time/moc_timesource.cpp:10:0,
                 from /home/test/packages/BUILD/kdebase-workspace-4.6.2/build/plasma/generic/dataengines/time/plasma_engine_time_automoc.cpp:4:
/home/test/packages/BUILD/kdebase-workspace-4.6.2/build/plasma/generic/dataengines/time/../../../../../plasma/generic/dataengines/time/timesource.h:46:10: error: expected unqualified-id before numeric constant
/home/test/packages/BUILD/kdebase-workspace-4.6.2/build/plasma/generic/dataengines/time/../../../../../plasma/generic/dataengines/time/timesource.h:46:10: error: expected ';' before numeric constant
gmake[2]: *** [plasma/generic/dataengines/time/CMakeFiles/plasma_engine_time.dir/plasma_engine_time_automoc.o] Error 1
gmake[2]: Leaving directory `/home/test/packages/BUILD/kdebase-workspace-4.6.2/build'
gmake[1]: *** [plasma/generic/dataengines/time/CMakeFiles/plasma_engine_time.dir/all] Error 2
gmake[1]: Leaving directory `/home/test/packages/BUILD/kdebase-workspace-4.6.2/build'
gmake: *** [all] Error 2


This is because on Solaris, 'sun' is defined by the compiler.

Reproducible: Always
Comment 1 Jekyll Wu 2012-05-29 16:41:21 UTC

*** This bug has been marked as a duplicate of bug 237873 ***