Opened 5 weeks ago

Last modified 3 weeks ago

#59233 assigned defect

postgis2 fails to compile on Mojave with Xcode 11.1

Reported by: EJFielding (Eric Fielding) Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version: 2.6.1
Keywords: Cc: gabiruh (Gabriel Andrade)
Port: postgis2

Description

I ran a port selfupdate and port upgrade outdated today, and the postgis2 2.5.3 version failed in the configure step.

--->  Attempting to fetch postgis2-2.5.3_0+postgresql10+raster+topology.darwin_18.x86_64.tbz2 from http://ywg.ca.packages.macports.org/mirror/macports/packages/postgis2
--->  Fetching distfiles for postgis2
--->  Verifying checksums for postgis2
--->  Extracting postgis2
--->  Configuring postgis2
Error: Failed to configure postgis2, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.5.3/config.log
Error: Failed to configure postgis2: configure failure: command execution failed
Error: See /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/main.log for details.

The config.log file is long, so I will attach it.

Attachments (2)

config.log (185.5 KB) - added by EJFielding (Eric Fielding) 5 weeks ago.
config log
main.log (22.9 KB) - added by EJFielding (Eric Fielding) 5 weeks ago.
main log

Download all attachments as: .zip

Change History (6)

Changed 5 weeks ago by EJFielding (Eric Fielding)

Attachment: config.log added

config log

Changed 5 weeks ago by EJFielding (Eric Fielding)

Attachment: main.log added

main log

comment:1 Changed 5 weeks ago by EJFielding (Eric Fielding)

It seems that it can't find usable GDAL headers. From the main.log:

:info:configure checking for gdal-config... /opt/local/bin/gdal-config
:info:configure checking GDAL version... 3.0.1
:info:configure checking for OGR enabled... yes
:info:configure checking gdal.h usability... no
:info:configure checking gdal.h presence... yes
:info:configure configure: WARNING: gdal.h: present but cannot be compiled
:info:configure configure: WARNING: gdal.h:     check for missing prerequisite headers?
:info:configure configure: WARNING: gdal.h: see the Autoconf documentation
:info:configure configure: WARNING: gdal.h:     section "Present But Cannot Be Compiled"
:info:configure configure: WARNING: gdal.h: proceeding with the compiler's result
:info:configure checking for gdal.h... no
:info:configure configure: error: could not find GDAL headers

comment:2 Changed 5 weeks ago by jmroot (Joshua Root)

Cc: Veence removed
Owner: set to Veence
Status: newassigned

comment:3 Changed 3 weeks ago by gabiruh (Gabriel Andrade)

Cc: gabiruh added

comment:4 Changed 3 weeks ago by wyllys66 (Wyllys Ingersoll)

XCode 11.1 only includes the MacOSX10.15.sdk, but port still wants to use 10.14. I worked around this by making a soft link so that configure scripts would work correctly. The other option is to revert to XCode 10.

$ cd /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs
$ sudo ln -s MacOSX.sdk MacOSX10.14.sdk

Last edited 3 weeks ago by wyllys66 (Wyllys Ingersoll) (previous) (diff)
Note: See TracTickets for help on using tickets.