[MacPorts] #59233: postgis2 fails to compile on Mojave with Xcode 11.1

MacPorts noreply at macports.org
Thu Apr 1 09:44:33 UTC 2021


#59233: postgis2 fails to compile on Mojave with Xcode 11.1
-------------------------+----------------------
  Reporter:  EJFielding  |      Owner:  Veence
      Type:  defect      |     Status:  assigned
  Priority:  Normal      |  Milestone:
 Component:  ports       |    Version:  2.6.1
Resolution:              |   Keywords:
      Port:  postgis2    |
-------------------------+----------------------

Comment (by cbrown06):

 On a clean install of MacPorts-2.6.4_1-11-BigSur on macOS Big Sur 11.2.3,
 trying to install "postgis2" fails. XCode version is 12.4.

 The "softlink" workaround suggested above by Wyllys Ingersoll doesn't work
 for me. Seeing exactly the same error as indicated by Eric Fielding.

 :info:configure checking GDAL version... 3.2.2
 :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
 :info:configure Command failed:  cd
 "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis2/postgis2/work/postgis-2.5.5"
 && ./configure --prefix=/opt/local --with-projdir=/opt/local/lib/proj6
 --libdir=/opt/local/lib/postgresql12 --with-
 pgconfig=/opt/local/lib/postgresql12/bin/pg_config --with-raster --with-
 topology
 :info:configure Exit code: 1
 :error:configure 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.5/config.log
 :error:configure Failed to configure postgis2: configure failure: command
 execution failed

-- 
Ticket URL: <https://trac.macports.org/ticket/59233#comment:5>
MacPorts <https://www.macports.org/>
Ports system for macOS


More information about the macports-tickets mailing list