Errr, wouldn't I have to know exactly what functions from which includes were
actually being referenced in order to do that? I'm a pretty non-functional
coder at this point... I never actually coded in C at all.
(My last "language" was actually Pascal, which I prefer because of the strong
typing. If everyone had been using Pascal all these years instead of C, we'd
have never had to worry about buffer overruns!)
So how do I do this, figure out which ones are actually required by the code?
Mark
-------- Original Message --------
Subject: Re: [EMAIL PROTECTED] Compiling module under Windows for Apache 2.2.4 with
APXS.BAT/.PL
From: William A. Rowe, Jr. <[EMAIL PROTECTED]>
To: users@httpd.apache.org
Date: Wednesday, October 03, 2007 07:39:58 PM
Mark A. Craig wrote:
Actually, Bill, it kinda sorta does use APR:
Yup... it looks half ported; right up through ctype.h it looks like the
author had reduced the headers to what was available, and then surrendered.
I suspect that this is the typical kitchen sink; throw in every usual
header so that any feature is available. It might be worthwhile to comment
them all out and readd them one-by-one for the actual declarations that are
required by the code.
Witness, for example, the redundant sys/types.h :)
As I mention, comment them all out (I prefer #if 0 ... #endif for that sort
of thing) and start readding one-by-one, and possibly even state something
like /* for foo_fn() declaration */ explaining why that header is needed.
Bill
-------- Original Message --------
Subject: Re: [EMAIL PROTECTED] Compiling module under Windows for Apache
2.2.4 with APXS.BAT/.PL
From: William A. Rowe, Jr. <[EMAIL PROTECTED]>
To: users@httpd.apache.org
Date: Wednesday, October 03, 2007 03:41:57 PM
Mark A. Craig wrote:
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
mod_httpbl.c(360) : fatal error C1083: Cannot open include file:
'sys/socket.h': No such file or directory
apxs:Error: Command failed with rc=131072
So why am I missing this one, and what SDK do I hafta download to get
it?
You are there!!! You will be able to build 'many' modules.
Sadly this author isn't using the APR API (w/httpd) for socket io. There
is no win32 sys/socket.h. Essentially this is not a win32 ported (or
generally portable) module. Even on unix, sys/socket.h frequently
changes identity (which is why there is so much autoconf gunk in the
wheels of apr and httpd's ./configure).
Bill
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
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: [EMAIL PROTECTED]
" from the digest: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]