Bug #803

Rational/URational issue in convert.cpp

Added by Pavel Heimlich over 5 years ago. Updated over 5 years ago.

Status:ClosedStart date:22 Jan 2012
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:miscellaneous
Target version:0.23

Description

exiv2-0.22 fails to build with the below error:

libtool: compile: /opt/test2/SolarisStudio12.3-solaris-x86-bin/solarisstudio12.3/bin/CC -xldscope=hidden -I. "-DEXV_LOCALEDIR=\"/usr/local/share/locale\"" -I../xmpsdk/include -c -DEXV_BUILDING_LIB=1 convert.cpp -KPIC -DPIC -o .libs/convert.o
"../xmpsdk/include/XMP_Environment.h", line 30: Warning (Anachronism): Attempt to redefine _FILE_OFFSET_BITS without using #undef.
"convert.cpp", line 594: Error: Cannot use std::pair<int, int> to initialize std::pair<unsigned, unsigned>.
1 Error(s) and 1 Warning(s) detected.

I used the below workaround to get past this:
- URational r = pos->toRational(2);
+ Rational r0 = pos->toRational(2);
+ URational r( r0.first, r0.second );

Solaris 11, Solaris Studio 12.3, x86

Associated revisions

Revision 2669
Added by Andreas Huggel over 5 years ago

#803: Fixed Rational/URational issues on Solaris.

History

#1 Updated by Pavel Heimlich over 5 years ago

similar issue is at
"crwimage.cpp", line 1038: Error: Cannot use std::pair<int, int> to initialize std::pair<unsigned, unsigned>.

#2 Updated by Andreas Huggel over 5 years ago

  • Category set to miscellaneous
  • Target version set to 0.23
  • % Done changed from 0 to 100

Thanks for reporting the issue!

#3 Updated by Andreas Huggel over 5 years ago

  • Status changed from New to Resolved

#4 Updated by Andreas Huggel over 5 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF

Redmine Appliance - Powered by TurnKey Linux