The Apache Haus Forum

Forum Topics => Apache Programming and Building => Topic started by: gsimmons2882 on April 28, 2016, 07:26:07 PM

Title: Apache 2.4.20 VC11
Post by: gsimmons2882 on April 28, 2016, 07:26:07 PM
I was wondering if I could get Apache 2.4.20 VC11 32 bit with OpenSSL 1.0.2g, nghttp 1.9.2, Zlib 1.2.8 (mod_deflate), PCRE 8.38, APR 1.5.2, APR-Util 1.5.4, IPv6 and TLS SNI enabled before it was built because I need to configure before I use it for the company that I'm with.
Title: Re: Apache 2.4.20 VC11
Post by: DnvrSysEngr on April 28, 2016, 08:37:11 PM
GS:

What you are looking for can be found over at ApacheLounge:

     https://www.apachelounge.com/download/VC11/

Apache httpd 2.4.20 GA is now available here at the download pages.

For the ASF and Apachelounge changes over 2.4.18 (2.4.19 was not released)
see https://www.apachelounge.com/Changelog-2.4.html

Build with:
nghttp2 1.9.2
apr 1.5.2 with IPv6 enabled
apr-util 1.5.4 with Crypto OpenSSL enabled
apr-iconv 1.2.1
openssl 1.0.2g +asm
zlib 1.2.8 +asm
pcre 8.38 with JIT, SUPPORT_UTF8 and REBUILD_CHARTABLES enabled
httpd.exe with OPENSSL_Applink and VC14 SupportedOS Manifest
libxml2 2.9.3
lua 5.2.4 with LUA_COMPAT_ALL
expat 2.1.0

VC11 and VC14 versions do not run with XP and 2003, use the VC10 version.
Title: Re: Apache 2.4.20 VC11
Post by: gsimmons2882 on April 28, 2016, 08:53:54 PM
I want one that hasn't been built yet not like the one apache lounge.
Title: Re: Apache 2.4.20 VC11
Post by: Gregg on April 28, 2016, 09:57:57 PM
One that hasn't been built yet? So you can configure it? Exactly what do mean by "configure"?
Title: Re: Apache 2.4.20 VC11
Post by: gsimmons2882 on April 28, 2016, 10:11:50 PM
I need it in the state where I can have the apache.sln in the httpd-2.4.20 folder.
Title: Re: Apache 2.4.20 VC11
Post by: Gregg on April 28, 2016, 10:37:25 PM
Download the various sources
Build the non-ASF sources (OpenSSL, zlib, nghttp2, etc)

In VC11;
File -> Open -> Projects & Solutions -> select Apache24.dsw and say Yes to the conversion.
Once that's finished rename all the APR projects adding a -1 to the end of the names.
You should be good to go now.

Beginning with 2.4.20 there are command line .mak files for us to use also. They are pretty easy to use (I used these on our VC11 builds).
Title: Re: Apache 2.4.20 VC11
Post by: gsimmons2882 on April 28, 2016, 11:15:22 PM
I need the actual download like you get from the apache website but from you guys. I'm also running into a pcre problem because I'm puling it from earlier versions. I might have it fix if I could get the pcre for 2.4.20.
Title: Re: Apache 2.4.20 VC11
Post by: Gregg on April 29, 2016, 03:51:26 AM
Well, like I said, I used the .mak files to build the VC11 builds and have since we started VC11 builds so I do not have .sln/.vcxproj files. It's much quicker and less problematic for me after all we do multiple builds of each Apache release. As for the PCRE, you can use any version released in the past few years, we use 8.38. You cannot use PCRE2 version 10.x however, at least not yet.
Title: Re: Apache 2.4.20 VC11
Post by: gsimmons2882 on April 29, 2016, 03:17:03 PM
How do you use .mak files to build. I usually use to build my apache by nmake /f makefile.win _buildr. Do you use a command in the command line prompt or do you use the Visual Studio IDE.
Title: Re: Apache 2.4.20 VC11
Post by: gsimmons2882 on April 29, 2016, 03:48:23 PM
This is the error I'm getting when I try to build it. If this helps you figure what I'm doing wrong.

Creating Library .\Release\libhttpd.lib and object .\Release\libhttpd.exp
util_pcre.obj : error LNK2019: unresolved external symbol _pcre_exec referenced in function _ap_regexec_len@24
util_pcre.obj : error LNK2019: unresolved external symbol _pcre_fullinfo referenced in function _ap_regcomp_len@12
util_pcre.obj : error LNK2019: unresolved external symbol _pcre_compile2 referenced in function _ap_regcomp_len@12
util_pcre.obj : error LNK2001: unresolved external symbol __imp__pcre_free
.\release\libhttpd.dll : fatal error LNK1120: 4 unresolved externals
Title: Re: Apache 2.4.20 VC11
Post by: Gregg on April 29, 2016, 07:29:30 PM
Hmm, my vc11 pcre 32 bit used is here: https://www.apachehaus.net/pcre/pcre-8.38-x86-vc11.zip

I build it with CMake & the VC11 IDE (Using RelWithDebInfo)
CMake Options:

BUILD_SHARED_LIBS
INSTALL_MSVC_PDB
PCRE_BUILD_PCRE8
PCRE_BUILD_PCRECPP
PCRE_BUILD_PCREGREP
PCRE_REBUILD_CHARTABLES
PCRE_SUPPORT_BSR_ANYCLRF
PCRE_SUPPORT_UNICODE_PROPERTIES
PCRE_SUPPORT_UTF

Files & location needed by Apache for Release build:
srclib/pcre/LICENSE
srclib/pcre/pcre.dll
srclib/pcre/pcre.h
srclib/pcre/pcre.lib
srclib/pcre/pcre.pdb


As for Apache itself, on VC11 I always build on the command line and before 2.4.20 I used a set of .mak files that I generated (in VC6) and maintained myself.
nmake /f makefile.win instdir=\Apache24 installr
Title: Re: Apache 2.4.20 VC11
Post by: gsimmons2882 on April 29, 2016, 09:30:00 PM
Thank you! I got it to build! :)
Title: Re: Apache 2.4.20 VC11
Post by: lordoftheflies on July 11, 2016, 01:48:36 AM
Quote from: gsimmons2882 on April 29, 2016, 09:30:00 PM
Thank you! I got it to build! :)

Yes thank you! Really helped me as well  ;D