#38854: conflicting declarations ----------------------------------+-------------------------------- Reporter: karo03de@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.1.3 Keywords: declaration mismatch | Port: opencv ----------------------------------+-------------------------------- Using port opencv with tiff throws errors: /opt/local/include/tiff.h:77: error: conflicting declaration ‘typedef long int int64’ /opt/local/include/opencv2/core/types_c.h:163: error: ‘int64’ has a previous declaration as ‘typedef int64_t int64’ /opt/local/include/tiff.h:78: error: conflicting declaration ‘typedef long unsigned int uint64’ /opt/local/include/opencv2/core/types_c.h:164: error: ‘uint64’ has a previous declaration as ‘typedef uint64_t uint64’ Replacing line 163-164 in /opt/local/include/opencv2/core/types_c.h {{{ typedef int64_t int64; typedef uint64_t uint64; }}} by {{{ /* Unsigned 64-bit type */ #ifndef __LP64__ typedef long long int int64; typedef long long unsigned int uint64; #else /* __LP64__ */ typedef long int int64; typedef long unsigned int uint64; #endif /* __LP64__ */ /* typedef int64_t int64; */ /* typedef uint64_t uint64; */ }}} allows at least for 32 and 64 bit compilation on Mountain Lion, Lion & Leopard! Although opencv has a quick revision cycle seemingly nobody used this combination of opencv and tiff. This is a precision (?) or repetition of ticket #38168 since there happened nothing after more than two new revisions of opencv! -- Ticket URL: <https://trac.macports.org/ticket/38854> MacPorts <http://www.macports.org/> Ports system for OS X