[bug-notifications] [netsnmp 0004675]: Unresolved symbols in /opt/csw/lib/i386/libnetsnmp.so.10 (kstat_open, EVP_md5)

Mantis Bug Tracker noreply at opencsw.org
Wed Jun 13 10:22:17 CEST 2012


The following issue has been CLOSED 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4675 
====================================================================== 
Reported By:                skayser
Assigned To:                cgrzemba
====================================================================== 
Project:                    netsnmp
Issue ID:                   4675
Category:                   regular use
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 open
Fixed in Version:           
====================================================================== 
Date Submitted:             2011-01-25 00:10 CET
Last Modified:              2012-06-13 10:22 CEST
====================================================================== 
Summary:                    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'
====================================================================== 

---------------------------------------------------------------------- 
 (0009944) cgrzemba (manager) - 2012-06-13 10:22
 https://www.opencsw.org/mantis/view.php?id=4675#c9944 
---------------------------------------------------------------------- 
fixed in 5.6.1.1,REV=2012.04.27



More information about the bug-notifications mailing list