i've solved the problem compiling netSnmpHostsTable*.c with:
gcc -I. `net-snmp-config --cflags` -fPIC -c ....
and linking with:
gcc `net-snmp-config --libs` `net-snmp-config --agent-libs` -shared -o netSnmpHostsTable.so netSnmpHostsTable.o netSnmpHostsTable_access.o netSnmpHostsTable_checkfns.o netSnmpHostsTable_checkfns_local.o
thanks anyway!
// hj
On 3/4/06, winston smith <[EMAIL PROTECTED]> wrote:
Hi, I'm trying to develop a dynamic module for the net-snmp agent following the example './net-snmp-5.2.2/agent/mibgroup/examples/netSnmpHostsTable.c'.
Is there any "Makefile" to compile sources into a single '.so'?
Scalar examples are very useful to understand the architecture, and snmpd binding with dlmod run with no problem.
Thanks!
// hj
