OpenCSW Bug Tracker


Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0004675 [netsnmp] regular use minor always 2011-01-25 00:10 2012-06-13 10:22
Reporter skayser View Status public  
Assigned To cgrzemba
Priority normal Resolution fixed  
Status closed  
Summary 0004675: Unresolved symbols in /opt/csw/lib/i386/libnetsnmp.so.10 (kstat_open, EVP_md5)
Description Seems as if there are some linkage issues with the netsnmp libs. Trying to load the netsmp pyton module (from the netsnmp_py package) fails and the linker complains about unresolved symbols in libnetsnmp.so.10.

$ python -c 'import netsnmp'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/csw/lib/python/site-packages/netsnmp/__init__.py", line 1, in <module>
    from client import *
  File "/opt/csw/lib/python/site-packages/netsnmp/client.py", line 1, in <module>
    import client_intf
ImportError: ld.so.1: python: fatal: relocation error: file /opt/csw/lib/i386/libnetsnmp.so.10: symbol kstat_open: referenced symbol not found

$ python -V
Python 2.6.6
$ type python
python is hashed (/opt/csw/bin/python)

Adding libkstat to LD_PRELOAD leads to another unreferenced symbol.

$ LD_PRELOAD=/usr/lib/libkstat.so python -c 'import netsnmp'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/opt/csw/lib/python/site-packages/netsnmp/__init__.py", line 1, in <module>
    from client import *
  File "/opt/csw/lib/python/site-packages/netsnmp/client.py", line 1, in <module>
    import client_intf
ImportError: ld.so.1: python: fatal: relocation error: file /opt/csw/lib/i386/libnetsnmp.so.10: symbol EVP_md5: referenced symbol not found

Adding libkstat & libcrypto to LD_PRELOAD fixes things.

$ LD_PRELOAD="/usr/lib/libkstat.so /opt/csw/lib/libcrypto.so.0.9.8" python -c 'import netsnmp'
Additional Information $ pkgparam CSWnetsnmp-py VERSION
5.4.2.1,REV=2010.03.16
$ pkgparam CSWnetsnmp VERSION
5.4.2.1,REV=2010.03.16
$ pkgparam CSWpython VERSION
2.6.6,REV=2010.10.12
Tags No tags attached.
Attached Files

- Relationships

-  Notes
(0009944)
cgrzemba (developer)
2012-06-13 10:22

fixed in 5.6.1.1,REV=2012.04.27


Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker