How to compile Apache 2.4.41 and OpenSSL 1.1.1 on Windows 7?

0

I am using Windows 7 (64-bit), Visual Studio 2013 Ultimate. I tried compile Apache 2.4.41 with OpenSSL 1.1.1e on my computer.

The source package I use is:

  1. httpd-2.4.41
  2. openssl-1.1.1e
  3. apr-1.7.0-win32-src
  4. apr-util-1.6.1-win32-src
  5. apr-iconv-1.2.2-win32-src
  6. pcre-8.44
  7. expat-2.2.7 (Since version 2.2.8, there is no longer an expat.sln file, so it's great if there are instructions on version 2.2.9.)

The software that I use:

  1. ActivePerl v5.28.1.2801 (x64)
  2. CMake v3.17.0 (x64)
  3. Gawk v3.1.6-1
  4. NASM v2.14.03-RC2 (x86)

I followed this tutorial on Apache Lounge: Building Apache 2.4.x for Windows x64 using CMake

However, the guide is outdated, it doesn't have the build guide apr-iconv and I got this error when building apr-util (error at nmake step):

[  1%] Linking C shared library libaprutil-1.dll
LINK Pass 1: command "C:\PROGRA~2\MICROS~1.0\VC\bin\amd64\link.exe /nologo @CMak
eFiles\libaprutil-1.dir\objects1.rsp /out:libaprutil-1.dll /implib:libaprutil-1.
lib /pdb:C:\Development\Apache24\build\apr-util\libaprutil-1.pdb /dll /version:0
.0 /machine:x64 /debug /INCREMENTAL C:\Apache24\lib\libapr-1.lib kernel32.lib us
er32.lib gdi32.lib winspool.lib shell32.lib ole32.lib oleaut32.lib uuid.lib comd
lg32.lib advapi32.lib /MANIFEST /MANIFESTFILE:CMakeFiles\libaprutil-1.dir/interm
ediate.manifest CMakeFiles\libaprutil-1.dir/manifest.res" failed (exit code 1120
) with the following output:
   Creating library libaprutil-1.lib and object libaprutil-1.exp
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_ParserCreate refer
enced in function apr_xml_parser_create
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_SetEntityDeclHandl
er referenced in function apr_xml_parser_create
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_SetElementHandler
referenced in function apr_xml_parser_create
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_SetCharacterDataHa
ndler referenced in function apr_xml_parser_create
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_SetUserData refere
nced in function apr_xml_parser_create
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_Parse referenced i
n function do_parse
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_StopParser referen
ced in function entity_declaration
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_GetErrorCode refer
enced in function do_parse
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_ParserFree referen
ced in function cleanup_parser
apr_xml.c.obj : error LNK2019: unresolved external symbol XML_ErrorString refere
nced in function apr_xml_parser_geterror
libaprutil-1.dll : fatal error LNK1120: 10 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\CMake\bin\cmake.exe"' : return cod
e '0xffffffff'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 12.0
\VC\BIN\amd64\nmake.exe"' : return code '0x2'
Stop.

I tried to find a newer tutorial, here it is: How to Build Apache on Windows

However, I had to downgrade APR and Expat versions like in the tutorial. I followed the instructions but at the "Apache Build" step I followed the instructions but still encountered 19 errors as in the image: Error building with Visual Studio 2013 Ultimate

My goal is to build Apache 2.4.41 with OpenSSL 1.1.1e on both Windows x86 (32-bit) and x64 (64-bit) with all the latest packages. Can anyone give me a complete guide? I would appreciate your instructions.

Thanks!

apache
visual-studio-2013
openssl
windows-7-x64

0 Answers

Nobody has answered this question yet.


User contributions licensed under CC BY-SA 3.0