Opened 12 years ago

Closed 12 years ago

#38009 closed defect (fixed)

iulib @0.4-d9b9406fac75_4 fails to build with tiff @4.0.3: tiff.h doesn't define TIFFHeader

Reported by: outis Owned by: ryandesign (Ryan Carsten Schmidt)
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: papachoco (Carlos Sanchez)
Port: iulib

Description

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?

Attachments (2)

main.log (8.0 KB) - added by outis 12 years ago.
config.log (1.6 KB) - added by outis 12 years ago.

Download all attachments as: .zip

Change History (6)

Changed 12 years ago by outis

Attachment: main.log added

Changed 12 years ago by outis

Attachment: config.log added

comment:1 Changed 12 years ago by outis

While upgrading another port, macports re-built iulib as part of fixing broken ports. This time, it installed with no errors. It's possible that one of the ports that iulib has build dependencies on was broken or an older version (which happened to me with kerberos5 and libcomerr). This ticket can be changed to low priority, but it still may be a good idea for someone to see whether this is reproducible on other systems, or was likely just a local issue.

comment:2 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: papachoco@… added

Has duplicate #38022.

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Owner: changed from macports-tickets@… to ryandesign@…
Status: newassigned

It is already fixed upstream; we just need to update the port to a newer version.

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.