libgdal-core: fix unresolved symbols; add tests; link geos and proj dynamically - #6586
Open
MMesch wants to merge 3 commits into
Open
libgdal-core: fix unresolved symbols; add tests; link geos and proj dynamically#6586MMesch wants to merge 3 commits into
MMesch wants to merge 3 commits into
Conversation
CMake was passed libgeos_c.a but not libgeos.a, so wasm-ld inlined the C wrapper into libgdal.so with 349 unresolved C++ callees and empty dylink.0 NEEDED. Loading libgdal before libgeos (e.g. import pygplates under xeus-python) then crashed on stub calls into geos. Link libgeos_c.so instead: libgdal.so records NEEDED=libgeos_c.so and the LDSO pulls libgeos in first. Add a runtime test that dlopens libgdal and calls into geos via OGR to guard against regressions.
- build.sh: -DPROJ_LIBRARY libproj.a -> libproj.so - recipe.yaml: proj-static -> proj >=9.8 on the dynamic output; new libgdal-core-tests subpackage (build compiles a MAIN_MODULE test, run_tests.sh mounts PROJ_DATA via NODEFS and executes it) - tests: covers OGR_G_Intersection (GEOS) and OCTTransform (PROJ)
MMesch
commented
Sep 8, 2026
Comment on lines
+31
to
+32
| -sFORCE_FILESYSTEM=1 | ||
| -lnodefs.js |
Collaborator
Author
There was a problem hiding this comment.
not sure what the best way is to do this. It's needed by proj.
1 task
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Package Details
Build Notes