2010/11/29 Jason <zh-sh...@163.com>

>  Hi,
> I cross-compiled the net-snmp with arm-linux-gcc in static mode, and it
> successfully generated a snmpd, but I thought it was not a static binary.
>
> ./configure -prefix=/usr/local/snmp-test --enable-static --disable-shared 
> --enable-mini-agent --disable-applications --disable-des --disable-privacy 
> --disable-md5 --disable-manuals --with-ldflags=-Bstatic 
> --with-cc=/usr/local/arm/3.3.5/bin/arm-linux-gcc 
> --with-ar=/usr/local/arm/3.3.5/bin/arm-linux-ar 
> --with-ld=/usr/local/arm/3.3.5/bin/arm-linux-ld --with-endianness=little 
> --with-defaults --without-perl-modules --build=i386-linux --host=arm-linux 
> --target=arm-linux --without-openssl --with-logfile="/var/log/ snmpd.log" 
> --with-default-snmp-version=2 --disable-mib-loading --with-mib-modules="mibII 
> ip-mib if-mib tcp-mib udp-mib ucd_snmp target agent_mibs notification-log-mib 
> snmpv3mibs notification"
>
>
> [r...@localhost sbin]# file snmpd
>
> snmpd: ELF 32-bit LSB executable, ARM, version 1 (ARM), for GNU/Linux 2.4.3, 
> dynamically linked (uses shared libs), not stripped
> [r...@localhost sbin]# ldd snmpd
>         not a dynamic executable
> I don't know why the command file display dynamically linked, but the
> command ldd display it was not a dynamic executable? When I copied it to my
> target system and run it, it displayed "No such Files". After I copied some
> lib file to my target system, it can be runed and auto exited immediately.
> The log display:
>  "Encryption support not enabled.
>
> /usr/local/snmp-test/share/snmp/snmp.conf: line 25: Warning: Unknown token: 
> mibs.
> Encryption support not enabled.
>
> The encryption support warning is I guess because of SSL is not enabled.


> Encryption support not enabled.
> Error opening specified endpoint ""
> Server Exiting with code 1"
>
> check snmpd.conf  .. try executing snmpd with some other user

>
> Thanks
>
> Regards,
> Jason
>
> ------------------------------
> *发件人:* rakesh zingade
> *发送时间:* 2010-11-29  15:04:49
> *收件人:* Jason
> *抄送:* net-snmp-users
> *主题:* Re: Who can help me to let net-snmp working in arm-linux?
>
>
> On Mon, Nov 29, 2010 at 11:38 AM, Jason <zh-sh...@163.com> wrote:
>
>>  Dear all,
>> I tried to cross-compile net-snmp with arm-linux v3.3.2, it is ok,
>>
>
> Whats the errors displayed when you start cross-compiled snmpd on arm-linux
> board?
> You may have to cross-compile the required libs and create a static binary.
>
>  but it can not work in my target. Who can help me? Any body can let
>> net-snmp working well in arm-linux system?
>> Thank you very much~
>>
>>
>>
>> Regards,
>> Jason
>>
>>
>> ------------------------------------------------------------------------------
>> Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
>> Tap into the largest installed PC base & get more eyes on your game by
>> optimizing for Intel(R) Graphics Technology. Get started today with the
>> Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
>> http://p.sf.net/sfu/intelisp-dev2dev
>> _______________________________________________
>> Net-snmp-users mailing list
>> Net-snmp-users@lists.sourceforge.net
>> Please see the following page to unsubscribe or change other options:
>> https://lists.sourceforge.net/lists/listinfo/net-snmp-users
>>
>>
>
>
> --
> Rakesh P. Zingade
> +919420626099
>



-- 
Rakesh P. Zingade
+919420626099
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to