Hi Jin,

Another possibility for you is to upgrade to the latest revision of net-snmp on the same branch as the version that comes with uclinux. A summary of current releases for the different branches can be found here http://net-snmp.sourceforge.net/dev/schedule.html

That way it should be a smaller change and less likely to break your build process. Try it with the build process that comes with uclinux. I am presuming you have the old version of net-snmp that comes with uclinux cross-compiling?

Regards,
Kelby Rogers

jin zhou wrote:
Dear Kelby,
  Actually,i have done that you suggested.I run ./configure in the root of the net-snmp package with cross-compile options.When make,error occurs.It is as below:
 
#make distclean
#CC=arm-elf-gcc LDFLAGS="-static -Wl,-elf2flt /usr/local/uClinux-dist/lib/uClibc/lib/crt0.o /usr/local/uClinux-dist/lib/uClibc/lib/crti.o /usr/local/uClinux-dist/lib/uClibc/lib/crtn.o -L/usr/local/uClinux-dist/uClibc/lib/. -L/usr/local/uClinux-dist/uClibc/lib/ -L/usr/local/uClinux-dist/lib/libm -L/usr/local/uClinux-dist/lib/libnet -L/usr/local/uClinux-dist/lib/libdes -L/usr/local/uClinux-dist/lib/libaes -L/usr/local/uClinux-dist/lib/libpcap -L/usr/local/uClinux-dist/lib/libssl -L/usr/local/uClinux-dist/lib/libzlib -L/usr/local/uClinux-dist/lib/libcrypt_old -lcrypt -lc" CFLAGS="-O2 -g -fomit-frame-pointer -Dlinux -D__linux__ -Dunix -D__uClinux__ -DEMBED -I/usr/local/uClinux-dist/uClibc/include -I/usr/local/uClinux-dist/uClibc/lib/libm -I/usr/local/uClinux-dist/uClibc/lib/libcrypt_old -I/usr/local/uClinux-dist -fno-builtin -nostartfiles -I/usr/local/uClinux-dist/linux-2.4.x/include "  ./configure --host=armv-elf-linux-gnu --with-endianness=little --prefix=/ --datadir=/etc/config --sysconfdir=/etc/config --disable-FEATURE --enable-mini-agent --disable-applications --disable-manuals --disable-scripts  --disable-snmptrapd-subagent --disable-debugging  --with-logfile="/var" --with-out-mib-modules="snmpv3mibs ucd_snmp notification utilities target"
#make
........
/usr/local/arm-elf/lib/libc.a(__uClibc_main.o)(.text+0xf8):In function '__uClibc_start_main':undefined reference to 'main'.
collect2:ld returned 1 exit status.
 
What is wrong?How to correct it?
Additionaly,i find the makefiles built by ./configure is much different from those ones contained in the uClinux's net-snmp package.Why?How were they bulit?
I nearly fall into despair,and thanks very much for your help.
 
Best regards,
Jin Zhou



This email, including any attachments, is only for the intended addressee. It is subject to copyright, confidential and may be the subject of legal or other privilege, none of which is waived or lost by reason of this transmission. If the receiver is not the intended addressee, please accept our apologies, notify us by return, delete all copies and perform no other act on the email. Unfortunately, we cannot warrant that the email has not been altered or corrupted during transmission.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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

Reply via email to