Re: Compiling module under Windows for Apache 2.2.4 with APXS.BAT/.PL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Got a tiny bit further:

C:\Program Files\Apache Software Foundation\Apache2.2\bin>vsvars32.bat
Setting environment for using Microsoft Visual Studio 2005 x86 tools.

C:\Program Files\Apache Software Foundation\Apache2.2\bin>apxs -c -i -a mod_httpbl.c

cl /nologo /MD /W3 /O2 /D WIN32 /D _WINDOWS /D NDEBUG -I"C:\PROGRA~1\APACHE~1\Apache2.2\include" /c /Fomod_httpbl.lo mod_httpbl.c

mod_httpbl.c

C:\PROGRA~1\APACHE~1\Apache2.2\include\apr.h(92) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory

apxs:Error: Command failed with rc=131072

How do I resolve this include failure, and how many other includes will it fail to find? There are a LOT of includes in that .c file! I know, for a guy who once upon a time did programming, I'm such a complete newb. I haven't touched any code file that didn't end in .html since the 80s. :-/

Mark

-------- Original Message  --------
Subject: Re: Compiling module under Windows for Apache 2.2.4 with APXS.BAT/.PL
From: Mark A. Craig <mark.a.craig@xxxxxxxxx>
To: users@xxxxxxxxxxxxxxxx
Date: Wednesday, October 03, 2007 12:52:12 PM

I have the Visual Studio and C++ 2005 Express Edition that MS gave away free... would that work? I actually tried to first compile the module with that, but got so many errors from trying that I gave up. So what do I need to do to make the APXS feature work correctly? What's the vcvars32.bat file?

Oh... THERE it is!  Gotta give this another try....

Mark

-------- Original Message  --------
Subject: Re: Compiling module under Windows for Apache 2.2.4 with APXS.BAT/.PL
From: William A. Rowe, Jr. <wrowe@xxxxxxxxxxxxx>
To: users@xxxxxxxxxxxxxxxx
Date: Wednesday, October 03, 2007 09:24:40 AM

Mark A. Craig wrote:
I've been making futile efforts to compile a module, mod_httpbl.c, and
not having any luck.  I found and installed (or at least think I have)
the contents of apxs_win32.zip, with which William/Bill Rowe seems to
have had some involvement.

Thanks on that are to Randy Kobes :)

However, when I try to follow the
recommended instructions for compiling this module, it fails with
various errors.  Along the way I discovered that apxs.bat used a
long-filename reference to perl.exe, but it wasn't properly quoted and
it was failing to find perl.exe, so I had to actually edit apxs.bat and
change the reference to 8.3 format.

The command I'm instructed to use to compile it is:

apxs -c -i -a mod_httpbl.c

When I try this from a Command window in \bin\ and the .c file in that
same directory, I get the following response:

cl  /nologo /MD /W3 /O2 /D WIN32 /D _WINDOWS /D NDEBUG
-I"C:\PROGRA~1\APACHE~1\Apache2.2\include"  /c /Fomod_httpbl.lo
mod_httpbl.c

'cl' is not recognized as an internal or external command,
operable program or batch file.
apxs:Error: Command failed with rc=65536

Is it going to be practical to compile this module?  I may be in far
over my head.

If you don't have a VC compiler, and you don't run the vcvars32.bat file
first, it's not going to find a cl.exe to run.


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
  "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux