[MacPorts] #51470: openexr @2.2.0 compile fails

MacPorts noreply at macports.org
Sun May 22 13:27:35 PDT 2016


#51470: openexr @2.2.0 compile fails
----------------------+------------------------
  Reporter:  joerg@…  |      Owner:  mcalhoun@…
      Type:  defect   |     Status:  new
  Priority:  Normal   |  Milestone:
 Component:  ports    |    Version:  2.3.4
Resolution:           |   Keywords:
      Port:  openexr  |
----------------------+------------------------

Comment (by Peter_Dyballa@…):

 On PPC Tiger, Mac OS X 10.4.11, another error occurs: the values
 `0xffffffffffffffffL`set on lines #110, 355, 365, 420, and 530 are found
 erroneous by GCC 4..2.4, `apple-gcc42 @5666.3_15+gpl3 (active)`.

 On line #100 the `base` array is declared as of type Int64, which is
 #typedef'ed in include/OpenEXR/ImathInt64.h as `long long unsigned int`.
 GCC 4.2.4 has #defined:

 {{{
 #define LONG_LONG_MAX __LONG_LONG_MAX__
 #define ULONG_LONG_MAX (LONG_LONG_MAX * 2ULL + 1ULL)
 }}}

 with

 {{{
 #define __LONG_LONG_MAX__ 9223372036854775807LL
 }}}

 as a built-in #define. Other PPC limits:

 {{{
 #define ULONG_MAX 0xffffffffL
 #define LONG_MAX 2147483647L

 #define ULLONG_MAX 0xffffffffffffffffULL
 }}}

 So obviously the too simplistic code à la `= 0xffffffffffffffffL;` has to
 be corrected as `= 0xffffffffffffffffULL;`. This is accomplished by my
 patch file.

-- 
Ticket URL: <https://trac.macports.org/ticket/51470#comment:10>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list