redefined data types in different packages - request for help
Titus von Boxberg
titus at v9g.de
Sun Nov 10 03:04:57 PST 2013
Hi Mojca,
since this beautiful example of Bad Code (TM) is inside (system) library
headers there's not much you can do without reporting upstream or resorting
to very rude measures like using your own patched tiff:
Without having a system here to test my suggestions, you might be able to
- configure tiff to not define this type name (or define it correctly in
the sense of portability and compatibility, at least).
- configure the software to try to avoid #including one or the other file
(WTH is cssmconfig.h, anyway?)
Regards
Titus
----------------------------------------
From: "Mojca Miklavec" <mojca at macports.org>
Sent: Samstag, 9. November 2013 15:15
To: "MacPorts Development" <macports-dev at lists.macosforge.org>
Subject: Re: redefined data types in different packages - request for help
On Sat, Nov 9, 2013 at 3:08 PM, Mojca Miklavec <mojca at macports.org> wrote:
> 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?
I'm sorry, I copied the wrong error. It should have been:
cd /path/to/hugin-app/work/hugin-2013.0.0/src/hugin1/stitch_project &&
/usr/bin/clang++ -DHUGIN_HSI -DWXUSINGDLL -D_FILE_OFFSET_BITS=64
-D__WXMAC__ -D__WXOSX_COCOA__ -D__WXOSX__ -pipe -Os
-D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0
-I/opt/local/include -arch x86_64
-I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/i
nclude/wx-3.0
-DNDEBUG -arch x86_64 -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/python
2.7
-I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/l
ib/wx/include/osx_cocoa-unicode-3.0
-I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/i
nclude/wx-3.0
-I/path/to/hugin-app/work/hugin-2013.0.0/src/hugin1 -o
CMakeFiles/HuginStitchProject.dir/hugin_stitch_project.cpp.o -c
/path/to/hugin-app/work/hugin-2013.0.0/src/hugin1/stitch_project/hugin_stitc
h_project.cpp
In file included from
/path/to/hugin-app/work/hugin-2013.0.0/src/hugin1/stitch_project/hugin_stitc
h_project.cpp:46:
In file included from /opt/local/include/tiffio.h:33:
/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:53:18:
note: previous definition is here
typedef uint64_t uint64;
^
2 warnings and 1 error generated.
Mojca
_______________________________________________
macports-dev mailing list
macports-dev at lists.macosforge.org
https://lists.macosforge.org/mailman/listinfo/macports-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-dev/attachments/20131110/46293501/attachment.html>
More information about the macports-dev
mailing list