| Newsgroups |
gmane.network.net-snmp.user |
| Message-ID |
<[email protected]> |
hi
I am trying to compile net-snmp-5.2.1.2 to run on uClinux(ARM940T).
There are some posts concerning net-snmp+ARM but i didnt find a matching
solution for my problems yet...
These tools are installed on my develop-machine:
-)arm-elf-tools-20030314
-)uClinux-dist-20041215
-)net-snmp-5.2.1.2
I created a directory uClinux-dist/user/netsnmp and put all the files here.
The configure call looks like this:
================================
#!/bin/sh
./configure \
--host=arm-elf-linux-gnu \
--target=arm-elf-linux-gnu \
--with-cc=arm-elf-gcc \
--with-ar=arm-elf-ar \
--with-ld=arm-elf-ld \
--with-ranlib=arm-elf-ranlib \
--with-endianness=big \
--disable-FEATURE \
--with-cflags="-fno-builtin -DCONFIG_ARCH_CNXT -D__uClinux__ -Dunix -Dlinux
-D__linux__ -Dunix -D__uClinux__ -DEMBED -DEMBED
-I/usr/local/arm-elf/include -L/usr/local/arm-elf/lib" \
--with-ldflags="-g,-W1,-T,/usr/local/arm-elf/lib/elf2flt.d -elf2flt
-Bstatic" \
--with-libs=/usr/local/arm-elf/lib/libc.a \
--enable-mini-agent \
--disable-debugging \
--includedir="/usr/local/arm-elf/include" \
--without-kmem-usage \
--with-transports="UDP" \
--with-out-transports="UDPIPv6 TCPIPv6 TCP Unix Callback AAL5PVC IPX" \
--with-mib-modules="mibII notification target" \
--with-out-mib-modules="ucd_snmp agent_mibs agentx utilities snmpv3mips" \
--disable-applications \
--disable-scripts
================================
The configuration process terminates quite cleanly (one warning: "configure:
WARNING: Can't check sysctl, manually define CAN_USE_SYSCTL if platform
support available").
Done this i tried to "make" ...
================================
[...]
rm -fr .libs/libnetsnmp.la .libs/libnetsnmp.* .libs/libnetsnmp.*
arm-elf-gcc -shared snmp_client.lo mib.lo parse.lo snmp_api.lo snmp.lo
snmp_auth.lo asn1.lo md5.lo snmp_parse_args.lo system.lo vacm.lo int64.lo
read_config.lo snmp_debug.lo tools.lo snmp_logging.lo snmpv3.lo lcd_time.lo
keytools.lo scapi.lo callback.lo default_store.lo snmp_alarm.lo data_list.lo
oid_stash.lo mt_support.lo snmp_enum.lo snmp-tc.lo snprintf.lo strlcpy.lo
strtol.lo strtoul.lo strtok_r.lo snmp_transport.lo snmpUDPDomain.lo
snmp_secmod.lo snmpusm.lo snmp_version.lo check_varbind.lo container.lo
container_binary_array.lo container_null.lo container_list_ssll.lo
container_iterator.lo cmu_compat.lo ucd_compat.lo -L/usr/local/arm-elf/lib
-lc -Wl,-soname -Wl,libnetsnmp.so.5 -o .libs/libnetsnmp.so.5.2.1
snmp_api.lo: In function `init_snmp':
snmp_api.lo(.text+0x1104): the 'setlocale' function supports only C|POSIX
locales
/usr/local/arm-elf/lib/libc.a(__uClibc_main.o): In function
`__uClibc_start_main':
__uClibc_main.o(.text+0xf4): undefined reference to `main'
collect2: ld returned 1 exit status
make[1]: *** [libnetsnmp.la] Error 1
make[1]: Leaving directory
`/home/bernhard/shared/uclinux/uClinux-dist/user/net-snmp/snmplib'
make: *** [subdirs] Error 1
================================
1)It seems i have to disable setlocale support - how to?
Maybe i have to compile my own version of uClibc - tried this but same error
(wrong linkage?).
2)Is it necessary to switch the compilerflag "mcpu=arm940t"?
The arm-elf-gcc version used by the arm-elf-toolchain is 2.95.3 (arm-elf-gcc
-v) and i didnt find any matching "ARM Options" at http://gcc.gnu.org for
arm940t. Is there a way compiling the net-snmp for the ARM940T with the
arm-elf-gcc?
If a kind of cookbook "get net-snmp+ARM940T working" existing please let me
know.
Thanks in advance,
Bernhard
--
5 GB Mailbox, 50 FreeSMS http://www.gmx.net/de/go/promail
+++ GMX - die erste Adresse f�r Mail, Message, More +++
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users