uclinux net-snmp-5.2.1.2 memory fault

[email protected]
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
hi, 
 
 
I have compiled net-snmp-5.2.1.2 for uclinux running on arm940T platform
(used 
cross-compiler arm-elf-gcc). 
 
The snmpd can be started without arguments on the target, but i doesn't
respond to 
any snmp-queries. If the snmpd is started on the target with any arguments
(but -h 
or -v works) it exits with code 1. If i pass a snmpd.conf file using ./snmpd
-c ./
snmpd.conf the snmpd also terminates with code 1. Invoking snmpd with
./snmpd -d -Ln 
-f leads to a memory fault. 
 
It makes no difference if i execute the snmpd on the flash-memory or on the
ramdisk. 
The snmpd.conf file is ok. The configure-script i used to generate the
Makefile is 
attached at the end of this message. 
 
I dont know why the snmpd is running (but not working) without arguments and

terminating if arguments are passed... Anyone got an idea or good diagnostic
methods 
whats going wrong there? 
What does snmpd need to run on different platforms (configs, libs(dynamic
linked), 
paths,...) - is the binary itself enough to run successfully? 
 
 
Thx in advance, 
Bernhard 
 
====================================== 
The snmp-configure call: 
 
./configure \ 
--build=i686 \ 
--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=little \ 
--with-cflags="-ggdb -fpic -DNO_MM -D__PIC__ -msingle-pic-base -fno-builtin 
-DHAVE_SETLOCALE -march=armv4 -DNO_SHARED_LIBS=1 
-O2 -static -DCONFIG_ARCH_CNXT -D__uClinux__ -Dunix -D__linux__ -Dlinux
-DEMBED -I/
home/bernhard/shared/UC7110/uClinux-dist/u 
Clinux-dist/uClibc/include
-L/home/bernhard/shared/UC7110/uClinux-dist/uClinux-dist/
uClibc/lib" \ 
--with-ldflags="-ggdb -g,-W1,-T,/usr/local/arm-elf/lib/elf2flt.d -elf2flt 
-static-libgcc -Bstatic -static" \ 
--with-libtool=no \ 
--disable-mib-loading \ 
--enable-mini-agent \

--includedir="/home/bernhard/shared/UC7110/uClinux-dist/uClinux-dist/uClibc/include"

\ 
--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" \ 
--with-sys-contact="admin@localhost" \ 
--with-sys-location="ERD" \ 
--with-default-snmp-version=2 \ 
--with-logfile="/ramdisk" \ 
--with-persistent-directory="/ramdisk" \ 
 

-- 
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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
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.