Bug 196271 - libraw_alloc.h: error: The function "bzero" must have a prototype
Summary: libraw_alloc.h: error: The function "bzero" must have a prototype
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-DImg-RAW (show other bugs)
Version: unspecified
Platform: Compiled Sources Solaris
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-06-13 00:27 UTC by tropikhajma
Modified: 2018-03-23 11:32 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 0.4.0


Attachments
this patch helped me (295 bytes, patch)
2009-06-13 00:56 UTC, tropikhajma
Details

Note You need to log in before you can comment on or make changes to this bug.
Description tropikhajma 2009-06-13 00:27:03 UTC
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
Comment 1 tropikhajma 2009-06-13 00:56:37 UTC
Created attachment 34486 [details]
this patch helped me
Comment 2 caulier.gilles 2009-06-13 09:20:45 UTC
Alex,

Look, a cool fix to compile libraw under Sun Studio...

Gilles Caulier
Comment 3 Alex Tutubalin 2009-06-13 09:44:09 UTC
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
>
>
Comment 4 caulier.gilles 2009-06-13 09:50:59 UTC
Thanks Alex. i will backport missing header in KDE repository to please Sun studio at now.

Have a nice holidays !

Gilles Caulier
Comment 5 caulier.gilles 2009-06-13 09:55:07 UTC
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