Page 1 of 1

What a pain

Posted: Fri Apr 14, 2006 2:15 pm
by alex.barylski
in the arse...that is :P

Trying to compile and build a Windows version of Apache is like pulling teeth from a shark...my knuckles are bleeding :)

I haven't found a single resource which explains how "ANYONE" can build a Windows Apache distro...

Most assume you have a full licensed version of Visual C++ - which I don't!!! :(

Anyone ever try and port the MAK files to other compilers, opposed to VC++???

Cheers :)

Posted: Fri Apr 14, 2006 3:41 pm
by Deemo
just curious, why not use XAMPP?

Posted: Fri Apr 14, 2006 5:14 pm
by timvw
I thought you could get free versions these days.. http://msdn.microsoft.com/vstudio/expre ... fault.aspx

Posted: Fri Apr 14, 2006 5:17 pm
by alex.barylski
Deemo wrote:just curious, why not use XAMPP?
Cuz I already do...

I wanted to compile myself once, just for the experience...

Turns out, on Windows, using the "free" approach is quite the headache :P

Posted: Fri Apr 14, 2006 5:19 pm
by alex.barylski
timvw wrote:I thought you could get free versions these days.. http://msdn.microsoft.com/vstudio/expre ... fault.aspx
I'm using the free tools...not Visual C++ express however, just the command line tools...

Posted: Fri Apr 14, 2006 5:35 pm
by Christopher
Hockey wrote:I wanted to compile myself once, just for the experience...
In he same amount of time you could learn to juggle or ride a unicyle. ;)
Hockey wrote:Turns out, on Windows, using the "free" approach is quite the headache :P
There's a surprise!

Posted: Fri Apr 14, 2006 5:43 pm
by alex.barylski
arborint wrote:
Hockey wrote:I wanted to compile myself once, just for the experience...
In he same amount of time you could learn to juggle or ride a unicyle. ;)
Hockey wrote:Turns out, on Windows, using the "free" approach is quite the headache :P
There's a surprise!
It actually was pretty painless once the directions were fully understood...I mean I seldomly use CLI but I have used it so it was fairly straight forward...

The kick in the junk occurs because of required files M$ forgot to include with the distrobution of the SDK/Compiler tools, etc...

Missing the msvcrt.lib for starters...

I've given up for today, but a few minutes ago it occured to me that I can generate a *.lib file from a DLL using the linker so I'll take another stab at it tomorrow...

Posted: Fri Apr 14, 2006 5:46 pm
by shiznatix
...or just use linux

/me runs away...fast!

Posted: Fri Apr 14, 2006 5:55 pm
by timvw
All i need to do was download awk (and make sure it could be found in my %path%).

With VS6.0 it simply compiles.
With VS8.0 (2005) i get a couple (currently 1000+) of deprecated function warnings but it seems to compiles nevertheless.. (will post again when it has finished... compiling with vs8 takes much longer than with vs6)

(actually, 1248 warnings and 48 errors... now i've removed abs, mod_deflate and mod_ssl from the build... let's see what it gives..)
(4errors, removed lines 128, 129, 130, 131, 132 and 133 from Makefile.win and i was ready to go... :))

(I noticed that the compiler complained about a couple of errors while i was trying to compile zlib from source. This can be fixed by prepending "dword ptr" to the second argument of the movd instructions on lines647, 649, 663 and 720 in srclib/zlib/contrib/masmx86/inffas32.asm. Tomorrow i'll check if they can use a patch ;))

Posted: Sat Apr 15, 2006 3:01 am
by timvw
Here's an overview how i compiled apache-2.2.0 (with mod_deflate and mod_ssl) using Visual Studio 2005: http://timvw.madoka.be/?p=579

Posted: Sat Apr 15, 2006 1:19 pm
by alex.barylski
Are you using the Visual studio express? or full blown?

I'm trying to get it to compile using just the freely downloaded tools (command line too NOT IDE)....so that "anyone" can download them and get everything going themselves if they desire - if I document my approach that is. :P

The problem I'm running into is that only the .NET SDK ships with msvcrt.lib...

But even when I set the %LIB% to the .NET lib directory or copied the file over to platform SDK lib directory I'm still getting that same damn linker error...