On Tue, Nov 02, 2004 at 08:37:42PM -0500, Geoffrey Young wrote:
> 
> > Did you try #include'ing mod_ssl.h to pick up the optional function
> > declarations rather than copy'n'pasting them?  It should work OK with
> > recent 2.0 releases.
...
> /apache/2.0.52/ssl/perl-5.8.5/include/mod_ssl.h:91:17: ssl.h: No such file
> or directory
> In file included from /apache/2.0.52/ssl/perl-5.8.5/include/mod_ssl.h:92,
>                  from SSLLookup.xs:5:
> 
> which I gather is because mod_perl does not include the
> -I/usr/include/openssl that apache does when I activate mod_ssl.  I can't
> find the list of includes in apxs or apr-config either, so I'm not sure how
> we could expect mod_perl to retain this information and pass it along in
> WriteMakefile.

> I'm not really the best at this kind of thing, so suggestions welcome.
> otherwise, I guess the declaration stays.

Fair enough, yes, it's probably in there somewhere but apxs in 2.0 is
not most helpful about this stuff...

> as an aside, do you know why mod_rewrite doesn't list mod_ssl as a
> predecessor when calling register_hooks?  it would seem that mod_rewrite
> could be loaded after mod_ssl and thus not get access to those optional
> functions.  but I've only used the optional stuff a few times, mainly with
> mod_include's stuff, so maybe things are different here.

The optional functions are registered in a pre_config hook and extracted
in a post_config hook which ensures that (I presume this is true for
mod_ssl, haven't checked).

joe

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to