Hello,
I configured net-snmp 5.5 with
/configure
--host=arm
--target=arm
--enable-mini-agent
--disable-manuals
--disable-scripts
--disable-debugging
--with-cc=arm-linux-gnu-gcc
--with-endianness=little
-- disable-mib-loading
Then enter make and make install and everything is finish fine. When I
compile watcher.c from net-snmp examples I got this erros:
ash-3.2$ arm-linux-gcc watched.c -o test -L./lib -I./include
lib/libnetsnmpagent.a lib/libnetsnmp.a lib/libnetsnmphelpers.a
lib/libnetsnmpmibs.a
lib/libnetsnmp.a(mib.o)(.text+0x1e4): In function `sprint_char':
/home/root/net-snmp-5.5/snmplib/mib.c:264: undefined reference to
`__ctype_b'
lib/libnetsnmp.a(mib.o)(.text+0x6a4): In function
`sprint_realloc_asciistring':
/home/root/net-snmp-5.5/snmplib/mib.c:420: undefined reference to
`__ctype_b'
lib/libnetsnmp.a(mib.o)(.text+0xf38): In function
`sprint_realloc_octet_string':
/home/root/net-snmp-5.5/snmplib/mib.c:665: undefined reference to
`__ctype_b'
lib/libnetsnmp.a(mib.o)(.text+0x5ac0): In function `netsnmp_mibindex_load':
/home/root/net-snmp-5.5/snmplib/mib.c:2782: undefined reference to
`__ctype_b'
lib/libnetsnmp.a(mib.o)(.text+0x6a20): In function
`netsnmp_sprint_realloc_objid_tree':
/home/root/net-snmp-5.5/snmplib/mib.c:3262: undefined reference to
`__ctype_b'
lib/libnetsnmp.a(mib.o)(.text+0x863c):/home/root/net-snmp-5.5/snmplib/mib.c:
4115: more undefined references to `__ctype_b' follow
lib/libnetsnmp.a(parse.o)(.text+0x2c8): In function `name_hash':
/home/root/net-snmp-5.5/snmplib/parse.c:709: undefined reference to
`__ctype_tolower'
lib/libnetsnmp.a(parse.o)(.text+0x73f4): In function `is_labelchar':
/home/root/net-snmp-5.5/snmplib/parse.c:4514: undefined reference to
`__ctype_b'
lib/libnetsnmp.a(parse.o)(.text+0x77ec): In function `get_token':
/home/root/net-snmp-5.5/snmplib/parse.c:4599: undefined reference to
`__ctype_b'
lib/libnetsnmp.a(parse.o)(.text+0x7b58):/home/root/net-snmp-5.5/snmplib/pars
e.c:4721: undefined reference to `__ctype_tolower'
lib/libnetsnmp.a(parse.o)(.text+0x7b64):/home/root/net-snmp-5.5/snmplib/pars
e.c:4721: undefined reference to `__ctype_b'
lib/libnetsnmp.a(snmp.o)(.text+0x1e8): In function `xdump':
/home/root/net-snmp-5.5/snmplib/snmp.c:133: undefined reference to
`__ctype_b'
lib/libnetsnmp.a(snmp_parse_args.o)(.text+0xb60): In function
`snmp_parse_args':
/home/root/net-snmp-5.5/snmplib/snmp_parse_args.c:418: undefined reference
to `__ctype_b'
lib/libnetsnmp.a(int64.o)(.text+0x99c): In function `read64':
/home/root/net-snmp-5.5/snmplib/int64.c:527: undefined reference to
`__ctype_b'
lib/libnetsnmp.a(read_config.o)(.text+0x888): In function
`run_config_handler':
/home/root/net-snmp-5.5/snmplib/read_config.c:512: undefined reference to
`__ctype_b'
lib/libnetsnmp.a(read_config.o)(.text+0x2938):/home/root/net-snmp-5.5/snmpli
b/read_config.c:1495: more undefined references to `__ctype_b' follow
lib/libnetsnmphelpers.a(stash_cache.o)(.text+0x248): In function
`netsnmp_stash_cache_helper':
/scratch/workspaces/vranic/net-snmp/agent/helpers/stash_cache.c:142:
undefined reference to `netsnmp_oid_stash_get_data'
lib/libnetsnmphelpers.a(stash_cache.o)(.text+0x2e4):/scratch/workspaces/vran
ic/net-snmp/agent/helpers/stash_cache.c:159: undefined reference to
`netsnmp_oid_stash_getnext_node'
lib/libnetsnmphelpers.a(stash_cache.o)(.text+0x604): In function
`_netsnmp_stash_cache_free':
/scratch/workspaces/vranic/net-snmp/agent/helpers/stash_cache.c:223:
undefined reference to `netsnmp_oid_stash_free'
lib/libnetsnmphelpers.a(stash_to_next.o)(.text+0x158): In function
`netsnmp_stash_to_next_helper':
/scratch/workspaces/vranic/net-snmp/agent/helpers/stash_to_next.c:90:
undefined reference to `netsnmp_oid_stash_add_data'
lib/libnetsnmphelpers.a(table_dataset.o)(.text+0xe54): In function
`netsnmp_table_data_set_helper_handler':
/scratch/workspaces/vranic/net-snmp/agent/helpers/table_dataset.c:512:
undefined reference to `netsnmp_oid_stash_get_data'
lib/libnetsnmphelpers.a(table_dataset.o)(.text+0x1230):/scratch/workspaces/v
ranic/net-snmp/agent/helpers/table_dataset.c:549: undefined reference to
`netsnmp_oid_stash_add_data'
lib/libnetsnmphelpers.a(table_dataset.o)(.text+0x13cc):/scratch/workspaces/v
ranic/net-snmp/agent/helpers/table_dataset.c:616: undefined reference to
`netsnmp_oid_stash_add_data'
lib/libnetsnmphelpers.a(table.o)(.text+0x1bc8): In function
`_row_stash_data_list_free':
/scratch/workspaces/vranic/net-snmp/agent/helpers/table.c:1144: undefined
reference to `netsnmp_oid_stash_free'
collect2: ld returned 1 exit status
Please help.
Nikola
------------------------------------------------------------------------------
The Planet: dedicated and managed hosting, cloud storage, colocation
Stay online with enterprise data centers and the best network in the business
Choose flexible plans and management services without long-term contracts
Personal 24x7 support from experience hosting pros just a phone call away.
http://p.sf.net/sfu/theplanet-com
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders