Patch #716
missing header in canonmp.cpp
100%
Description
on opensolaris with sun studio 12u1 the build of exiv2 0.20 fails with the below messages.
The attached patch fixes that by adding the missing std header. Apparently gcc somehow figures that out by itself, but studio needs to have it explicitely.
pkgbuild: /usr/bin/CC -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 -xdebugformat=dwarf -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 -DPIC -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 -Y P,/opt/kde4/lib -i -L/opt/kde4/lib -R/opt/kde4/lib -L/usr/lib -R/usr/lib -Bdynamic -lstdcxx4 -lCrun -lc -lm -library=no%Cstd -xldscope=hidden -I. -D_REENTRANT -DNDEBUG -D__EXTENSIONS__ -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_POSIX_PTHREAD_SEMANTICS -DSOLARIS -DSOLARIS10 -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/kde4/include -DEXV_LOCALEDIR=\"/opt/kde4/share/locale\" -I../xmpsdk/include -c -DEXV_BUILDING_LIB=1 canonmn.cpp -KPIC -DPIC -o .libs/canonmn.o
pkgbuild: "value.hpp", line 989: Warning: declarator required in declaration.
pkgbuild: "canonmn.cpp", line 976: Error: dec is not a member of std.
pkgbuild: "canonmn.cpp", line 987: Error: dec is not a member of std.
pkgbuild: "canonmn.cpp", line 1013: Error: fixed is not a member of std.
pkgbuild: "canonmn.cpp", line 1040: Error: hex is not a member of std.
pkgbuild: "canonmn.cpp", line 1042: Error: dec is not a member of std.
pkgbuild: "canonmn.cpp", line 1092: Error: fixed is not a member of std.
pkgbuild: "canonmn.cpp", line 1139: Error: fixed is not a member of std.
Files
Associated revisions
History
Updated by Pavel Heimlich over 11 years ago
- File exiv2-ios.diff.1 exiv2-ios.diff.1 added
same in convert.cpp
Updated by Andreas Huggel over 11 years ago
- Category set to miscellaneous
- Status changed from New to Resolved
- Target version set to 0.21
- % Done changed from 0 to 100
Patch applied with r2301, thank you!
#716: Added missing #include <ios>, needed for Sun Studio compiler (patch by Pavel Heimlich).