Hi Pachi -
I'm CC-ing the mod_cplusplus users list (we can take it off users@httpd
if you like). I can help out later today on this, in the mean time can yo=
u
send me the version of apache and mod_cplusplus you are using (from cvs?)=
.
thanks -
John K. Sterling
>-- Original Message --
>Subject: httpd crash at startup with custom c++ (mod_cplusplus) module
>From: Pachi Sucunza <pa...@sc...>
>To: us...@ht..., jo...@st...
>Date: 26 Aug 2002 16:45:38 +0200
>
>
>Hi everyone
>
>I have written an Apache module in C++ (using mod_cplusplus...
>http://modcplusplus.sourceforge.net/ )
>The problem is that I can't get any C++ module working, the httpd proces=
s
>dies right after initialization, without any complaint or message (in st=
dout
>or any of the log files).
>
>I'll try to explain more thoroughly the situation:
>- I'm running Linux - Debian 2.2 (potato), kernel 2.2.19-smp on a 2x1GHz=
> Intel Pentium III. I use Apache 2.0.40. mod_cplusplus is the latest ve=
rsion
>(1.0.2).
> My compiler is gcc 2.95.2 (the one packaged by Debian).
>- I configured and compiled Apache, and mod_cplusplus, without problems.=
>- I changed httpd.conf accordingly, to load mod_cplusplus and my module
> (as in the mod_cplusplus sample configuration files), copied modules
in
>the
> "modules" directory, etc.
>- When I launch httpd, the mod_cplusplus initialization is done, and the=
n
>the one
> in my custom module. After this (FIRST initializations), the server di=
es
>without
> any message.
>- If I just load mod_cplusplus module, but none of the C++ modules, the
server
> doesn't die (but it's not very useful... :)
>- If I launch apache with the "-X" option (single-process mode), EVERYTH=
ING
>works
> PERFECTLY: mod_cplusplus, mod_cplusplus samples, and my module. That's=
>why I think
> that the setup (httpd.conf) is right, and that my compilation and link=
ing
>seem
> correct, too.. (?)
> With that switch, mod_cplusplus' and my module's initialization are ca=
lled
>the second
> time, and everything starts working OK.
>- I've tried different settings to compile Apache (--enable-rule=3DSHARE=
D_CORE,
> --enable-module=3Dmost --enable-mods-shared=3Dmost, different MPM's...=
),
all
> of them with the same results.
>- I've tried all of this in a non-SMP machine, also with the same result=
s.
>- I've reduced my module to a minimum, just a few "pRequest->rputs( ...
);",
> content-type, etc.. in the "handler()" method. So I think it cant't be=
>(for the
> moment :) a bug in my code.
>- With the mod_cplusplus sample modules, the result are always the same
as
>with my
> little module.
>
>Any hints? Anyone had any similar problem, even if not using mod_cpluspl=
us?
>Could it be a compiling/linking problem? Or with libraries?
>
>Any help would be *HIGHLY* appreciated, as I don't know what else can I
try...
>
>Best regards,
>
>Pachi.
>
>
|