Skip to content
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

Undefined symbol runtime error w/GDAL 3.5.1 #11

Open
ssinno opened this issue Jul 8, 2022 · 4 comments
Open

Undefined symbol runtime error w/GDAL 3.5.1 #11

ssinno opened this issue Jul 8, 2022 · 4 comments
Labels
bug Something isn't working
Milestone

Comments

@ssinno
Copy link

ssinno commented Jul 8, 2022

Compiles fine against GDAL 3.5.1, but hitting undefined symbol errors with any kind of execution, which go away if I simply remove the GRASS plugins. My guess is a simple update is req to reflect changes in 3.5.1

  gdalinfo --version
    ERROR 1: /discover/swdev/sacs/sw/base/gcc12-3.5.1/gdal-3.5.1/lib/gdalplugins/ogr_GRASS.so: undefined symbol: _ZNK11GDALDataset19GetFieldDomainNamesB5cxx11EPKPKc
    ERROR 1: /discover/swdev/sacs/sw/base/gcc12-3.5.1/gdal-3.5.1/lib/gdalplugins/ogr_GRASS.so: undefined symbol: _ZNK11GDALDataset19GetFieldDomainNamesB5cxx11EPKPKc
    ERROR 1: /discover/swdev/sacs/sw/base/gcc12-3.5.1/gdal-3.5.1/lib/gdalplugins/gdal_GRASS.so: undefined symbol: _ZNK11GDALDataset19GetFieldDomainNamesB5cxx11EPKPKc
    ERROR 1: /discover/swdev/sacs/sw/base/gcc12-3.5.1/gdal-3.5.1/lib/gdalplugins/gdal_GRASS.so: undefined symbol: _ZNK11GDALDataset19GetFieldDomainNamesB5cxx11EPKPKc
    GDAL 3.5.1, released 2022/06/30
@neteler
Copy link
Member

neteler commented Jul 8, 2022

Wild guess, might it be related to OSGeo/gdal#5152
?

@neteler neteler added the bug Something isn't working label Jul 8, 2022
@rouault
Copy link
Member

rouault commented Jul 8, 2022

Wild guess, might it be related to OSGeo/gdal#5152

yes and no, it looks more like the plugin is built against GDAL 3.5 headers but run against an older GDAL library. Look at the output of "ldd /discover/swdev/sacs/sw/base/gcc12-3.5.1/gdal-3.5.1/lib/gdalplugins/ogr_GRASS.so" to check which GDAL runtime library is linked.

@ssinno
Copy link
Author

ssinno commented Jul 8, 2022

Looks like it's linking to the correct (3.5.1) rev of the source-obj(as part of LD_LIBRARY_PATH), and appears to be finding all that it's looking for, but the issue persists

(sacs-3.5.1) [ssinno@discover23 gdalplugins]ldd -v gdal_GRASS.so| egrep '(gdal|not found)'
        libgdal.so.31 => /discover/swdev/sacs/sw/sacs-3.5.1/gdal-3.5.1/lib/libgdal.so.31 (0x00007ffff5ee6000)
        ./gdal_GRASS.so:
        /discover/swdev/sacs/sw/sacs-3.5.1/gdal-3.5.1/lib/libgdal.so.31:
(sacs-3.5.1) [ssinno@discover23 gdalplugins]ldd -v ogr_GRASS.so| egrep '(gdal|not found)'
        libgdal.so.31 => /discover/swdev/sacs/sw/sacs-3.5.1/gdal-3.5.1/lib/libgdal.so.31 (0x00007ffff5ee6000)
        /discover/swdev/sacs/sw/sacs-3.5.1/gdal-3.5.1/lib/libgdal.so.31:
(sacs-3.5.1) [ssinno@discover23 gdalplugins]gdalinfo --version
ERROR 1: /discover/swdev/sacs/sw/base/gcc12-3.5.1/gdal-3.5.1/lib/gdalplugins/ogr_GRASS.so: undefined symbol: _ZNK11GDALDataset19GetFieldDomainNamesB5cxx11EPKPKc

@ssinno
Copy link
Author

ssinno commented Jul 15, 2022

I attempted the same on an entirely new & different system in AWS(Ubuntu LTS 20.04, as opposed to prior SLES12), and gcc9 instead of gcc12, no other GDAL libraries on the entire systsem, and...exact same results. I'd wager this is trivially reproduceable on any system.

[ssinno@nasaAWS gdal-grass-1.0.1]gdalinfo --version
ERROR 1: /shared/sacs/sw/base/gcc9-3.5.1/gdal-3.5.1/lib/gdalplugins/ogr_GRASS.so: undefined symbol: _ZNK11GDALDataset19GetFieldDomainNamesB5cxx11EPKPKc
ERROR 1: /shared/sacs/sw/base/gcc9-3.5.1/gdal-3.5.1/lib/gdalplugins/ogr_GRASS.so: undefined symbol: _ZNK11GDALDataset19GetFieldDomainNamesB5cxx11EPKPKc
ERROR 1: /shared/sacs/sw/base/gcc9-3.5.1/gdal-3.5.1/lib/gdalplugins/gdal_GRASS.so: undefined symbol: _ZNK11GDALDataset19GetFieldDomainNamesB5cxx11EPKPKc
ERROR 1: /shared/sacs/sw/base/gcc9-3.5.1/gdal-3.5.1/lib/gdalplugins/gdal_GRASS.so: undefined symbol: _ZNK11GDALDataset19GetFieldDomainNamesB5cxx11EPKPKc
GDAL 3.5.1, released 2022/06/30

@neteler neteler added this to the 1.0.3 milestone Nov 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants