Errors building net-snmp in msys: "undefined reference to init_logmatch"

Thomas Andrews <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi,

I'm trying to build net-snmp using msys (on winXP) using MinGW.

I downloaded and installed MinGW/MSYS using mingw-get-inst. I then 
downloaded net-snmp-5.7.2.tar.gz and installed that. After that I ran 
MSYS, and at the prompt typed the following commands as per README.win32:

   mount e:\\bst\\net-snmp\\net-snmp-5.7.2 /sources
   cd /sources
   BASEDIR=c:/usr ; ./configure --prefix="$BASEDIR" \
   --with-mibdirs="$BASEDIR/share/snmp/mibs" \
   --with-mib-modules="agentx disman/event-mib \
   winExtDLL examples/example" \
   --disable-embedded-perl --without-perl-modules

That seemed to complete okay, so I then executed 'make' which gave me 
the following errors:

<lots of output that looks fine...>
/bin/sh ../libtool  --mode=link gcc -fno-strict-aliasing -g -O2 
-Umingw32 -Dmingw32=mingw32  -o snmpd.exe snmpd.lo 
../snmplib/winservicerc.lo  libnetsnmpagent.la libnetsnmpmibs.la 
../snmplib/libnetsnmp.la  -lws2_32 -liphlpapi -lsnmpapi

libtool: link: gcc -fno-strict-aliasing -g -O2 -Umingw32 
-Dmingw32=mingw32 -o .libs/snmpd.exe .libs/snmpd.o 
../snmplib/.libs/winservicerc.o  ./.libs/libnetsnmpagent.a 
./.libs/libnetsnmpmibs.a /sources/agent/.libs/libnetsnmpagent.a 
/sources/snmplib/.libs/libnetsnmp.a ../snmplib/.libs/libnetsnmp.a 
-lws2_32 -liphlpapi -lsnmpapi
./.libs/libnetsnmpmibs.a(mib_modules.o): In function `init_mib_modules':
e:\bst\net-snmp\net-snmp-5.7.2\agent/../agent/mibgroup/mib_module_inits.h:44: 
undefined reference to `init_logmatch'
collect2: ld returned 1 exit status
make[1]: *** [snmpd.exe] Error 1
make[1]: Leaving directory `/sources/agent'
make: *** [subdirs] Error 1

What am I doing wrong here?

Many thanks,
Thomas

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
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.