-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configuring GDAL 3.4.0 with a statically linked GEOS build fails in Alpine Linux 3.13 #4815
Comments
My feeling is that static linking is really hard to make work (harder than dynamic linking). People that need it will have to tune things. |
Thanks, that sounds fine to me: I'm happy with the current workaround for now and can revisit this when CMake only comes along with the aim of getting a proper fix in. I agree with the sentiment that static linking is generally harder than dynamic! In this case the extra effort is worth it as we end up with docker images at around 30MB rather than over 1GB. |
In vcpkg, you will find a static build of gdal for linux. It includes a lot of patching to |
This is a temporary workaround for OSGeo/gdal#4815.
This is a temporary workaround for OSGeo/gdal#4815.
* Remove AEC shared libs. These interfere with the static linkage of GDAL, breaking the build. * Update GDAL to 3.4.2. * Update GEOS to 3.10.2. Also add an update script to make updating easier. * Add additional GDAL URL. * Add GDAL patch. This is a temporary workaround for OSGeo/gdal#4815. * Update README.md.
I'm hitting the same issue when trying to build GDAL 3.4.3 (using GitHub release/3.4 branch). The issue I have is that I'm trying to force the lib to be in I've tried the proposed patch without success :-( Dockerfile can be found here: https://gist.github.com/vincentsarago/f48132e715cac40ecb5c15f93b6a30b6 |
closing as autoconf has been removed from master and replaced by cmake |
Expected behavior and actual behavior.
I expect to be able to configure and build GDAL against a statically linked GEOS install inside an Alpine Linux container out of the box, but instead I get a configuration error:
Steps to reproduce the problem.
Place the following
geos-static-install.sh
script in a scratch directory in a Linux environment with Docker installed, and run:As can be seen in the script above, running the following on the GDAL
./configure
works around the issue:Operating system
Alpine Linux 3.13 under Docker.
GDAL version and provenance
http://download.osgeo.org/gdal/3.4.0/gdal-3.4.0.tar.gz
The text was updated successfully, but these errors were encountered: