|
From: Andy S. <was...@ea...> - 2004-03-01 22:04:13
|
The Open SSL package for Windows that is recommended by the MinGW developers is at: http://www.slproweb.com/products/Win32OpenSSL.html I am working with it tonight, I should have docs shortly. Andy sl...@be... wrote: > > >>Andy Smith 02/29/04 18:19 writes: >>Compiling Open SSL is a pain at best on MinGW. I will try and find the URL >>for the binary that they recommend all the time on the MinGW mailing list. >>Even the MinGW developers seem to point to a binary, rather than trying to >>compile yourself. > > > Andy > > On Sun, 29 Feb 2004, Mike Slifcak wrote: > Slif> I'm trying to compile less. I'm using gnuwin32's pre-compiled openssl. > Slif> The following is also required: > Slif> copy c:\MinGW\bin\libeay32.dll C:\Program Files\Net-SNMP\bin > > AlexB> Why is libeay32.dll inside of your c:\mingw\bin directory? > AlexB> Did you install the -bin.exe into MinGW instead of the > AlexB> default of C:\Program Files\GnuWin32? > > > Here is what I did. I did it this way because I wanted to keep > the entropy to a minimum. I recognize that I need to document > this approach if it has merit. Let me know if it does. > > > First, I went to the URL here and downloaded openssl > http://gnuwin32.sourceforge.net/packages.html > > Second, I unpacked it to C:\gnuwin32 , a directory that I created, > so that I know where the package came from. > > Third, I copied the bin, lib, and include directories > over C:\mingw. This places the header and linking files > where the mingw-gcc compiler can find them. > > Therefore, since "configure" will find openssl supported, > I must then copy C:\mingw\bin\libeay32.dll to the > bin directory where the Net-SNMP programs built with mingw live. > > I keep forgetting to add this step to a script that I use, > so I am reminded each time that I build the mingw versions. > > > AlexB> Shouldn't it be in winnt\system32 anyways? > > I chose not to copy libeay32.dll to %SYSTEMROOT%\System32, > because on some platforms, there is one already in that directory, > and I did not want to impact other programs taht require libeay32.dll. > > Alex, I agree that the README.win32 is confusing wrt OpenSSL. > > > -Mike > > > > >>> >>>The README.win32 says: >>> >>> 3. Once the OpenSSL libraries are built, you must copy them to the net-snmp >>> source tree: >>> >>> Copy libeay32.dll to net-snmp\win32\bin >>> Copy libeay32.exp to net-snmp\win32\lib >>> Copy libeay32.lib to net-snmp\win32\lib >>> >>>Is that all that is needed, or do we also have to copy some header files too? If you extracted openssl-0.9.7c-lib.zip to your MinGW folder, then it's already taken care of. >>> >>>Sorry, I'm just asking questions right now. I haven't tried OpenSSL for a while. >>> >>>Seeing as how the binaries are available, we should document how to: >>> >>>-build OpenSSL from source using MSVC (already got that - is it complete?) to compile Net-SNMP using MSVC >>>-install .DLL in windows folder and libraries in MSVC folder from GnuWIN32 packages for building Net-SNMP using MSVC >>>-install .DLL in windows folder and libraries in MinGW folder from GnuWIN32 packages for building Net-SNMP using MinGW / MSYS >>>-install .DLL in windows folder for running the binary version of Net-SNMP that is already linked against openssl. >>> >>>Alex >>> >>> >>> >> >>>>> >>>>>Alex Burger wrote: >>>>> >>> >>>>>>>Hi. >>>>>>> >>>>>>>Have either of you compiled OpenSSL with MinGW? >>>>>>> >>>>>>>The MSYS Developer Tool Kit source has an older version of OpenSLL that nearly compiled for me, but aborted at: >>>>>>> >>>>>>>c:/MinGW/include/windef.h:140:1: warning: this is the location of the previous definition >>>>>>>`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead. >>>>>>>gcc -DMONOLITH -I../include -DTHREADS -DDSO_WIN32 -DL_ENDIAN -fomit-frame-pointer -O3 -m486 -Wall -c -o apps.o apps.c >>>>>>>apps.c:74:24: bss_file.c: No such file or directory >>>>>>>`-m486' is deprecated. Use `-march=i486' or `-mcpu=i486' instead. >>>>>>>make[1]: *** [apps.o] Error 1 >>>>>>>make[1]: Leaving directory `/c/prog/msysDTK/1.0/1/packages/openssl-0.9.6b/apps' >>>>>>>make: *** [sub_all] Error 1 >>>>>>> >>>>>>>I compiled the above using: >>>>>>> >>>>>>>./configure MINGW >>>>>>> >>>>>>>The current OpenSSL from openssl.org is 0.9.7c, but it does not contain the Configure changes made by the MinGW group (why?????). >>>>>>> >>>>>>>We could build two packages (or one with options) so the user can use OpenSSL or not. The user will have to take care of compiling OpenSSL, but if it's 'easy' to make the .dll using MinGW and MSYS, then it should be fine. Requiring MSVC would not be good. >>>>>>> >>>>>>>Alex >>>>>>> >>>>>>> >>> > ---- Andy Smith, MCP was...@ea... > > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Net-snmp-coders mailing list > Net...@li... > https://lists.sourceforge.net/lists/listinfo/net-snmp-coders > -- -------------------------- Andy Smith, MCP was...@ea... -------------------------- |