Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin

2010-10-01 Thread Bart Van Assche
On Thu, Sep 30, 2010 at 10:44 PM, Leo Lin wrote: > [ ... ] > $grep LIBS config.log > [ ... ] > LMIBLIBS='-ldl -lpthread ' > [ ... ] The above means that either the line NETSNMP_SEARCH_LIBS(pthread_create, pthread LMIBLIBS) has not been removed from configure.d/config_os_libs or that the con

Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin

2010-09-30 Thread Leo Lin
, pThread is under my cross-toolchain.  I'm assuming that since I specify ./configure to use my cross-toolchain, it uses the pThread since it is there.   I'll ask my embedded system provider about the consecuences of not having pthread in the cross-toolchain, so I can delete (rm) them. 

Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin

2010-09-30 Thread Bart Van Assche
On Wed, Sep 29, 2010 at 10:47 PM, Leo Lin wrote: > > And copied the snmpd binary to my target gives me the`libpthread.so.0` > error when ran. So, I'm back to square one. > > I've seen the net-snmp-5.6.rc3 on sourceforge, do you know if it contains > the patch for pthread? > The first you should

Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin

2010-09-30 Thread Leo Lin
Hi Bart,   Do you know if net-snmp-5.2 also has dependency on pthread?   thanks!   Leo; --- On Fri, 9/24/10, Bart Van Assche wrote: From: Bart Van Assche Subject: Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin To: "Leo Lin" Cc: "Net-snmp-users" Dat

Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin

2010-09-29 Thread Leo Lin
Thanks!!   Leo;    --- On Wed, 9/29/10, Bart Van Assche wrote: From: Bart Van Assche Subject: Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin To: "Leo Lin" Cc: "Net-snmp-users" Date: Wednesday, September 29, 2010, 3:35 AM On Tue, Sep 28, 2010 at 6:34

Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin

2010-09-29 Thread Bart Van Assche
On Tue, Sep 28, 2010 at 6:34 PM, Leo Lin wrote: > I tried to revert to previous net-snmp-5.6.rc1 setup, by performing > > make uninstall > > also, decompress the downloaded .tar.gz again, > > and ran `autoreconf -i` > > I have to run `configure` `make` `make install` several times so it > instal

Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin

2010-09-28 Thread Leo Lin
snmpd.exe.stackdump snmptrapd.exe   only snmptrapd.exe works on my i686-pc-cygwin, but snmpd.exe gave me a `segmentation fault (core dumped)` error.   --- On Mon, 9/27/10, Leo Lin wrote: From: Leo Lin Subject: Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin To: "Bar

Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin

2010-09-27 Thread Leo Lin
Sorry, I forgot to mention that I downloaded and installed m4. 1.4.15 via Cygwin update, and it is still giving me the same error... --- On Mon, 9/27/10, Leo Lin wrote: From: Leo Lin Subject: Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin To: "Bart Van Assche

Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin

2010-09-27 Thread Leo Lin
version, can I download this version instead?  Does this version already have the patch, snmp_alarm_register() and the pthread() patch??   Thanks!!   Leo; --- On Fri, 9/24/10, Bart Van Assche wrote: From: Bart Van Assche Subject: Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under

Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin

2010-09-24 Thread Leo Lin
generated.  Is this normal?   Thanks so much for your help,   Leo; --- On Fri, 9/24/10, Bart Van Assche wrote: From: Bart Van Assche Subject: Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin To: "Leo Lin" Cc: "Net-snmp-users" Date: Friday, September 24, 2

Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin

2010-09-24 Thread Bart Van Assche
On Thu, Sep 23, 2010 at 8:00 PM, Leo Lin wrote: > Someone know which libraries needs pthread? > Hello Leo, You can get rid of the libpthread dependency as follows: * Apply the patch attached to https://sourceforge.net/tracker/?func=detail&atid=312694&aid=2959811&group_id=12694 . * Remove the fo

Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin

2010-09-23 Thread Leo Lin
Someone know which libraries needs pthread?   Thanks! --- On Wed, 9/22/10, Leo Lin wrote: From: Leo Lin Subject: Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin To: "Net-snmp-users" Date: Wednesday, September 22, 2010, 5:18 PM Hi,   Following up with m

Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin

2010-09-22 Thread Leo Lin
braries: libpthread.so.0: cannot open share object file: No such file or directory`.  Notice that I tried to compile the agent statically, but still asking for share libraries.   Should I modify the agent Makefile?   Thanks!   Leo; --- On Tue, 9/21/10, Leo Lin wrote: From: Leo Lin Subject:

Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin

2010-09-21 Thread Leo Lin
Hi,   I've installed Netsnmp-5.6.rc1 on my PC runing Cgywin.  I was also be able to extend the agent with my own mib (LLC-MIB.txt), with source file `llc_snmpagent.c` and `llc_snmpagent.h`.   Everthing works fine on my PC, snmpget, snmpset, and trap generation.  Now, I am trying to cross-comp