Version: unspecified (using Devel) OS: Solaris build of libkdcraw 4.6.90 with the sun studio 12u1 compiler fails with the below errors I don't have a patch ATM ... pkgbuild: "/home/test/packages/BUILD/libkdcraw-4.6.90/libraw/samples/dcraw_emu.cpp", line 365: Warning (Anachronism): Using int(*)(void*,LibRaw_progress,int,int) to initialize extern "C" int(*)(void*,LibRaw_progress,int,int). pkgbuild: "/home/test/packages/BUILD/libkdcraw-4.6.90/libraw/samples/dcraw_emu.cpp", line 392: Error: The function "close" must have a prototype. pkgbuild: "/home/test/packages/BUILD/libkdcraw-4.6.90/libraw/samples/dcraw_emu.cpp", line 395: Error: The function "getpagesize" must have a prototype. pkgbuild: "/home/test/packages/BUILD/libkdcraw-4.6.90/libraw/samples/dcraw_emu.cpp", line 401: Error: The function "close" must have a prototype. pkgbuild: "/home/test/packages/BUILD/libkdcraw-4.6.90/libraw/samples/dcraw_emu.cpp", line 404: Error: The function "close" must have a prototype. pkgbuild: "/home/test/packages/BUILD/libkdcraw-4.6.90/libraw/samples/dcraw_emu.cpp", line 426: Error: The function "close" must have a prototype. pkgbuild: "/home/test/packages/BUILD/libkdcraw-4.6.90/libraw/samples/dcraw_emu.cpp", line 432: Error: The function "close" must have a prototype. pkgbuild: "/home/test/packages/BUILD/libkdcraw-4.6.90/libraw/samples/dcraw_emu.cpp", line 436: Error: The function "read" must have a prototype. pkgbuild: "/home/test/packages/BUILD/libkdcraw-4.6.90/libraw/samples/dcraw_emu.cpp", line 439: Error: The function "close" must have a prototype. pkgbuild: "/home/test/packages/BUILD/libkdcraw-4.6.90/libraw/samples/dcraw_emu.cpp", line 443: Error: The function "close" must have a prototype. pkgbuild: 9 Error(s) and 2 Warning(s) detected. Reproducible: Always Steps to Reproduce: try to build Expected Results: builds ok
It looks like some #include missing for Sun. Unfortunately, no Solaris/Sun Studio on hand, so I cannot check.
Created attachment 62913 [details] patch
Git commit f346fbb87d5395aea39dc436bab5526038517e79 by Gilles Caulier. Committed on 17/08/2011 at 22:21. Pushed by cgilles into branch 'master'. apply patch #62913 BUGS: 277796 M +1 -0 libraw/samples/dcraw_emu.cpp http://commits.kde.org/libkdcraw/f346fbb87d5395aea39dc436bab5526038517e79