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: Apache httpd with MinGW
Author
lm



Joined: 28 May 2014
Posts: 2
Location: US

PostPosted: Wed 28 May '14 19:20    Post subject: Apache httpd with MinGW Reply with quote

I read the documentation which says the Apache http server isn't officially supported as far as MinGW builds. However, MinGW (and msys) is what I use on Windows for development (and I don't mind patching source code). I'm using gnu autotools instead of cmake, since cmake usually can't find anything on my system even when I build cmake from source. Anything I've tried building with cmake typically fails (including httpd). I downloaded and am working with httpd-2.4.9.tar.bz2. Has anyone else been able to get the source to build with MinGW and msys? I'd really like to compare notes on this.

I am able to get a static build working with some minor patching of the source. I don't see how a gnu autotools build could possibly work on Windows as is. When building shared, there are several defines for exporting (such as AP_RL_DECLARE_EXPORT, PROXY_DECLARE_EXPORT) that are in CMakeLists.txt and the .dsp files, but never get defined for GNU autotools. Even if this was fixed, libtool failed because needed dependency libraries weren't listed when it tried to create the dlls. Are there any real disadvantages to building Apache statically instead of dynamically loading shared modules?

Tried building mod_fastcgi, but just got a lot of errors. I downloaded the latest version from a git repository. Is there another version of the source that builds better on Windows and if so, where can it be found? Was able to add mod_fcgid to the httpd build directory and get everything to build statically together. Are there any other useful modules that might work with MinGW that users would recommend? I'm trying to put together a web server on Windows for local testing of some web pages and CGI (or FASTCGI scripts). Would like to test out database access (via ODBC) and user authentication too. Thanks.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7316
Location: Germany, Next to Hamburg

PostPosted: Wed 28 May '14 22:02    Post subject: Reply with quote

Some years ago I tried that too. And I ended up using Cygwin using the same commands as on my linux system.

However, did you run the buildconf script before configure?
Back to top
lm



Joined: 28 May 2014
Posts: 2
Location: US

PostPosted: Tue 17 Jun '14 15:24    Post subject: Reply with quote

James Blond wrote:
However, did you run the buildconf script before configure?


At the moment, I have it scripted to just run configure as is without buildconf. However, I did run buildconf and check if there were any differences (such as adding lines for mod_fcgid compilation) and created a patch to add before configure. Don't recall any issues running buildconf as long as apr and apr_util were in the same directory structure as apache. I am using msys, so that lets me run bash scripts.
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7316
Location: Germany, Next to Hamburg

PostPosted: Fri 20 Jun '14 13:57    Post subject: Reply with quote

Well you need those in the srclib folder!

in srclib you need
apr
apr-iconv
apr-util
pcre

optional, but recommended
openssl
zlib
Back to top


Reply to topic   Topic: Apache httpd with MinGW View previous topic :: View next topic
Post new topic   Forum Index -> Building & Member Downloads