[GRASS-git] [OSGeo/grass] 9b240c: lib/external/parson: hide parson symbols on linkag...
Nicklas Larsson
noreply at github.com
Tue Sep 30 15:06:34 PDT 2025
Branch: refs/heads/main
Home: https://github.com/OSGeo/grass
Commit: 9b240c893def49c9cfd98f26bd6421bce39916d7
https://github.com/OSGeo/grass/commit/9b240c893def49c9cfd98f26bd6421bce39916d7
Author: Nicklas Larsson <n_larsson at yahoo.com>
Date: 2025-09-30 (Tue, 30 Sep 2025)
Changed paths:
M lib/external/parson/parson.c
A raster/conftest.py
A raster/r.out.gdal/tests/r_out_gdal_test.py
Log Message:
-----------
lib/external/parson: hide parson symbols on linkage (#6432)
Various open source JSON libraries in use, share in part identical API.
In general this is because they do not use library specific prefixes.
This can cause linkage conflicts, as has been the case with GDAL linked
a call to the GRASS parson library instead of its own embedded JSON-C,
causing segfault.
This fix includes a minor patch to the vendored parson code, which
would have been avoided if there was a simple way to pass a CFLAG
"-fvisibility=hidden" to a single file in GRASS' build system.
* Add test for r.out.gdal based on the code provided in the original
report in #6398 (export of COG segfaults). The tests fails with -11
without the changes and passes with the changes.
---------
Co-authored-by: Vaclav Petras <wenzeslaus at gmail.com>
To unsubscribe from these emails, change your notification settings at https://github.com/OSGeo/grass/settings/notifications
More information about the grass-commit
mailing list