Re: Apache::Module installation issues

2003-02-14 Thread Geoffrey Young


dorian wrote:

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.


ah, so it's actually a problem with the mod_perl distribution then?


well, maybe not.

try this patch

http://marc.theaimsgroup.com/?l=apache-modperl-devm=98295430720401w=2

as you can see from the rest of the thread, doug applied it but it looks as 
if Apache::Module hasn't had a release since then.

HTH

--Geoff



Re: Apache::Module installation issues

2003-02-13 Thread Stas Bekman
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



Re: Apache::Module installation issues

2003-02-13 Thread dorian
 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.

ah, so it's actually a problem with the mod_perl distribution then?

i'm actually curious as to where apache_inc.h is supposed to be included,
if threads aren't defined.

.dorian