Version: 4.2.91 (using Devel) Compiler: Sun Studio 12 U1 (beta) OS: Solaris Installed from: Compiled sources compiling kdegraphics 4.2.91 fails with: ... "/export/home/test/packages/BUILD/kdegraphics-4.2.91svn979380/libs/libkdcraw/libraw/libraw/libraw_alloc.h", line 42: Error: The function "bzero" must have a prototype. the command preceding the error is: /opt/dtbld/bin/cmake -E cmake_progress_report /export/home/test/packages/BUILD/kdegraphics-4.2.91svn979380/build-kdegraphics-4.2.91svn979380/CMakeFiles [ 1%] Building CXX object libs/libkdcraw/libkdcraw/CMakeFiles/kdcraw.dir/kdcraw.o cd /export/home/test/packages/BUILD/kdegraphics-4.2.91svn979380/build-kdegraphics-4.2.91svn979380/libs/libkdcraw/libkdcraw && /usr/bin/CC -library=no%Cstd -DQT_NO_STL -DQT_NO_CAST_TO_ASCII -D_REENTRANT -DKDE_DEPRECATED_WARNINGS -DUSE_LCMS -DDCRAW_VERBOSE -DLIBRAW_BUILDLIB -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/opt/foss/include/stdcxx/ansi -I/opt/foss/include/stdcxx -I/opt/foss/include -I/opt/foss/include/stdcxx/ansi -I/opt/foss/include/stdcxx -library=no%Cstd -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 -lstdcxx -lCrun -lc -lm -DQT_NO_DEBUG -KPIC -I/export/home/test/packages/BUILD/kdegraphics-4.2.91svn979380/build-kdegraphics-4.2.91svn979380/libs/libkdcraw/libkdcraw -I/export/home/test/packages/BUILD/kdegraphics-4.2.91svn979380/libs/libkdcraw/libkdcraw -I/export/home/test/packages/BUILD/kdegraphics-4.2.91svn979380 -I/export/home/test/packages/BUILD/kdegraphics-4.2.91svn979380/build-kdegraphics-4.2.91svn979380 -I/export/home/test/packages/BUILD/kdegraphics-4.2.91svn979380/libs/libkdcraw/libraw -I/opt/kde-4.2/include -I/opt/kde-4.2/include/KDE -I/opt/foss/include/KDE -I/opt/foss/include -I/opt/foss/qt4/include/phonon -I/opt/foss/qt4/include/QtXmlPatterns -I/opt/foss/qt4/include/QtWebKit -I/opt/foss/qt4/include/QtHelp -I/opt/foss/qt4/include/QtAssistant -I/opt/foss/qt4/include/QtDBus -I/opt/foss/qt4/include/QtTest -I/opt/foss/qt4/include/QtUiTools -I/opt/foss/qt4/include/QtScript -I/opt/foss/qt4/include/QtSvg -I/opt/foss/qt4/include/QtXml -I/opt/foss/qt4/include/QtSql -I/opt/foss/qt4/include/QtOpenGL -I/opt/foss/qt4/include/QtNetwork -I/opt/foss/qt4/include/QtDesigner -I/opt/foss/qt4/include/Qt3Support -I/opt/foss/qt4/include/QtGui -I/opt/foss/qt4/include/QtCore -I/opt/foss/qt4/include/Qt -I/opt/foss/qt4/share/mkspecs/default -I/opt/foss/qt4/include -I/usr/X11/include -I/usr/include/lcms -D_LARGEFILE64_SOURCE -o CMakeFiles/kdcraw.dir/kdcraw.o -c /export/home/test/packages/BUILD/kdegraphics-4.2.91svn979380/libs/libkdcraw/libkdcraw/kdcraw.cpp this is on OpenSolaris 2009.06 with sun studio express (aka sun studio 12 U1 beta) as compiler
Created attachment 34486 [details] this patch helped me
Alex, Look, a cool fix to compile libraw under Sun Studio... Gilles Caulier
Thanks To be included in next release. I will be on vacation from today to June 24 (near China-Mongolia-Khazakhstan-Russia borders in Altai mountains), so next release will not appear before June 25. Gilles Caulier wrote: > https://bugs.kde.org/show_bug.cgi?id=196271 > > > Gilles Caulier <caulier.gilles@gmail.com> changed: > > What |Removed |Added > ---------------------------------------------------------------------------- > CC| |lexa@lexa.ru > > > > > --- Comment #2 from Gilles Caulier <caulier gilles gmail com> 2009-06-13 09:20:45 --- > Alex, > > Look, a cool fix to compile libraw under Sun Studio... > > Gilles Caulier > >
Thanks Alex. i will backport missing header in KDE repository to please Sun studio at now. Have a nice holidays ! Gilles Caulier
SVN commit 981297 by cgilles: compile under Sun Studio BUG: 196271 M +1 -0 libraw_alloc.h WebSVN link: http://websvn.kde.org/?view=rev&revision=981297