[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
Tue Jan 25 00:10:00 CET 2011


The following issue has been SUBMITTED. 
====================================================================== 
https://www.opencsw.org/mantis/view.php?id=4675 
====================================================================== 
Reported By:                skayser
Assigned To:                
====================================================================== 
Project:                    netsnmp
Issue ID:                   4675
Category:                   regular use
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2011-01-25 00:10 CET
Last Modified:              2011-01-25 00:10 CET
====================================================================== 
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'
======================================================================



More information about the bug-notifications mailing list