ports/92109: py24-yapsnmp: python module fails to load

Martin Jackson mhjacks at swbell.net
Sat Jan 21 20:10:18 UTC 2006


>Number:         92109
>Category:       ports
>Synopsis:       py24-yapsnmp: python module fails to load
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jan 21 20:10:09 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator:     Martin Jackson
>Release:        6.0-RELEASE-p1
>Organization:
>Environment:
FreeBSD glamdring.minas.tirith 6.0-RELEASE-p1 FreeBSD 6.0-RELEASE-p1 #1: Sun Dec 25 22:27:11 CST 2005     root at glamdring.minas.tirith:/usr/obj/usr/src/sys/SERVER  i386
          
>Description:
          [glamdring] ~# python
Python 2.4.2 (#2, Nov 27 2005, 11:17:01)
[GCC 3.4.4 [FreeBSD] 20050518] on freebsd6
Type "help", "copyright", "credits" or "license" for more information.
>How-To-Repeat:
              python: import yapsnmp

>Fix:
              unknown
>Release-Note:
>Audit-Trail:
>Unformatted:
 >>> import yapsnmp
 Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/usr/local/lib/python2.4/site-packages/yapsnmp.py", line 13, in ?
     import netsnmp, socket, string
   File "/usr/local/lib/python2.4/site-packages/netsnmp.py", line 4, in ?
     import _netsnmp
 ImportError: /usr/local/lib/python2.4/site-packages/_netsnmp.so: Undefined symbol "snmp_get_fd_for_session"
 
 
 SWIG complains a bit during the build phase:
     swig -python -shadow -I/usr/local/include/net-snmp/library net-snmp.i
 /usr/local/include/net-snmp/library/snmp.h:309: Warning(305): Bad constant value (ignored).
 /usr/local/include/net-snmp/library/snmp.h:310: Warning(305): Bad constant value (ignored).
 /usr/local/include/net-snmp/library/snmp.h:311: Warning(305): Bad constant value (ignored).
 /usr/local/include/net-snmp/library/snmp.h:312: Warning(305): Bad constant value (ignored).
 /usr/local/include/net-snmp/library/snmp.h:313: Warning(305): Bad constant value (ignored).
 mib.h:37: Warning(305): Bad constant value (ignored).
 net-snmp.i:38: Warning(113): %addmethods is now %extend
 net-snmp.i:61: Warning(113): %addmethods is now %extend
 net-snmp.i:125: Warning(119): %typemap(ignore) has been replaced by %typemap(in,numinputs=0).
 net-snmp.i:129: Warning(450): Deprecated typemap feature ($source/$target).
 net-snmp.i:129: Warning(450): The use of $source and $target in a typemap declaration is deprecated.
 For typemaps related to argument input (in,ignore,default,arginit,check), replace
 $source by $input and $target by $1.   For typemaps related to return values (out,
 argout,ret,except), replace $source by $1 and $target by $result.  See the file
 Doc/Manual/Typemaps.html for complete details.
 net-snmp.i:133: Warning(450): Deprecated typemap feature ($source/$target).
 net-snmp.i:151: Warning(450): Deprecated typemap feature ($source/$target).
 
 I'm using net-snmp-5.2.2 (from ports), python-2.4.2 (from ports), and swig-1.3.27 (from ports).



More information about the freebsd-ports-bugs mailing list