snmpd: Bus error on m68k coldfire platform
sabina sayeed <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
Hi
I have managed to cross compile net-snmp-5.0.9 for m68k plaform. Following is my configure option and build flags.
export CURDIR=/root/october/Linux/sb_linux
export CROSSCOMPILER=/root/october/Linux/sb_linux/toolchain/m68k-linux/gcc-3.4.0-glibc-2.3.2
export CROSSCOMPILERPREFIX=m68k-linux-
export CROSSCOMPILER=${CURDIR}/toolchain/m68k-linux/gcc-3.4.0-glibc-2.3.2
export LD=${CROSSCOMPILER}/bin/${CROSSCOMPILERPREFIX}ld
export AR=${CROSSCOMPILER}/bin/${CROSSCOMPILERPREFIX}ar
export AS=${CROSSCOMPILER}/bin/${CROSSCOMPILERPREFIX}as
export STRIP=${CROSSCOMPILER}/bin/${CROSSCOMPILERPREFIX}strip
export OBJCOPY=${CROSSCOMPILER}/bin/${CROSSCOMPILERPREFIX}objcopy
export RANLIB=${CROSSCOMPILER}/bin/${CROSSCOMPILERPREFIX}ranlib
export LD_LIBRARY_PATH=${CROSSCOMPILER}/i686-host_pc-linux-gnu/m68k-linux/lib
export CC=${CROSSCOMPILER}/bin/${CROSSCOMPILERPREFIX}gcc
export CFLAGS=-mcfv4e
./configure --target=m68k-linux --host=m68k-linux --build=i686-unknown-linux --with-endianness=big --with-logfile=/tmp/snmp.log --with-default-snmp-version=2 --with-sys-contact="[email protected]" --with-sys-location="unknown" --with-persistent-directory="/tmp" --disable-debugging --enable-mini-agent
make
When I run the snmpd in my coldfire board, I get a bus error. I went and added a debug printf on the first line of main function in snmpd.c and recompiled the code. Even then when I run snmpd it doesn't show any of my debug output and gives me BUS error.
->snmpd -help
->Bus error
or
->snmpd -Dmib_init -L C -c /etc/snmpd.conf
->Bus error
Also currently I am running code from RAMDISK. I have only RW access to my /tmp directory. Does snmpd needs access to some other directory before hitting main???
Just to verify the compile flags I have compiled a simple hello.c with same flags run it on my platform without any error.
/root/october/Linux/sb_linux/toolchain/m68k-linux/gcc-3.4.0-glibc-2.3.2/bin/m68k-linux-gcc -mcfv4e -Dlinux -fPIC -DPIC hello.c
./a.out
Could anyone suggest me what could be wrong?
Thanks,
Sabina
---------------------------------
Yahoo! FareChase - Search multiple travel sites in one click.