Compilation issues of netsnmp lib with MinGW

Sukhdeep Singh <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <B1DB23EA4553B9418AE189B0E170B5E34032D6B29A@iiplmail.info-spectrum.nagpur>
Hi,

            I'm trying to compile net-snmp with with Min-GW on windows and I'm getting following errors:

These functions already defined in their corresponding file then why are these failing I don't know. My makefile is attached. Please help me to resolve these issues. I would be really thankful to you for your kind support.

snmplib/data_list.o:data_list.c:(.text+0x6d): undefined reference to `netsnmp_free_list_data'
snmplib/data_list.o:data_list.c:(.text+0x16f): undefined reference to `netsnmp_create_data_list'
snmplib/data_list.o:data_list.c:(.text+0x17f): undefined reference to `netsnmp_add_list_data'
snmplib/data_list.o:data_list.c:(.text+0x341): undefined reference to `netsnmp_get_list_data'
snmplib/data_list.o:data_list.c:(.text+0x3e3): undefined reference to `netsnmp_create_data_list'
snmplib/data_list.o:data_list.c:(.text+0x3f4): undefined reference to `netsnmp_add_list_data'
snmplib/oid_stash.o:oid_stash.c:(.text+0x9c): undefined reference to `netsnmp_oid_stash_create_node'
snmplib/oid_stash.o:oid_stash.c:(.text+0x1e8): undefined reference to `netsnmp_oid_stash_create_node'
snmplib/oid_stash.o:oid_stash.c:(.text+0x24e): undefined reference to `netsnmp_oid_stash_create_node'
snmplib/snmp_transport.o:snmp_transport.c:(.text+0x827): undefined reference to `netsnmp_tcp_ctor'
snmplib/snmp_transport.o:snmp_transport.c:(.text+0x82c): undefined reference to `netsnmp_alias_ctor'
snmplib/snmp_transport.o:snmp_transport.c:(.text+0x831): undefined reference to `netsnmp_unix_ctor'
snmplib/check_varbind.o:check_varbind.c:(.text+0x30): undefined reference to `netsnmp_check_vb_type_and_size'
snmplib/check_varbind.o:check_varbind.c:(.text+0x55): undefined reference to `netsnmp_check_vb_int_range'
snmplib/check_varbind.o:check_varbind.c:(.text+0x7f): undefined reference to `netsnmp_check_vb_rowstatus_value'
snmplib/check_varbind.o:check_varbind.c:(.text+0xcd): undefined reference to `netsnmp_check_vb_rowstatus_value'
snmplib/check_varbind.o:check_varbind.c:(.text+0x133): undefined reference to `netsnmp_check_vb_type_and_size'
snmplib/check_varbind.o:check_varbind.c:(.text+0x15c): undefined reference to `netsnmp_check_vb_int_range'
collect2: ld returned 1 exit status
mingw32-make: *** [netsnmp.lib] Error 1

Thanks & Regards,
Sukhdeep Singh
makefile (application/octet-stream, 1.9 KB) - not displayed
netsnmplib.rar (application/octet-stream, 734.3 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.