Version info
$ uname -a
SunOS osswlg1 5.10 Generic_118833-33 sun4u sparc SUNW,Netra-240
$ python -V
Python 2.5.1
$ cc -V
cc: Sun C 5.8 Patch 121015-06 2007/10/03

First of all I ran into an error when I tried running "python
The main issue was that the cc command the build executed did not
include the correct include options to include the net-snmp header
cc -DNDEBUG -O -xcode=pic32 -I/usr/local/include/python2.5 -c netsnmp/
client_intf.c -o build/temp.solaris-2.10-sun4u-2.5/netsnmp/
"netsnmp/client_intf.c", line 3: cannot find include file: net-snmp-config.h>
"netsnmp/client_intf.c", line 4: cannot find include file: net-snmp-includes.h>

I manually added the needed include options as follows and the
compilation completed without error (though with many warnings):
cc -DNDEBUG -O -xcode=pic32 -I/usr/local/include/python2.5 -I../
include -c netsnmp/client_intf.c -o build/temp.solaris-2.10-sun4u-2.5/

At this point I was able to successfully execute "python
install" as root and it appeared to run as expected without error

The issue I now have is when I try to import the module:
>>> import netsnmp

Traceback (most recent call last):
File "", line 1, in
File "build/bdist.solaris-2.10-sun4u/egg/netsnmp/", line
1, in
File "build/bdist.solaris-2.10-sun4u/egg/netsnmp/", line 1,
File "build/bdist.solaris-2.10-sun4u/egg/netsnmp/",
line 7, in
File "build/bdist.solaris-2.10-sun4u/egg/netsnmp/",
line 6, in __bootstrap__
ImportError: python: fatal: relocation error: file /home/
sun4u.egg-tmp/netsnmp/ symbol timersub: referenced
symbol not found

I did a little digging and it looks like timersub is not defined in
Solaris 10. It looks like it may be in Solaris 11 and

This seems like a pretty standard issue with Solaris as I've found
other libraries that use ifdef to define this function: