Opened 10 years ago

Last modified 10 years ago

#41280 closed defect

tiff @4.0.3_1: redefinition of uint64 — at Version 1

Reported by: mojca (Mojca Miklavec) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: tiff

Description (last modified by mojca (Mojca Miklavec))

Compilation of hugin-app is broken because libtiff redefines uint64. The error is:

/opt/local/include/tiff.h:78:23: error: typedef redefinition with different types ('unsigned long' vs 'uint64_t' (aka 'unsigned long long'))
typedef TIFF_UINT64_T uint64;
                      ^
//System/Library/Frameworks/Security.framework/Headers/cssmconfig.h:51:18: note: previous definition is here
typedef uint64_t uint64;
                 ^
1 warning generated.
1 warning and 1 error generated.

Here's a complete log from the buildbot: https://build.macports.org/builders/buildports-mtln-x86_64/builds/9524

My temporary workaround was to put

// typedef TIFF_UINT64_T uint64;
typedef uint64_t uint64;

into tiff.h which made hugin-app compile successfully, but I'm aware that this is probably not a proper solution.

I submitted an upstream bug report here:

Change History (1)

comment:1 Changed 10 years ago by mojca (Mojca Miklavec)

Description: modified (diff)
Note: See TracTickets for help on using tickets.