Created attachment 226248 [details] The config.log produced during a build attempt of gdal without GEOS support requested I am trying to update gdal to 3.3.0, and it fails in configure when I don't have GEOS selected (I do not need GEOS and don't want all the dependencies it brings in). Configure fails with: checking Checking for Teigha... disabled configure: IBM Informix DataBlade not supported. GEOS support disabled configure: error: GEOS support explicitly enabled, but geos-config could not be found ===> Script "configure" failed unexpectedly. Please report the problem to sunpoet@FreeBSD.org [maintainer] and attach the "/usr/ports/graphics/gdal/work/gdal-3.3.0/config.log" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. a /usr/local/sbin/pkg-static info -g -Ea). *** Error code 1
I should note that I'm trying to build a fairly minimal version of GDAL, as I only need some of its features. I have only EXR, JASPER, KML, and POPPLER selected. With this small subset, I get the failure reported here. If I try to enable GEOS, then GEOS gets installed, but I still get a failure in gdal's configure phase. It's a different one of the same variety: configure: Using C API from GEOS 3.9.1 SFCGAL support disabled configure: error: SFCGAL support explicitly enabled, but sfcgal-config could not be found ===> Script "configure" failed unexpectedly. Please report the problem to sunpoet@FreeBSD.org [maintainer] and attach the "/usr/ports/graphics/gdal/work/gdal-3.3.0/config.log" including the output of the failure of your make command. Also, it might be a good idea to provide an overview of all packages installed on your system (e.g. a /usr/local/sbin/pkg-static info -g -Ea). *** Error code 1 Note that configure is saying that I've got the support disabled, but then immediately fails saying it's explicitly enabled and not found. If I enable SFCGAL, then gdal's configure works. There is clearly something wrong with GEOS and SFCGAL options, since it won't let me disable them.
Created attachment 226269 [details] New configure patch for --with-scfgal=no
Comment on attachment 226269 [details] New configure patch for --with-scfgal=no I had the same issue with the SFCGAL knob (I have GOES already enabled). I think it has to do with the configure script -- it continues to look for *-config programs even when the --with-*=no is passed to the configure script. I was able to patch configure to make it work for sfcgal (see attached), I assume the fix maybe similar for GOES.
Fixed in 2e5262c24a1736f49c475a22ec9adbe414384522. Thanks!