phokz / mod-auth-external

External Authentication Module for Apache HTTP Server - mod_authnz_external
37 stars 14 forks source link

Use on Windows with Apache 2.2 #7

Closed GoogleCodeExporter closed 5 years ago

GoogleCodeExporter commented 9 years ago
"In theory it should now work on any operating system supported by Apache, 
including Windows. However, I do not know that anyone has tried this. If you 
experiment with this, please let us know the results."

I created a 32-bit build of the module at version 3.2.6 on Ubuntu 11.10 i386 
with default compiler flags.  My understanding is that Apache 2 has its own 
dynamic loader and can run module dynamic libs in a platform independent way?

Anyway, this build cannot be correctly loaded in 32-bit Apache 2.2 running on 
Windows 2008 Server R2.  Apache fails with error "not a valid Win32 
application" (or similar).

I haven't tried a Windows build yet but would probably have more success I 
imagine, or at least be able to pinpoint the error.

Original issue reported on code.google.com by tfly...@gmail.com on 14 Mar 2012 at 3:10

GoogleCodeExporter commented 9 years ago
I'm pretty sure you have to compile with the same compiler used to compile 
Apache, in this case that's Microsoft Visual C/C++. (the free downloadable 
version should be good enough)  You'd also probably want the Apache Lounge 
builds of Apache as the official builds use very old compilers and aren't good 
for much.

Original comment by r...@vnetworx.net on 9 Dec 2014 at 9:37