[MacPorts] #62114: postgis3 @3.0.3: configure failure: could not find GDAL headers

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


#62114: postgis3 @3.0.3: configure failure: could not find GDAL headers
-----------------------+----------------------
  Reporter:  conradwt  |      Owner:  Veence
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.6.4
Resolution:            |   Keywords:  bigsur
      Port:  postgis3  |
-----------------------+----------------------

Comment (by cbrown06):

 Looks like it's still an issue, see also:
 https://trac.macports.org/ticket/59233 ("postgis2").

 Same error for "postgis2" AND "postgis3".

 On a clean install of MacPorts-2.6.4_1-11-BigSur on macOS Big Sur 11.2.3,
 trying to install "postgis3" fails. XCode version is 12.4. I'm also
 getting the (incorrect) message:

 {{{
 Warning: The macOS 11.2 SDK does not appear to be installed. Ports may not
 build correctly.
 Warning: You can install it as part of the Xcode Command Line Tools
 package by running `xcode-select --install'.
 }}}

 Looks like a problem with "GDAL" according to:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis3/postgis3/main.log


 {{{
 :info:configure checking for gdal-config... /opt/local/bin/gdal-config
 :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_postgis3/postgis3/work/postgis-3.0.3"
 && ./configure --prefix=/opt/local --libdir=/opt/local/lib/postgresql13
 --with-pgconfig=/opt/local/lib/postgresql13/bin/pg_config --with-raster
 --with-topology --with-projdir=/opt/local/lib/proj7
 :info:configure Exit code: 1
 :error:configure Failed to configure postgis3, consult
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis3/postgis3/work/postgis-3.0.3/config.log
 :error:configure Failed to configure postgis3: configure failure: command
 execution failed
 :debug:configure Error code: NONE
 :debug:configure Backtrace: configure failure: command execution failed
 :debug:configure     while executing
 :debug:configure "$procedure $targetname"
 :error:configure See
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_databases_postgis3/postgis3/main.log
 for details.
 }}}

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


More information about the macports-tickets mailing list