[MacPorts] #55752: gdal @2.2.3_1: fatal error: 'MacTypes.h' file not found

MacPorts noreply at macports.org
Fri Jan 26 04:29:04 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:
Resolution:          |   Keywords:
      Port:  gdal    |
---------------------+--------------------
Description changed by kencu:

Old description:

> 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
> }}}

New description:

 This build is on 10.6.8, but I'm not yet sure if that fact is relevant:
 {{{
 /bin/sh
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.2.3/libtool
 --mode=compile --tag=CXX /opt/local/bin/clang++-mp-3.9 -std=gnu++11
 -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/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.2.3/gcore
 -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/alg
 -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/ogr
 -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/ogr/ogrsf_frmts
 -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/gnm
 -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/apps
 -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  -I..
 -I../.. -I../mem
 -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_EXPAT -c -o ../o/ogrodsdriver.lo ogrodsdriver.cpp
 libtool: compile:  /opt/local/bin/clang++-mp-3.9 -std=gnu++11
 -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/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.2.3/gcore
 -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/alg
 -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/ogr
 -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/ogr/ogrsf_frmts
 -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/gnm
 -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/apps
 -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 -I..
 -I../.. -I../mem
 -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_EXPAT -c ogrodsdriver.cpp  -fno-common -DPIC -o
 ../o/.libs/ogrodsdriver.o
 libtool: compile:  /opt/local/bin/clang++-mp-3.9 -std=gnu++11
 -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 -I. -I..
 -I../.. -I../../..
 -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 -c io.cpp
 -o ../../../o/io.o >/dev/null 2>&1
 libtool: compile:  /opt/local/bin/clang-mp-3.9 -c
 -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
 -DUSE_IN_GDAL -Ilibcsf -DHAVE_AVX_AT_COMPILE_TIME
 -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -pipe
 -DGDAL_COMPILATION -arch x86_64 -Wall -Wdeclaration-after-statement
 -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-
 declarations -Wformat -Werror=format-security -Wno-format-nonliteral
 -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement
 -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation
 -Wno-documentation-deprecated-sync libcsf/legend.c -o ../o/legend.o
 >/dev/null 2>&1
 /bin/sh
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.2.3/libtool
 --mode=compile --tag=CC /opt/local/bin/clang-mp-3.9 -c
 -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
 -DUSE_IN_GDAL -Ilibcsf -DHAVE_AVX_AT_COMPILE_TIME
 -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -pipe
 -DGDAL_COMPILATION -arch x86_64  -Wall -Wdeclaration-after-statement
 -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-
 declarations -Wformat -Werror=format-security -Wno-format-nonliteral
 -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement
 -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation
 -Wno-documentation-deprecated-sync  libcsf/mclose.c -o ../o/mclose.lo
 libtool: compile:  /opt/local/bin/clang-mp-3.9 -c
 -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
 -DUSE_IN_GDAL -Ilibcsf -DHAVE_AVX_AT_COMPILE_TIME
 -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -pipe
 -DGDAL_COMPILATION -arch x86_64 -Wall -Wdeclaration-after-statement
 -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-
 declarations -Wformat -Werror=format-security -Wno-format-nonliteral
 -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement
 -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation
 -Wno-documentation-deprecated-sync libcsf/mclose.c  -fno-common -DPIC -o
 ../o/.libs/mclose.o
 /bin/sh
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.2.3/libtool
 --mode=compile --tag=CXX /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.lo
 /bin/sh
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.2.3/libtool
 --mode=compile --tag=CXX /opt/local/bin/clang++-mp-3.9 -std=gnu++11
 -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  -I. -I..
 -I../.. -I../../..
 -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 -c -o
 ../../../o/r2000.lo r2000.cpp
 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  -fno-common -DPIC -o
 ../o/.libs/cpixelinterleavedchannel.o
 libtool: compile:  /opt/local/bin/clang++-mp-3.9 -std=gnu++11
 -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 -I. -I..
 -I../.. -I../../..
 -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 -c
 r2000.cpp  -fno-common -DPIC -o ../../../o/.libs/r2000.o
 libtool: compile:  /opt/local/bin/clang-mp-3.9 -c
 -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
 -DUSE_IN_GDAL -Ilibcsf -DHAVE_AVX_AT_COMPILE_TIME
 -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -pipe
 -DGDAL_COMPILATION -arch x86_64 -Wall -Wdeclaration-after-statement
 -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-
 declarations -Wformat -Werror=format-security -Wno-format-nonliteral
 -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement
 -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation
 -Wno-documentation-deprecated-sync libcsf/mclose.c -o ../o/mclose.o
 >/dev/null 2>&1
 libtool: compile:  /opt/local/bin/clang++-mp-3.9 -std=gnu++11
 -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/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.2.3/gcore
 -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/alg
 -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/ogr
 -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/ogr/ogrsf_frmts
 -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/gnm
 -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/apps
 -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 -I..
 -I../.. -I../mem
 -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_EXPAT -c ogrodsdriver.cpp -o ../o/ogrodsdriver.o >/dev/null 2>&1
 /bin/sh
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_gis_gdal/gdal/work/gdal-2.2.3/libtool
 --mode=compile --tag=CC /opt/local/bin/clang-mp-3.9 -c
 -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
 -DUSE_IN_GDAL -Ilibcsf -DHAVE_AVX_AT_COMPILE_TIME
 -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -pipe
 -DGDAL_COMPILATION -arch x86_64  -Wall -Wdeclaration-after-statement
 -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-
 declarations -Wformat -Werror=format-security -Wno-format-nonliteral
 -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement
 -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation
 -Wno-documentation-deprecated-sync  libcsf/mopen.c -o ../o/mopen.lo
 libtool: compile:  /opt/local/bin/clang-mp-3.9 -c
 -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
 -DUSE_IN_GDAL -Ilibcsf -DHAVE_AVX_AT_COMPILE_TIME
 -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -pipe
 -DGDAL_COMPILATION -arch x86_64 -Wall -Wdeclaration-after-statement
 -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-
 declarations -Wformat -Werror=format-security -Wno-format-nonliteral
 -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement
 -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation
 -Wno-documentation-deprecated-sync libcsf/mopen.c  -fno-common -DPIC -o
 ../o/.libs/mopen.o
 libtool: compile:  /opt/local/bin/clang-mp-3.9 -c
 -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
 -DUSE_IN_GDAL -Ilibcsf -DHAVE_AVX_AT_COMPILE_TIME
 -DHAVE_SSSE3_AT_COMPILE_TIME -DHAVE_SSE_AT_COMPILE_TIME -pipe
 -DGDAL_COMPILATION -arch x86_64 -Wall -Wdeclaration-after-statement
 -Wextra -Winit-self -Wunused-parameter -Wmissing-prototypes -Wmissing-
 declarations -Wformat -Werror=format-security -Wno-format-nonliteral
 -Wshorten-64-to-32 -Wshadow -Werror=vla -Wdeclaration-after-statement
 -Wdate-time -Wnull-dereference -Wcomma -Wfloat-conversion -Wdocumentation
 -Wno-documentation-deprecated-sync libcsf/mopen.c -o ../o/mopen.o
 >/dev/null 2>&1
 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#comment:1>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list