Hi, Andy.  I'm sorry to hear that you are experiencing
those difficulties.  I wonder if the reason isn't that
"it works for me" has found its way into the source base.

For that reason, I'll describe what works for me, and 
then we can generalize so that it works for you, too!!


I've installed all of the current pieces from mingw.org
in addition to the openssl package you mentioned.
C:\MSYS has all of the msys-only bits.
C:\MINGW has the rest of the packages from mingw.org
  and the regex pieces you've mentioned previously
  and the Mingw-specific pieces of the OpenSSL package
   that you have mentioned recently.


I had to copy the openssl headers and libs to my
visual studio VC98\INCLUDE and VC98\LIB in order to build
with the GUI or to use command line "build.bat".

I have no problem running when I build with
gcc-cyg-ipv6.sh for Cygwin or gcc-min-ipv6.sh for MinGW
which are parts of scripts.tar.gz attached below.

#-#-#-#-#-#

To follow-up on the "make test" comments I've made earlier,
when I comment out HAVE_AES_CFB128_ENCRYPT and HAVE_AES
from win32/net-snmp/net-snmp-config.h that was
copied to c:\usr\include\net-snmp,
I do see better results when testing MSVC-built binaries
using  "cd testing;./RUNTESTS -XM -a -D c:/usr"

#-#-#-#-#-#

> 
> From: Andy Smith <[EMAIL PROTECTED]>
> Date: 2004/09/14 Tue AM 07:38:45 EDT
> To: "Michael J. Slifcak" <[EMAIL PROTECTED]>
> Subject: Re: problems with "make test"
> 
> I have the OpenSSL from 
> http://www.slproweb.com/products/Win32OpenSSL.html . I have not changed 
> that since I started working on the project. It seems like the link 
> errors have just started with the last couple of CVS snapshots I have 
> pulled.
> 
> Andy
> 
> /bin/sh ../libtool  --mode=link gcc -o snmpusm.exe snmpusm.lo 
> -L../snmplib -L../agent -L../agent/helpers  ../snmplib/libnetsnmp.la 
> -lm -lregex -lregex -lws2_32
> gcc -o snmpusm.exe snmpusm.o  -L/d/luser/src/net-snmp-5.2.pre1/snmplib 
> -L/d/luser/src/net-snmp-5.2.pre1/agent 
> -L/d/luser/src/net-snmp-5.2.pre1/agent/helpers 
> ../snmplib/.libs/libnetsnmp.a -lm -lregex -lws2_32
> snmpusm.o(.text+0x2ee): In function `get_USM_DH_key':
> d:/luser/src/net-snmp-5.2.pre1/apps/snmpusm.c:195: undefined reference 
> to `d2i_DHparams'
> snmpusm.o(.text+0x319):d:/luser/src/net-snmp-5.2.pre1/apps/snmpusm.c:200: 
> undefined reference to `DH_generate_key'
> snmpusm.o(.text+0x32d):d:/luser/src/net-snmp-5.2.pre1/apps/snmpusm.c:204: 
> undefined reference to `BN_num_bits'
> snmpusm.o(.text+0x35a):d:/luser/src/net-snmp-5.2.pre1/apps/snmpusm.c:210: 
> undefined reference to `BN_bn2bin'
> snmpusm.o(.text+0x362):d:/luser/src/net-snmp-5.2.pre1/apps/snmpusm.c:212: 
> undefined reference to `DH_size'
> snmpusm.o(.text+0x390):d:/luser/src/net-snmp-5.2.pre1/apps/snmpusm.c:217: 
> undefined reference to `BN_bin2bn'
> snmpusm.o(.text+0x3b0):d:/luser/src/net-snmp-5.2.pre1/apps/snmpusm.c:221: 
> undefined reference to `DH_compute_key'
> snmpusm.o(.text+0x44f):d:/luser/src/net-snmp-5.2.pre1/apps/snmpusm.c:205: 
> undefined reference to `BN_num_bits'
> make[1]: *** [snmpusm.exe] Error 1
> make[1]: Leaving directory `/d/luser/src/net-snmp-5.2.pre1/apps'
> make: *** [subdirs] Error 1
> 
> Michael J. Slifcak wrote:
> > I installed the windows package recommended by Openssl.org months ago,
> > and haven't had build problems related to openssl.
> > 
> > If you like, I can post my VCVARS and build script.
> > 
> > Andy Smith wrote:
> > 
> >> It is the build that is failing. I don't get far enough along to run 
> >> make test. When I get a Windows box back up I will send the errors. I 
> >> am sure it has something to do with Open SSL though.
> >>
> >> Andy
> >>
> >> [EMAIL PROTECTED] wrote:
> >>
> >>> Andy, I've found that if you comment out HAVE_AES
> >>> from the include/net-snmp/net-snmp-config.h, you should
> >>> see successful test runs. There may still be timing related
> >>> problems (not finding a .pid file, or an unusual exit),
> >>> but there should be no outright FAILs (except for the HUP -9 ...)
> >>> -MIke
> >>>
> >>>
> >>>
> >>>> From: Andy Smith <[EMAIL PROTECTED]>
> >>>> Date: 2004/09/13 Mon PM 05:18:47 EDT
> >>>> To: [EMAIL PROTECTED]
> >>>> CC: [EMAIL PROTECTED]
> >>>> Subject: Re: problems with "make test"
> >>>>
> >>>> [EMAIL PROTECTED] wrote:
> >>>>
> >>>>> Hi, coders.  There are some problems running "make test"
> >>>>> on other platforms.  Specifically, win32.
> >>>>>
> >>>>> When testing for CPP defines, in order to adjust test parameters,
> >>>>> the test scripts could do a better job of matching.
> >>>>>
> >>>>> At the present,  the following line will match :
> >>>>>
> >>>>> /* #define USE_OPENSSL */
> >>>>>
> >>>>> Which is clearly intended to not be defined.
> >>>>> That construct appears when using the Perl Configure script to
> >>>>> build the win32 MSVC versions of the Net-SNMP applications.
> >>>>
> >>>>
> >>>>
> >>>> It looks to me like the OpenSSL issue is causing problems with the 
> >>>> MinGW build as well. More when I figure it out.
> >>>>
> >>>> Andy
> >>>>
> >>>>
> >>>>> To alleviate the problem, the "grep" lines in
> >>>>>
> >>>>> testing/eval_tools.sh testing/tests/Sv3config
> >>>>>
> >>>>> were changed from :
> >>>>>
> >>>>>   grep "define yadda"
> >>>>>
> >>>>> to
> >>>>>
> >>>>>   grep "^#define yadda"
> >>>>>
> >>>>>
> >>>>> This is not a complete solution, as the tests search for
> >>>>> CPP define "HAVE_AES" , which always match this fragment
> >>>>> from acconfig.h, net-snmp-config.h.in:
> >>>>>
> >>>>> #if defined(USE_OPENSSL) && defined(HAVE_OPENSSL_AES_H) && 
> >>>>> defined(HAVE_AES_CFB128_ENCRYPT)
> >>>>> #define HAVE_AES 1
> >>>>> #endif
> >>>>>
> >>>>>
> >>>>>
> > 
> 
> 

Attachment: scripts.tar.gz
Description: GNU Zip compressed data

Reply via email to