I have seen several combinations of configure flags that cause compilation
errors. Have you tried simplifying the option list down to bare minimum and
then compiling
For example - remove static, miniagent, ...
_____
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of jin zhou
Sent: Wednesday, March 28, 2007 1:59 PM
To: Kelby Rogers
Cc: [email protected]
Subject: Re: HELP: About cross-compile net-snmp to uclinux of ARM platform
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
Kelby Rogers <[EMAIL PROTECTED]> 写道:
Hi Jin,
I suggest you try and maintain the uclinux build process where possible, and
adapt my ./configure options in my Makefile to get you cross compiling
version 5.4 for the ARM platform.
Regards,
Kelby Rogers
jin zhou wrote:
Dear Kelby,
Thank you very much for your help.
I have read the documentations of buildroot carefully and downloaded
it.When make,i find it will download all packages from ftp,it is so slow.And
unluckily,it stopped because my gcc version is too old.
Moreover,i have a lot of warriors.In my comprehension,the buildroot will
build the romfs which uclinux need and build itself by "make romfs",so the
romfs from buildroot will replace the origin romfs built by uclinux.Is it
right?If so ,can they cooperate all right?
Kelby Rogers <mailto:[EMAIL PROTECTED]> <[EMAIL PROTECTED]> 写
道:
Hi jin,
I have attached my Makefile as a reference for you to get your cross-compile
working. I haven't needed to modify my config.in file from the default that
comes with buildroot, which is available here:
http://buildroot.uclibc.org/cgi-bin/viewcvs.cgi/trunk/buildroot/package/nets
nmp/Config.in?rev=9617
<http://buildroot.uclibc.org/cgi-bin/viewcvs.cgi/trunk/buildroot/package/net
snmp/Config.in?rev=9617&view=markup> &view=markup
Hope this helps.
Regards,
Kelby Rogers
_____
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
_____
抢注雅虎免费邮箱-3.5G容量,20M附件! <http://cn.mail.yahoo.com>
The information contained in this electronic mail transmission may be
privileged and confidential, and therefore, protected from disclosure. If you
have received this communication in error, please notify us immediately by
replying to this message and deleting it from your computer without copying or
disclosing it.
-------------------------------------------------------------------------
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