Thanks Bart,
 
I ran two tests, one compiling to run for cygwin and the other for my embedded 
system.
 
for embedded system, I used the following ./configure option
 
./configure \
--host=i686-pc-cygwin \
--target=arm-linux \
--with-cc=arm-unknown-linux-gnu-gcc \
--with-cflags="-Wall -s -static -O2 -Dlinux -mcpu=arm9" \
--with-endianness=little \
--with-ldflags=-Bstatic \
--disable-scripts \
--disable-applications \
--enable-mini-agent \
--with-out-mib-modules=snmpv3mib, mibII/vacm \
--disable-privacy \
--disable-md5 \
--without-openssl \
--with-mib-modules="llc_snmpagent" \
--without-perl-modules \
--disable-embedded-perl \
--disable-shared \
--with-default-snmp-version="1" \
--with-sys-contact="root" \
--with-sys-location="unknown" --with-logfile="/var/log/snmpd.log" \
--with-persistent-directory="/var/net-snmp" \
--disable-manuals
 
this is the output I got from
 
$grep LIBS config.log
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
netsnmp_cv_func_dlopen_LMIBLIBS=-ldl
netsnmp_cv_func_kstat_lookup_LNETSNMPLIBS=no
netsnmp_cv_func_kvm_getprocs_LMIBLIBS=no
netsnmp_cv_func_kvm_getswapinfo_LMIBLIBS=no
netsnmp_cv_func_kvm_openfiles_LAGENTLIBS=no
netsnmp_cv_func_kvm_read_LAGENTLIBS=no
netsnmp_cv_func_nl_connect_LMIBLIBS=no
netsnmp_cv_func_pthread_create_LMIBLIBS=-lpthread
AGENTLIBS=''
DLLIBS=''
LAGENTLIBS=''
LIBS=''
LMIBLIBS='-ldl -lpthread '
LNETSNMPLIBS=''
MYSQL_LIBS=''
NETSNMP_HAVE_AGENTX_LIBS_FALSE=''
NETSNMP_HAVE_AGENTX_LIBS_TRUE='#'
PERLLDOPTS_FOR_LIBS=''
TRAPLIBS='$(TRAPDWITHAGENT)'
USETRAPLIBS='$(USEAGENTLIBS)'
 
this is the ./configure I use when compiling for cygwin
 
./configure \
--with-mib-modules="llc_snmpagent" \
--without-perl-modules \
--disable-embedded-perl \
--disable-shared \
--with-default-snmp-version="1" \
--with-sys-contact="root" \
--with-sys-location="unknown" --with-logfile="/var/log/snmpd.log" \
--with-persistent-directory="/var/net-snmp" \
--disable-manuals
 
and $grep LIBS config.log
 
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
netsnmp_cv_func_dlopen_LMIBLIBS="none required"
netsnmp_cv_func_kstat_lookup_LNETSNMPLIBS=no
netsnmp_cv_func_kvm_get_procs_LMIBLIBS=no
netsnmp_cv_func_kvm_getswapinfo_LMIBLIBS=no
netsnmp_cv_func_openfiles_LAGENTLIBS=no
netsnmp_cv_func_kvm_read_LAGENTLIBS=no
AGENTLIBS="-liphlpapi -lsnmpapi"
DLLIBS=''
LAGENTLIBS=''
LIBS='-liphlpapi -lsnmpapi'
LMIBLIBS=''
LNETSNMPLIBS='-lcrypto'
MYSQL_LIBS=''
NETSNMP_HAVE_AGENTX_LIBS_FALSE='#'
NETSNMP_HAVE_AGENTX_LIBS_TRUE=''
PERLLDOPTS_FOR_LIBS=''
TRAPLIBS='$(TRAPDWITHAGENT)'
USETRAPLIBS='$(USEAGENTLIBS)'
 
I grep my whole file-system for pThreads, and I cannot find it on my native 
compiler, 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.  Then ./configure 
will no longer use it.
 
thanks!!
 
Leo;

--- On Thu, 9/30/10, Bart Van Assche <bvanass...@acm.org> wrote:


From: Bart Van Assche <bvanass...@acm.org>
Subject: Re: Crosscompiling Netsnmp-5.6.rc1 for arm-unknown-linux under Cgywin
To: "Leo Lin" <hayashi_...@yahoo.com>
Cc: "Net-snmp-users" <net-snmp-users@lists.sourceforge.net>
Date: Thursday, September 30, 2010, 8:12 AM



On Wed, Sep 29, 2010 at 10:47 PM, Leo Lin <hayashi_...@yahoo.com> 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 do now is to find where that libpthread dependency comes 
from. You can find out whether that dependency has been introduced while 
building Net-SNMP by inspecting the output of the following command (which 
should not contain -lpthread):

$ grep LIBS config.status

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