redefined data types in different packages - request for help

Mojca Miklavec mojca at macports.org
Sat Nov 9 06:08:08 PST 2013


Hi,

one of the problems I'm experiencing when compiling hugin-app is that
"uint64" is defined both in Security.framework where it's
uint64->uint64_t as well as in tiff.h/tiffio.h where it gets defined
as "unsigned long long".

How can one resolve such a conflict?

cd /path/to/hugin-app/work/hugin-2013.0.0/src/foreign/vigra/vigra_impex
&& /usr/bin/clang++   -DHUGIN_HSI -Dhuginvigraimpex_EXPORTS -pipe -Os
-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0
-I/opt/local/include -arch x86_64  -DNDEBUG -arch x86_64 -fPIC
-I/path/to/hugin-app/work/hugin-2013.0.0/src
-I/path/to/hugin-app/work/hugin-2013.0.0/src/hugin_base
-I/path/to/hugin-app/work/hugin-2013.0.0/src/foreign/vigra
-I/path/to/hugin-app/work/hugin-2013.0.0/src/celeste
-I/opt/local/include -I/opt/local/include/OpenEXR
-F//System/Library/Frameworks
-I/System/Library/Frameworks/GLUT.framework/Versions/A/Headers
-I/path/to/hugin-app/work/hugin-2013.0.0/src/foreign
-I/opt/local/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7
   -o CMakeFiles/huginvigraimpex.dir/tiff.cxx.o -c
/path/to/hugin-app/work/hugin-2013.0.0/src/foreign/vigra/vigra_impex/tiff.cxx

In file included from
/path/to/hugin-app/work/hugin-2013.0.0/src/foreign/vigra/vigra_impex/tiff.cxx:76:
/opt/local/include/tiff.h:79:18: error: typedef redefinition with
different types ('uint64_t' (aka 'unsigned long long') vs 'unsigned
long')
typedef uint64_t uint64;
                 ^
/opt/local/include/tiff.h:78:23: note: previous definition is here
typedef TIFF_UINT64_T uint64;
                      ^
1 error generated.

Thank you,
    Mojca


More information about the macports-dev mailing list