Return-Path: Delivered-To: apmail-httpd-docs-archive@www.apache.org Received: (qmail 49950 invoked from network); 2 Dec 2010 10:21:48 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 2 Dec 2010 10:21:48 -0000 Received: (qmail 20912 invoked by uid 500); 2 Dec 2010 10:21:47 -0000 Delivered-To: apmail-httpd-docs-archive@httpd.apache.org Received: (qmail 20833 invoked by uid 500); 2 Dec 2010 10:21:47 -0000 Mailing-List: contact docs-help@httpd.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: docs@httpd.apache.org List-Id: Delivered-To: mailing list docs@httpd.apache.org Received: (qmail 20825 invoked by uid 99); 2 Dec 2010 10:21:46 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Dec 2010 10:21:46 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.131] (HELO eos.apache.org) (140.211.11.131) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Dec 2010 10:21:46 +0000 Received: from eosnew.apache.org (localhost [127.0.0.1]) by eos.apache.org (Postfix) with ESMTP id C03EDBD3; Thu, 2 Dec 2010 10:21:25 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable From: Apache Wiki To: Apache Wiki Date: Thu, 02 Dec 2010 10:21:25 -0000 Message-ID: <20101202102125.80497.31119@eosnew.apache.org> Subject: =?utf-8?q?=5BHttpd_Wiki=5D_Update_of_=22Win64Compilation=22_by_PontusCarl?= =?utf-8?q?sson?= Dear Wiki user, You have subscribed to a wiki page or wiki category on "Httpd Wiki" for cha= nge notification. The "Win64Compilation" page has been changed by PontusCarlsson. http://wiki.apache.org/httpd/Win64Compilation?action=3Ddiff&rev1=3D3&rev2= =3D4 -------------------------------------------------- {{attachment:sdk_installation.png}} = Next of you'll need a Perl distribution, ActiveState or strawberry works = about the same although I prefer strawberry perl which can be found [[http:= //strawberryperl.com/|here]]. + = - You'll also need a Windows port of awk, GnuWin32 has an excellent packag= e for this located [[http://sourceforge.net/projects/gnuwin32/files/gawk/|h= ere]]. + . You'll also need a Windows port of awk, GnuWin32 has an excellent pack= age for this located [[http://sourceforge.net/projects/gnuwin32/files/gawk/= |here]]. = Perl will set up your PATH environment variable correctly, GnuWin32 howev= er will not. If you're familiar with Windows it'll be no task to append the= correct path to awk.exe to your PATH, + = - if you're not however familiar with Windows it'll just suffice by running + . if you're not however familiar with Windows it'll just suffice by runn= ing = {{{ set PATH=3D"C:\Program Files (x86)\GnuWin32\bin;%PATH%" @@ -26, +28 @@ Replace C:\Program Files (x86)\GnuWin32\ with the installation path you p= rovided during the installation, this is however default so if you didn't c= hacnge anything this'll work just fine for you. = =3D Obtaining the sources =3D - = Lastly we (of course) need the sources. = The sources we're required to have are for HTTPd, Zlib and OpenSSL. @@ -43, +44 @@ = Let's just assume for now that you extracted the sources to C:\, leaving = the source tree in C:\httpd-2.2.17. = - Next you'll want to extract the zlib archive to C:\httpd-2.2.17\srclib an= d strip the version number from the output folder, leaving just C:\httpd-2.= 2.17\srclib\zlib. - And do the same procedure for the openssl archive in the same directory, = leaving that source tree in C:\httpd-2.2.17\srclib\openssl. + Next you'll want to extract the zlib archive to C:\httpd-2.2.17\srclib an= d strip the version number from the output folder, leaving just C:\httpd-2.= 2.17\srclib\zlib. And do the same procedure for the openssl archive in the = same directory, leaving that source tree in C:\httpd-2.2.17\srclib\openssl. + = + So now you should have a source hierarchy looking like : + = + * C:\httpd-2.2.17\srclib + = + . * zlib + * openssl = =3D Step by Step =3D + First of all we need to compile Zlib and OpenSSL since these are dependen= cies for mod_ssl and mod_deflate, if you don't desire these modules then yo= u can just skip this (I believe but are not sure). = + In C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\bin there's shor= tcut named "Visual Studio 2008 x64 Win64 Command Prompt", enter this and yo= u should appear in a command prompt, now + = + {{{ + cd C:\httpd-2.2.17 + }}} + You're now inside the source tree of httpd, let's begin compiling Zlib sh= all we! + = + =3D=3D Zlib =3D=3D + = + {{{ + cd srclib\zlib + nmake -f win32\Makefile.msc AS=3Dml64 LOC=3D"-DASMV -DASMINF -I." OBJA=3D= "inffasx64.obj gvmat64.obj inffas8664.obj" + }}} + AS=3Dml64 tells nmake to use ml64 (Macro Assembler x64) as our assembler,= -DASMV and -DASMINF are both defines in inffas8664.c which I'm not sure wh= at they actually do. + = + If you encounter something like + = + {{{ + infback.obj : error LNK2019: unresolved external symbol inflate_fast refe= renced + in function inflateBack + inflate.obj : error LNK2001: unresolved external symbol inflate_fast + }}} + This means you have a typo in either -DASMV -DASMINF or your OBJ=3D"inffa= sx64.obj gvmat64.obj inffas8664.obj" since inflate_fast is defined in inffa= s8664.c. + = + If you instead encounter + = + {{{ + contrib/masmx64\inffas8664.c(36) : fatal error C1083: Cannot open include= file: + 'zutil.h': No such file or directory + }}} + this means you've missed out on -I. since this basicly tells the compiler= to also include header files from current directory (zlib\) in which zutil= .h is found. +=20 --------------------------------------------------------------------- To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org For additional commands, e-mail: docs-help@httpd.apache.org