dorian wrote:
i'm not sure that this is an actual problem with Apache::Module itself, but
it seems to stem from mod_perl distribution's mod_perl.h here:
#ifdef PERL_THREADS
#define _INCLUDE_APACHE_FIRST
#endif
#ifdef _INCLUDE_APACHE_FIRST
#include apache_inc.h
#endif
the perl i built against was the stock debian/i386/unstable 5.8.0 which has
ithreads built in, although i had similar results with a source-built copy
on solaris9/sparc. the mod_perl version is 1.27. i found that if i explicitly
prepended the include for apache_inc.h in the xs, the module appeared to build
successfully.
strangely enough, the -DPERL_THREADS was being passed into the build, which
to my knowledge should have activated the include but i suppose i must be
missing something. i notice that the module hasn't been updated since 1999,
is there a replacement for its functionality that i don't know about?
I don't remember what was the outcome of the patch I've posted a long time
ago. I sent it after having the same problem.
Index: src/modules/perl/mod_perl.h
===
RCS file: /home/cvs/modperl/src/modules/perl/mod_perl.h,v
retrieving revision 1.116
diff -u -r1.116 mod_perl.h
--- src/modules/perl/mod_perl.h 23 May 2002 04:35:16 - 1.116
+++ src/modules/perl/mod_perl.h 14 Feb 2003 04:45:37 -
@@ -72,11 +72,8 @@
#endif
#ifdef PERL_THREADS
-#define _INCLUDE_APACHE_FIRST
-#endif
-
-#ifdef _INCLUDE_APACHE_FIRST
#include apache_inc.h
+#define _INCLUDE_APACHE_FIRST
#endif
#include EXTERN.h
__
Stas BekmanJAm_pH -- Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide --- http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com