[MacPorts] #55831: postgis2 fails to compile on Snow Leopard

MacPorts noreply at macports.org
Tue Oct 15 14:50:40 UTC 2019


#55831: postgis2 fails to compile on Snow Leopard
-----------------------+-------------------------
  Reporter:  fvaccari  |      Owner:  Veence
      Type:  defect    |     Status:  assigned
  Priority:  Normal    |  Milestone:
 Component:  ports     |    Version:  2.4.2
Resolution:            |   Keywords:  snowleopard
      Port:  postgis2  |
-----------------------+-------------------------

Comment (by fvaccari):

 Sitting with @mojca behind the machine.

 In the meantime the default compilers changed and this port is still
 problematic.

 One further problem we discovered is that we had to add a configure flag
 `--with-gdalconfig=${prefix}/bin/gdal-config` next to

 {{{
 variant raster description {Build raster support} {
     depends_lib-append      port:gdal
 ...
 }}}
 else it didn't find the gdal headers at all.

 Now, after adding that flag, the problem remained with
 {{{
 checking for OGR enabled... yes
 checking gdal.h usability... no
 checking gdal.h presence... yes
 configure: WARNING: gdal.h: present but cannot be compiled
 configure: WARNING: gdal.h:     check for missing prerequisite headers?
 configure: WARNING: gdal.h: see the Autoconf documentation
 configure: WARNING: gdal.h:     section "Present But Cannot Be Compiled"
 configure: WARNING: gdal.h: proceeding with the compiler's result
 checking for gdal.h... no
 configure: error: could not find GDAL headers
 }}}
 which seems to boil down to
 {{{
 configure:17664: /usr/bin/gcc-4.2 -c -Wall -Wmissing-prototypes -Wpointer-
 arith -Wdeclaration-after-statement -Wendif-labels -Wmissing-format-
 attribute -Wformat-security -fno-strict-aliasing -fwrapv -pipe -Os -arch
 x86_64 -I/opt/local/include conftest.c >&5
 In file included from /opt/local/include/gdal.h:45,
                  from conftest.c:105:
 /opt/local/include/cpl_port.h:709:23: error: x86intrin.h: No such file or
 directory
 }}}

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


More information about the macports-tickets mailing list