[MacPorts] #38009: iulib @0.4-d9b9406fac75_4 fails to build with tiff @4.0.3: tiff.h doesn't define TIFFHeader

MacPorts noreply at macports.org
Sun Feb 10 01:08:58 PST 2013


#38009: iulib @0.4-d9b9406fac75_4 fails to build with tiff @4.0.3: tiff.h doesn't
define TIFFHeader
------------------------+--------------------------------
 Reporter:  ww.galen@…  |      Owner:  macports-tickets@…
     Type:  defect      |     Status:  new
 Priority:  Normal      |  Milestone:
Component:  ports       |    Version:  2.1.3
 Keywords:              |       Port:  iulib
------------------------+--------------------------------
 After upgrading tiff from @3.9.7_0+universal to @4.0.3_0+universal, trying
 to upgrade iulib to @0.4-d9b9406fac75_4 fails during the build stage. The
 build log (also attached) contains the following relevant error:
 {{{
 :info:build Checking for TIFFHeader in C library tiff... no
 :info:build AssertionError: please install: libtiff4-dev:
 :info:build   File
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_iulib/iulib/work/iulib-0.4-d9b9406fac75/SConstruct",
 line 70:
 :info:build     assert conf.CheckLibWithHeader('tiff', 'tiff.h', 'C',
 'TIFFHeader;', 1), "please install: libtiff4-dev"
 :info:build Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_graphics_iulib/iulib/work/iulib-0.4-d9b9406fac75"
 && scons -j2 test=yes
 }}}

 config.log also has relevant info:
 {{{
 scons: Configure: Checking for TIFFHeader in C library tiff...
 .sconf_temp/conftest_2.c <-
   |
   |
   |#include "tiff.h"
   |
   |int
   |main() {
   |  TIFFHeader;
   |return 0;
   |}
   |
 gcc -o .sconf_temp/conftest_2.o -c -I/opt/local/include
 .sconf_temp/conftest_2.c
 .sconf_temp/conftest_2.c: In function 'main':
 .sconf_temp/conftest_2.c:7: error: 'TIFFHeader' undeclared (first use in
 this function)
 .sconf_temp/conftest_2.c:7: error: (Each undeclared identifier is reported
 only once
 .sconf_temp/conftest_2.c:7: error: for each function it appears in.)
 scons: Configure: no
 }}}

 As mentioned in the log, no `TIFFHeader` is defined in tiff.h for @4.0.3.
 Instead, we have `TIFFHeaderCommon`, `TIFFHeaderClassic` and
 `TIFFHeaderBig`.  tiff.h for @3.9.7 defines `TIFFHeader`, with fields
 corresponding to `TIFFHeaderClassic` in 4.0.3. Looks like iulib
 @0.4-d9b9406fac75_4 is incompatible with tiff 4. Is this something that
 the iulib devs need to handle, or can anything be done for macports?

-- 
Ticket URL: <https://trac.macports.org/ticket/38009>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list