Opened 12 years ago

Last modified 3 years ago

#38168 assigned defect

Conflicting declarations in tiff and opencv — at Version 1

Reported by: karo11 Owned by: stromnov@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc:
Port: tiff opencv

Description (last modified by larryv (Lawrence Velázquez))

Compiling a program (gmic from gmic.scourceforge.net) using libtiff AND opencv throws errors concerning conflicting declarations. The error occurs since upgrade to MacPorts 2.1.3 :

In file included from /opt/local/include/tiffio.h:33,
                 from ./CImg.h:286,
                 from gmic.h:71,
                 from gmic.cpp:884:
/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’

A workaround would be helpful.

Change History (1)

comment:1 Changed 12 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Owner: changed from macports-tickets@… to stromnov@…
Port: & removed
Note: See TracTickets for help on using tickets.