[MacPorts] #55752: gdal @2.2.3_1: fatal error: 'MacTypes.h' file not found
MacPorts
noreply at macports.org
Fri Jan 26 04:25:34 UTC 2018
#55752: gdal @2.2.3_1: fatal error: 'MacTypes.h' file not found
--------------------+--------------------
Reporter: kencu | Owner: Veence
Type: defect | Status: new
Priority: Normal | Milestone:
Component: ports | Version:
Keywords: | Port: gdal
--------------------+--------------------
This build is on 10.6.8, but I'm not yet sure if that fact is relevant:
{{{
libtool: compile: /opt/local/bin/clang++-mp-3.9 -std=gnu++11 -c
-DHAVE_LIBJPEG -DPCIDSK_INTERNAL -Isdk
-I/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.2.3/port
-I/opt/local -I/opt/local/include -I/opt/local/include/libqhull
-DHAVE_AVX_AT_COMPILE_TIME -DHAVE_SSSE3_AT_COMPILE_TIME
-DHAVE_SSE_AT_COMPILE_TIME -pipe -DGDAL_COMPILATION -stdlib=libc++ -arch
x86_64 -Wall -Wextra -Winit-self -Wunused-parameter -Wformat -Werror
=format-security -Wno-format-nonliteral -Wshorten-64-to-32 -Wshadow
-Werror=vla -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion
-Wdocumentation -Wno-documentation-deprecated-sync -Wunused-private-field
-Wmissing-prototypes -Wmissing-declarations -Wnon-virtual-dtor
-Woverloaded-virtual -fno-operator-names -Wimplicit-fallthrough
sdk/channel/cpixelinterleavedchannel.cpp -o
../o/cpixelinterleavedchannel.o >/dev/null 2>&1
r2000.cpp:55:14: fatal error: 'MacTypes.h' file not found
#include <MacTypes.h>
^
1 error generated.
}}}
It was quite easily fixed with this -- in file:
{{{
ogr/ogrsf_frmts/cad/libopencad/dwg/r2000.cpp
}}}
change
{{{
#ifdef __APPLE__
#include <MacTypes.h>
#endif
}}}
to
{{{
#ifdef __APPLE__
#include
<CoreServices/../Frameworks/CarbonCore.framework/Headers/MacTypes.h>
#endif
}}}
--
Ticket URL: <https://trac.macports.org/ticket/55752>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list