Some of the shared library magic is very hackish, however the net-snmp
library building make-fu is hackish as well, so I don't feel bad about it.
This commit also (re-)enables the host module for much more information.
It also fixes a long standing bug where 'snmpwalk localhost public' would
hang.
Runs fine on stable, on SMP current I still get race
conditions very easily, so that tkined says "no Response"
on snmp queries, and in the meantime it fills your /var
partition with the /var/log/snmp.log file:
1998-04-06 22:35:16 UCD-SNMP version 3.3.1
Opening port(s): 161
system.sysORLastChange.0 -- OID Doesn't exist
system.sysORLastChange.0 -- OID Doesn't exist
system.sysORLastChange.0 -- OID Doesn't exist
system.sysORLastChange.0 -- OID Doesn't exist
system.sysORLastChange.0 -- OID Doesn't exist
system.sysORLastChange.0 -- OID Doesn't exist
system.sysORLastChange.0 -- OID Doesn't exist
system.sysORLastChange.0 -- OID Doesn't exist
klookup(3, 0xefbfbf60, 96): klread: Bad address
TCP_Count_Connections - inpcb: Bad address
klookup(3, 0xefbfbf60, 96): klread: Bad address
TCP_Count_Connections - inpcb: Bad address
klookup(3, 0xefbfbf60, 96): klread: Bad address
TCP_Count_Connections - inpcb: Bad address
klookup(3, 0xefbfbf60, 96): klread: Bad address
TCP_Count_Connections - inpcb: Bad address
and so on.
This might be -current and/or SMP related.
John Hay says it runs ok on his -current.
I'll committ it anyay¸ because it runs on -STABLE
and that counts.
BTW: added an @unexec in PLIST ...
Install SNMP headers into ${PREFIX}/include/snmp
Compile libsnmp.a with "-DPIC -fpic" to allow dynamic linking without RRS
Text Relocation errors.
PR: ports/3880