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

Leo Lin <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
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 installs it without errors.  after that, it creates
 
snmpd.exe
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 <[email protected]> wrote:


From: Leo Lin <[email protected]>
Subject: Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin
To: "Bart Van Assche" <[email protected]>
Cc: "Net-snmp-users" <[email protected]>
Date: Monday, September 27, 2010, 11:04 PM






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 <[email protected]> wrote:


From: Leo Lin <[email protected]>
Subject: Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin
To: "Bart Van Assche" <[email protected]>
Cc: "Net-snmp-users" <[email protected]>
Date: Monday, September 27, 2010, 8:35 PM







Hi Bart,
 
I applied the patch, it modifies the files
 
interface_linux.c in ~/net-snmp-5.6.rc1/agent/mibgroup/if-mib/data_access
 
ipaddress_linux.c in ~/net-snmp-5.6.rc1/agent/mibgroup/ip-mib/data_access
 
util_funcs.c 
util_funcs.h in ~/net-snmp-5.6.rc1/agent/mibgroup
 
I also modified the `config_os_libs` per your suggestion; and ran
 
autoreconfig -i
 
and I got the following error
 
`autom4te-2.67: need GNU m4 1.4 or later: /usr/bin/m4
aclocal-1.11: /usr/bin/autom4te-2.67 failed with exit status : 1
autoreconf-2.67: aclocal failed with exit status: 1
`
I saw the net-snmp-5.6.rc2 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 <[email protected]> wrote:


From: Bart Van Assche <[email protected]>
Subject: Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin
To: "Leo Lin" <[email protected]>
Cc: "Net-snmp-users" <[email protected]>
Date: Friday, September 24, 2010, 3:43 AM


On Thu, Sep 23, 2010 at 8:00 PM, Leo Lin <[email protected]> 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 following text from configure.d/config_os_libs:


#   pthread library                                     (Linux)
#
if test "x$PARTIALTARGETOS" = "xlinux"; then
  NETSNMP_SEARCH_LIBS(pthread_create, pthread,,,, LMIBLIBS)
fi

* Regenerate the configure script by running the following command (see also http://net-snmp.sourceforge.net/wiki/index.php/Build_System):


autoreconf -i

* Run make distclean, configure and make.

Bart.

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev

_______________________________________________
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
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.