You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apr.apache.org by Issac Goldstand <ma...@beamartyr.net> on 2006/11/02 10:07:14 UTC

Win x64 build targets?

Hi all,
  I just upgraded to a new PC with EM64T enabled, and got WinXP x64
edition, VS 2003 and a 64-bit-enabled version of the Windows SDK.  I
wanted to try building native 64-bit builds of httpd 2.2.3.

APR seems to compile everything, but on linking I get the following error:

        link.exe @C:\DOCUME~1\issac\LOCALS~1\Temp\nm10.tmp
.\Release\apr_atomic.obj : fatal error LNK1112: module machine type
'AMD64' conflicts with target machine type 'X86'
NMAKE : fatal error U1077: 'link.exe' : return code '0x458'
Stop.

Should this kind of build be possible?  Is there interest in building
"official" 64-bit binaries for windows platforms?  What can I do to help?

  Issac

Re: Win x64 build targets?

Posted by Jorge Schrauwen <jo...@gmail.com>.
Scratch that... there i had that removed allready!
Seems to be __imp_apr link errors. Strange though since i started out with 2
exact copies of the httpd, and module source tree and compile one for x86
platform for which everything works fine and one for the x64 which works
accept mod_security.

Ah well wrowe warned me it was buggy at best :)


On 11/2/06, Jorge Schrauwen <jo...@gmail.com> wrote:
>
> I'll try that later tonight... any disavantages while doing so?
>
> On 11/2/06, Ivan Ristic <ivan.ristic@gmail.com > wrote:
> >
> > On 11/2/06, Jorge Schrauwen < jorge.schrauwen@gmail.com> wrote:
> > >
> > > Yes its possible with some minor effort.
> > >
> > > ...
> > >
> > > Other modules i found that work fine:
> > > mod_auth_xml
> > > mod_macro
> > > mod_security 1.9.4 (2.0 doesn't work because of libxml grrr)
> >
> > FYI you should be able compile ModSecurity with XML features left out.
> > Just comment out the "DEFS = -DWITH_LIBXML2" line in the Makefile.
> >
> > --
> > Ivan Ristic
> >
>
>
>
> --
> ~Jorge




-- 
~Jorge

Re: Win x64 build targets?

Posted by Jorge Schrauwen <jo...@gmail.com>.
I'll try that later tonight... any disavantages while doing so?

On 11/2/06, Ivan Ristic <iv...@gmail.com> wrote:
>
> On 11/2/06, Jorge Schrauwen <jo...@gmail.com> wrote:
> >
> > Yes its possible with some minor effort.
> >
> > ...
> >
> > Other modules i found that work fine:
> > mod_auth_xml
> > mod_macro
> > mod_security 1.9.4 (2.0 doesn't work because of libxml grrr)
>
> FYI you should be able compile ModSecurity with XML features left out.
> Just comment out the "DEFS = -DWITH_LIBXML2" line in the Makefile.
>
> --
> Ivan Ristic
>



-- 
~Jorge

Re: Win x64 build targets?

Posted by Greg Marr <gr...@alum.wpi.edu>.
At 07:56 AM 11/2/2006, Ivan Ristic wrote:
>BTW, what's a "round tuit"? :)

It's a play on words:
"I'll do it when I get around to it" -> "I'll do it when I get a 
round tuit"

If you don't have enough round tuits, you don't have the time to do 
something.


Re: Win x64 build targets?

Posted by Ivan Ristic <iv...@gmail.com>.
On 11/2/06, Nick Kew <ni...@webthing.com> wrote:
> On Thu, 2 Nov 2006 12:41:39 +0000
> "Ivan Ristic" <iv...@gmail.com> wrote:
>
> > > Other modules i found that work fine:
> > > mod_auth_xml
> > > mod_macro
> > > mod_security 1.9.4 (2.0 doesn't work because of libxml grrr)
> >
> > FYI you should be able compile ModSecurity with XML features left out.
> > Just comment out the "DEFS = -DWITH_LIBXML2" line in the Makefile.
>
> Why is that?  libxml2 works fine in Windows, and with apache in
> many different modules.  Do you know why it's incompatible with
> mod_security, or is this just awaiting a round tuit?

No, no, no. ModSecurity works fine with libxml2 (it uses it to parse
and inspect XML). I understood the original poster to say that libxml2
does not work on Win x64 so I simply pointed out a way to avoid the
problem (if you only need libxml2 for ModSecurity and you don't need
the XML features).

BTW, what's a "round tuit"? :)

-- 
Ivan Ristic

Re: Win x64 build targets?

Posted by Nick Kew <ni...@webthing.com>.
On Thu, 2 Nov 2006 12:41:39 +0000
"Ivan Ristic" <iv...@gmail.com> wrote:

> > Other modules i found that work fine:
> > mod_auth_xml
> > mod_macro
> > mod_security 1.9.4 (2.0 doesn't work because of libxml grrr)
> 
> FYI you should be able compile ModSecurity with XML features left out.
> Just comment out the "DEFS = -DWITH_LIBXML2" line in the Makefile.

Why is that?  libxml2 works fine in Windows, and with apache in
many different modules.  Do you know why it's incompatible with
mod_security, or is this just awaiting a round tuit?


-- 
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/

Re: Win x64 build targets?

Posted by Ivan Ristic <iv...@gmail.com>.
On 11/2/06, Jorge Schrauwen <jo...@gmail.com> wrote:
>
> Yes its possible with some minor effort.
>
> ...
>
> Other modules i found that work fine:
> mod_auth_xml
> mod_macro
> mod_security 1.9.4 (2.0 doesn't work because of libxml grrr)

FYI you should be able compile ModSecurity with XML features left out.
Just comment out the "DEFS = -DWITH_LIBXML2" line in the Makefile.

-- 
Ivan Ristic

Re: Win x64 build targets?

Posted by Jorge Schrauwen <jo...@gmail.com>.
Yes its possible with some minor effort.
You need Visual Studio 2005, perl, awk...
Open a CLI and navigate to your source tree.
Get the latest cvtdsp.pl from the svn server.
and run cvtdsp.pl -2005

You open Apache.dsw and convert it to a sln via the IDE.
You then set it to build release.
Then go to the platform dropdown (default win32) and chose Configuration
Manager.
Change the active Platform to <new>, select x64 with Copy Setttings from
Win32.
Set installbin as startup project, Edit under Configuration
Properties->NMake edit the INSTDIR variable to your liking.
Build the solution.

Note: mod_rewrite doesn't seem to work correctly for some people who use my
binaries, other experience no problem.
The platform in the Server Info string still says Win32 this can be easly
patched. (See my post to dev@httpd a while ago)

Other modules i found that work fine:
mod_auth_xml
mod_macro
mod_security 1.9.4 (2.0 doesn't work because of libxml grrr)

Hopefully this will help you... I use to have a tutorial about this that was
way better but it got outdated with the 2.2.3 release.
If you have more questions I'll try to answer them.

On 11/2/06, Issac Goldstand <ma...@beamartyr.net> wrote:
>
> Hi all,
>   I just upgraded to a new PC with EM64T enabled, and got WinXP x64
> edition, VS 2003 and a 64-bit-enabled version of the Windows SDK.  I
> wanted to try building native 64-bit builds of httpd 2.2.3.
>
> APR seems to compile everything, but on linking I get the following error:
>
>         link.exe @C:\DOCUME~1\issac\LOCALS~1\Temp\nm10.tmp
> .\Release\apr_atomic.obj : fatal error LNK1112: module machine type
> 'AMD64' conflicts with target machine type 'X86'
> NMAKE : fatal error U1077: 'link.exe' : return code '0x458'
> Stop.
>
> Should this kind of build be possible?  Is there interest in building
> "official" 64-bit binaries for windows platforms?  What can I do to help?
>
>   Issac
>



-- 
~Jorge