Bug 92109 - net-mgmt/py-yapsnmp: python module fails to load
Summary: net-mgmt/py-yapsnmp: python module fails to load
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Tilman Keskinoz
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-01-21 20:10 UTC by mhjacks
Modified: 2006-01-23 21:13 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mhjacks 2006-01-21 20:10:09 UTC
          [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.

Fix: 

unknown
How-To-Repeat:               python: import yapsnmp
Comment 1 Tilman Keskinoz freebsd_committer freebsd_triage 2006-01-21 23:47:44 UTC
Responsible Changed
From-To: freebsd-ports-bugs->arved

My port
Comment 2 Tilman Keskinoz freebsd_committer freebsd_triage 2006-01-22 14:57:13 UTC
State Changed
From-To: open->analyzed

I can't reproduce, but i think you are right that the problem is swig-related. 

Can you try to deinstall swig before installing py-yapsnmp? 
The port does not actually depend on swig. 

I will try to fix the swig warnings and see if it will make a difference.
Comment 3 Tilman Keskinoz freebsd_committer freebsd_triage 2006-01-22 15:36:33 UTC
If you don't want to deinstall swig, can you try to place this patch in the 
ports files/ directory?

http://people.freebsd.org/~arved/stuff/patch-src-Makefile.in

regards
tilman
Comment 4 mhjacks 2006-01-22 18:52:16 UTC
FYI - building without SWIG installed gave me a module that loads 
successfully and successfully queries an agent:
(where x is a yapsnmmp.Session object)
 >>> x.get('sysUpTime.0')
'69789774'

I will attempt to build with the patch supplied momentarily.

Thanks,
Marty
Comment 5 mhjacks 2006-01-22 23:23:24 UTC
Tilman Linneweh wrote:
 > If you don't want to deinstall swig, can you try to place this patch 
in the ports files/ directory?
 >
 > http://people.freebsd.org/~arved/stuff/patch-src-Makefile.in

The patch works.

The module built can also correctly query a running agent:

 >>> x.get('sysLocation.0')
'Home Office'

My most sincere thanks for your time and help.  I particularly 
appreciate your promptness and willingness to fit the fix to my environment.

Marty
Comment 6 Tilman Keskinoz freebsd_committer freebsd_triage 2006-01-23 21:13:25 UTC
State Changed
From-To: analyzed->closed

Thanks for your report! The patch was committed to the port.