./snmpd: ./snmpd: cannot execute binary file

"腾飞龙" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,all
        I am porting net-snmp-5.2.1 to my board(wiht *ppc405ep *processor).
i did  as follow:


# make configureclean

CFLAGS="-isystem /opt/eldk/usr/bin"

CPPFLAGS="-isystem /opt/eldk/usr/bin "  ./configure  --target=ppc-linux
--host=ppc --build=i686  --with-cc=ppc-linux-gcc --with-ar=ppc-linux-ar
--with-endianness=little --disable-applications  --disable-manuals
--disable-scripts  --enable-mini-agent  --prefix=/tmp/snmp
--exec-prefix=/tmp/snmp

# make

 # make install

succeeded!

and then, put the target files in /opt/eldk/ppc_4xx/tmp directory on PC

In target system followed the  operation :

->mount -t nfs -o nolock 192.168.1.101:/opt/eldk/ppc_4xx  /tmp

->chroot /tmp

->cd /tmp/snmp/sbin

->./snmpd

then appeared the error:

kmod: failed to exec /sbin/modprobe -s -k binfmt-4c46, errno = 2
kmod: failed to exec /sbin/modprobe -s -k binfmt-4c46, errno = 2
snmpd: applet not found



then ,i installed busybox in /opt/eldk/ppc_4xx correctly,of course it
contains "modprobe" then.

However, when i reoperated snmpd, it appeared the same error.

so,would you please tell me where am i wrong and why.

Thanks!!
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.