Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
Thank You! Steffen
Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
| |
|
Topic: Compiling Apache 2.4.12 with MS 2012 have error |
|
Author |
|
kleung
Joined: 11 Feb 2015 Posts: 1 Location: HK
|
Posted: Wed 11 Feb '15 11:54 Post subject: Compiling Apache 2.4.12 with MS 2012 have error |
|
|
I am a new user for compiling Apache, it have some error when compiling the Apache 2.4.12 in Windows Server 2008R2
Windows Server 2008 x64
Microsoft Visual Studio 2012
Microsoft Windows SDK v6.1
awk95
cmake-3.1.2-win
ActivePerl-5.20.1
nasm-2.11.06
Source: httpd-2.4.12
apr-1.5.1-win32-src
apr-iconv-1.2.1-win32-src-r2
apr-util-1.5.4-win32-src
openssl-1.0.1l
pcre-8.36
zlib128
after run
c:\httpd-2.4.12\srclib\openssl>nmake -f ms\ntdll.mak
have below error message:
cl /Fotmp32dll\c_zlib.obj -Iinc32 -Itmp32dll -ID:\httpd-2.4.12\srclib\zlib /MD /Ox -DZLIB -DOPENSSL_THREADS -DDSO_WIN32 -ID:\\httpd-2.4.12\\srclib\\zlib -W3 -Gs0 -Gy -nologo -DOPENSSL_SYSNAME_WIN32 -DWIN32_LEAN_AND_MEAN -DL_ENDIAN -DUNICODE -D_UNICODE -D_CRT_SECURE_NO_DEPRECATE -DOPENSSL_IA32_SSE2 -DOPENSSL_BN_ASM_MONT -DOPENSSL_BN_ASM_MONT5 -DOPENSSL_BN_ASM_GF2m -DSHA1_ASM -DSHA256_ASM -DSHA512_ASM -DMD5_ASM -DAES_ASM -DVPAES_ASM -DBSAES_ASM -DWHIRLPOOL_ASM -DGHASH_ASM -DOPENSSL_USE_APPLINK -I. -DOPENSSL_NO_IDEA -DOPENSSL_NO_RC5 -DOPENSSL_NO_MD2 -DOPENSSL_NO_KRB5 -DOPENSSL_NO_JPAKE -DZLIB -DOPENSSL_NO_STATIC_ENGINE /Zi /Fdtmp32dll/lib -D_WINDLL -DOPENSSL_BUILD_SHLIBCRYPTO -c .\crypto\comp\c_zlib.c
c_zlib.c
.\crypto\comp\c_zlib.c(25) : fatal error C1083: Cannot open include file: 'zlib.h': No such file or directory
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\x86_amd64\cl.EXE"' : return code '0x2'
Stop.
When I skip the ssl run
c:\httpd-2.4.12>nmake /f Makefile.win installr
have this error message
Building Win32 Release targets (R suffixes)
'msdev' is not recognized as an internal or external command,
operable program or batch file.
NMAKE : fatal error U1077: 'msdev' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
Then change all "msdev" to "devenv" in Makefile.win then run "nmake /f Makefile.win installr " it's show another error message:
Solution file 'C:\httpd-2.4.12\Apache.sln' is from a previous version of this application and must be migrated in order to build in this version of the application. To migrate the solution, open the solution in this version of the application.NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.COM"' : return code '0x1'Stop.
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio 11.0\VC\BIN\nmake.exe"' : return code '0x2'
Stop.
Is any missing, please help to solve the problem, many thanks. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7371 Location: Germany, Next to Hamburg
|
Posted: Wed 20 May '15 11:04 Post subject: |
|
|
did you run
srclib\apr\build\lineends.pl
and
srclib\apr\build\cvtdsp.pl -2005
? |
|
Back to top |
|
glsmith Moderator
Joined: 16 Oct 2007 Posts: 2268 Location: Sun Diego, USA
|
Posted: Wed 20 May '15 11:23 Post subject: |
|
|
OpenSSL not compiling with zlib is actually a good thing! SSL compression is vulnerable to the BEAST attack.
Why nmake /f makefile.win installr does not work is because httpd.mak does not exist.
The full set of makefiles do not come with 2.4.x. If you want to compile from the command line you can use these or simply steal the .mak files from them.
http://people.apache.org/~gsmith/httpd/releases/ |
|
Back to top |
|
|
|
|
|
|