What a pain

Ye' old general discussion board. Basically, for everything that isn't covered elsewhere. Come here to shoot the breeze, shoot your mouth off, or whatever suits your fancy.
This forum is not for asking programming related questions.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

What a pain

Post 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 :)
Deemo
Forum Contributor
Posts: 418
Joined: Sun Jan 18, 2004 11:48 am
Location: Washington DC

Post by Deemo »

just curious, why not use XAMPP?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

I thought you could get free versions these days.. http://msdn.microsoft.com/vstudio/expre ... fault.aspx
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post 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
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post 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...
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Post 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!
(#10850)
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post 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...
User avatar
shiznatix
DevNet Master
Posts: 2745
Joined: Tue Dec 28, 2004 5:57 pm
Location: Tallinn, Estonia
Contact:

Post by shiznatix »

...or just use linux

/me runs away...fast!
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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 ;))
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post 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
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post 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...
Post Reply