logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

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.
Post new topic   Forum Index -> Building & Member Downloads View previous topic :: View next topic
Reply to topic   Topic: Trying to build apache with VS 2008 TS SP 1
Author
Razor



Joined: 31 Mar 2009
Posts: 2
Location: 17680 data structures

PostPosted: Tue 31 Mar '09 17:08    Post subject: Trying to build apache with VS 2008 TS SP 1 Reply with quote

Hello, just as the title says, I have attempted to build apache 2.2.11 but everything I got so far is a bunch of errors like "Error result 1 returned from 'E:\Program files\Microsoft SDKs\Windows\v6.0A\bin\rc.exe'. Project ab"

What I've done so far is:

- download the source code from a mirror, package name "httpd-2.2.11-win32-src-r2.zip"
- follow the guide found at http://httpd.apache.org/docs/2.2/en/platform/win_compiling.html. Changed the startup project to InstallBin and made the changes mentioned in the "compiling from IDE" section. Also tried without, changed startup projects, nothing happened, same errors.

I also tried to add openssl but I guess that if apache doesn't even want to start compiling, I should get that working first.

Reason for me doing this rather than just getting the precompiled packages here, is that I want to apply this patch: http://people.apache.org/~fuankg/diffs/httpd-2.2.x-sni.diff to allow apache to handle SSL virtual hosts as per RFC 4366.

There is a guide and an example for debian with apache 2.2.3 at http://www.howtoforge.com/enable-multiple-https-sites-on-one-ip-using-tls-extensions-on-debian-etch if anybody is interested in the topic - I managed to get it working with ubuntu/apache 2.2.11, but trying to do the same on windows.

Any help/hint would be really appreciated.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Tue 31 Mar '09 18:07    Post subject: Reply with quote

I see you found Kasper's TLSSNI patch.
I have a demo of it running http://snidemo.apachehaus.info/

If you want to save yourself some trouble
http://www.apachehaus.com/cgi-bin/download.plx

Otherwise.

Most current version of patch for 2.2.x
http://sni.velox.ch/httpd-2.2.x-sni.20080928.patch

Build zlib, openssl and then Apache.
When building Apache, build Installbin till failure (apr_dbd_odbc) then each of these projects separately;

apr_dbd_odbc (and any others after)
mod_deflate
mod_ssl
abs

then build Installbin again and it all should be fine. You will still get something like 3 error (openssl.pdb, libeay32.pdb, ssleay32.pbd) but this is unneeded anyway.

The biggest problem with Innovation is Microsoft, they decided to only give Vista user the ability to handle this in both IE 7 & 8. Since I'd bet 75% of Windows users on the Net use XP ... 75% or the world cannot use SNI yet.

For IE, Chrome and Safari, only people who have Vista are supported.
Back to top
Razor



Joined: 31 Mar 2009
Posts: 2
Location: 17680 data structures

PostPosted: Tue 31 Mar '09 19:53    Post subject: Reply with quote

That looks like a lot of troubles saved indeed, I'm going to try the SSL ext build - thank you!

I still cannot understand why that patch isn't included in the official apache build, as it's supposed to be backwards compatible though.
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Tue 31 Mar '09 20:09    Post subject: Reply with quote

well ... there's resistance from within;

"... because it's a non-trivial problem to represent that the agreed-upon connection is secure to the user, or that a secure connection is available to be toggled, or whatever."

This has neither been proven or unproven, but until someone spends the time to prove or disprove, we hang in limbo.
Back to top
abel



Joined: 16 May 2009
Posts: 1
Location: The Netherlands / Amsterdam

PostPosted: Sat 16 May '09 0:16    Post subject: Reply with quote

Just had the same today. The rc.exe errors you get are a bug of Visual Studio that appeared in VS 2005, but is still around in VS 2008. To resolve it, copy the original source download again, and first execute the following command from your source dir (install perl if you do not have it yet):

Code:
perl srclib\apr\build\cvtdsp.pl -2005


Then, reopen the project, convert, reset the INSTBIN and uncheck compilation of abs, mod_deflate and mod_ssl and you should be all set for the Debug build. For building the release I needed to uncheck building for the same, plus mod_authz_ldap, which cause LINK errors.

Still errors, but the Release build works and runs. For the debug build, however, I didn't get warnings or errors, but it crashed immediately on an assert, but that's another question.

-- Abel --

PS: I got the above information from the original Apache Windows build instructions and this news group post: http://www.gossamer-threads.com/lists/apache/users/347896?page=last
Back to top


Reply to topic   Topic: Trying to build apache with VS 2008 TS SP 1 View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads