Opened 11 months ago

Closed 11 months ago

Last modified 11 months ago

#56520 closed defect (fixed)

Error in gdal configure

Reported by: news24lor Owned by: Veence (Vincent)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc:
Port: gdal

Description

I have GDAL 2.3.0 installed. Today I found a new update for this version of GDAL but macports could not configure it. I have not changed anything. The configuration is always the old one. This is the error in the log:

:info:configure checking if Catalog::optContent exists... yes
:info:configure checking if BaseStream constructor needs 2 arguments... yes
:info:configure checking if we have Poppler >= 0.20.0... yes
:info:configure checking if we have Poppler >= 0.23.0... yes
:info:configure checking for podofo... disabled
:info:configure checking for pdfium... disabled
:info:configure checking how to link PROJ library... configure: error: only one of --static-proj4 and --proj can be used
:info:configure Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-4243624/gdal" && ./configure --prefix=/opt/local --with-local=yes --with-libz=yes --with-zstd=yes --without-liblzma --with-png=yes --with-libtiff=internal --with-geotiff=internal --with-jpeg=internal --with-charls=no --with-gif=yes --with-proj=/opt/local/lib/proj5 --with-qhull=yes --with-pam --with-sqlite3=yes --with-spatialite=yes --without-grass --without-libgrass --without-cfitsio --without-ogdi --without-fme --without-hdf4 --without-openjpeg --without-ecw --without-kakadu --without-jp2mrsid --without-msg --without-bsb --without-oci --without-grib --without-mysql --without-ingres --without-idb --without-sde --without-perl --without-php --without-python --mandir=/opt/local/share/man --with-libjson-c=internal --with-cpp14 --with-geos=/opt/local/bin/geos-config --with-curl=/opt/local/bin/curl-config --with-mrsid=/opt/local/share/Geo_DSDK/Raster_DSDK --with-hdf5=/opt/local --with-netcdf=/opt/local --with-jasper=/opt/local/include --with-xerces=/opt/local --with-expat=/opt/local --with-pg=/opt/local/lib/postgresql10/bin/pg_config --with-odbc=/opt/local --with-poppler=/opt/local --with-opencl --with-opencl-include=/System/Library/Frameworks/OpenCL.framework//Headers --with-opencl-lib='-framework OpenCL' --with-static-proj4=/opt/local/lib/proj49 
:info:configure Exit code: 1
:error:configure Failed to configure gdal, consult /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_macports_release_tarballs_ports_gis_gdal/gdal/work/gdal-4243624/gdal/config.log
:error:configure Failed to configure gdal: 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_gis_gdal/gdal/main.log for details.

Change History (7)

comment:1 Changed 11 months ago by Veence (Vincent)

I’m going to look at that in a jiffy.

Which version of MacOS are you compiling on? And which version of proj do you have installed? Thanks.

comment:2 Changed 11 months ago by news24lor

Hi Vincent

I have tested in Mac OS 10.11 and 10.12

I use proj 4.9.3

comment:3 Changed 11 months ago by Veence (Vincent)

Owner: set to Veence
Resolution: fixed
Status: newclosed

In a3ccbc3f8d1af7a08af28f91182d91059447ad0a/macports-ports (master):

gdal: fix a bug in proj version handling.

Fixes: #56520

comment:4 Changed 11 months ago by Veence (Vincent)

There was a typo. Wait a couple of minutes for the repository to update, then try again! It should be fixed.

comment:5 Changed 11 months ago by news24lor

I have always this error:

--->  Scanning binaries for linking errors
--->  Found 2 broken files, matching files to ports      
--->  Found 1 broken port, determining rebuild order
You can always run 'port rev-upgrade' again to fix errors.
The following ports will be rebuilt: gdal @2.3.0+curl+expat+geos+hdf5+jasper+mrsid+netcdf+odbc+opencl+poppler+postgresql10+proj4+xerces

Why 2 broken files and 1 broken port?

Rebuilt does not work but gdal 2.3.0 was installed

Last edited 11 months ago by news24lor (previous) (diff)

comment:6 Changed 11 months ago by Veence (Vincent)

Are you certain gdal 2.3 is installed? This seems strange.

Also I’m not sure the new Portfile is available yet. Wait a bit more (say, quarter of an hour) and try again.

comment:7 Changed 11 months ago by mf2k (Frank Schima)

Cc: vince@… removed
Port: gdal added
Note: See TracTickets for help on using tickets.