Re: strange compile error from CVS

2002-05-18 Thread Doug MacEachern
On Sat, 18 May 2002, Dave Rolsky wrote: > after syncing up from CVS just now I get this during the compile: what version of apache? should be at least 2.0.36 i'll be updating Makefile.PL to make sure it is at least that before _02. ---

strange compile error from CVS

2002-05-18 Thread Dave Rolsky
after syncing up from CVS just now I get this during the compile: cc -c -I/home/autarch/modperl-2.0/src/modules/perl -I/home/autarch/modperl-2.0/xs -I/usr/local/apache2/include -DDEBIAN -fno-strict-aliasing -I/usr/local/include -DMOD_PERL -O2 -DVERSION=\"0.01\" -DXS_VERSION=\"0.01\" -fPIC "-I/u

Re: And some strangeness with dir_config

2002-05-18 Thread Dave Rolsky
On Sat, 18 May 2002, Doug MacEachern wrote: > Apache->request is deprecated. its error-prone and hurts performance when > using threaded MPMs, since it has to use thread local storage. > CGI.pm can be changed not to use it. why does mason use it when your > handler is passed $r ? Because we ha

Re: And some strangeness with dir_config

2002-05-18 Thread Doug MacEachern
On Sat, 18 May 2002, Dave Rolsky wrote: > For some reason, Apache->request->dir_config returns an empty table (no > keys or values) even though Apache->server->dir_config has the revelant > config info. the port from the 1.x Perl{Set,Add}Var directive handler code missed a bit of logic, fixed

Re: And some strangeness with dir_config

2002-05-18 Thread Doug MacEachern
On Sat, 18 May 2002, Dave Rolsky wrote: > More follow up. > > When $c is an APR::Table object, this code: > > while (my ($k, $v) = each %$c) > { > warn " $k => $v\n"; > } > > prints > > MasonAllowGlobals => $Schema > > 3 times over, instead of print $Schema, $Us

Re: And some strangeness with dir_config

2002-05-18 Thread Doug MacEachern
On Sat, 18 May 2002, Dave Rolsky wrote: > ok, I just discovered this > > PerlOptions +GlobalRequest > > which fixes my previous problem, though it seems that maybe the default > should be for this to be on, at least when Apache::compat is loaded, and > maybe all the time since CGI.pm needs it.

Re: And some strangeness with dir_config

2002-05-18 Thread Dave Rolsky
On Sat, 18 May 2002, Dave Rolsky wrote: > On Sat, 18 May 2002, Dave Rolsky wrote: > > > Now my new problem is that given this config: > > > > PerlSetVar MasonArgsMethod CGI > > > > PerlSetVar MasonAllowGlobals $Schema > > PerlAddVar MasonAllowGlobals $UserSession > > PerlAddVar MasonAllow

Re: And some strangeness with dir_config

2002-05-18 Thread Dave Rolsky
On Sat, 18 May 2002, Dave Rolsky wrote: > Now my new problem is that given this config: > > PerlSetVar MasonArgsMethod CGI > > PerlSetVar MasonAllowGlobals $Schema > PerlAddVar MasonAllowGlobals $UserSession > PerlAddVar MasonAllowGlobals $AdminSession > > PerlModule HTML::Mason::Apache

Re: Does Apache->request work?

2002-05-18 Thread Doug MacEachern
On Sat, 18 May 2002, Dave Rolsky wrote: > So now that I'm not segfaulting any more, the problem I'm having is with > the "Apache->request" method, which seems to always return undef, even > during a request. for any location that uses Apache->request, you need to configure: PerlOptions +G

And some strangeness with dir_config

2002-05-18 Thread Dave Rolsky
ok, I just discovered this PerlOptions +GlobalRequest which fixes my previous problem, though it seems that maybe the default should be for this to be on, at least when Apache::compat is loaded, and maybe all the time since CGI.pm needs it. Now my new problem is that given this config: PerlS

Does Apache->request work?

2002-05-18 Thread Dave Rolsky
Ok, my previous problem has been solved. Note to others, some of the beta versions of ExtUtils::MakeMaker may not work with modperl-2.0. However, the very latest, 5.95_01, seems fine. So now that I'm not segfaulting any more, the problem I'm having is with the "Apache->request" method, which se

Re: [Win32] modperl2 and threads experiments

2002-05-18 Thread Doug MacEachern
On Thu, 18 Apr 2002, Alessandro Forghieri wrote: > Greetings. > > I am experimenting with the (alpha level, I know) thread support of modperl2 > on winnt. alpha yes, waiting for people such as your self to help find / work out bugs. that and perl-5.8.0-tobe has fixed many problem with ithread

Re: method handlers broken in latest CVS?

2002-05-18 Thread Doug MacEachern
On Sat, 18 May 2002, Dave Rolsky wrote: > CCFLAGS = ... -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 that's the problem. these are supposed to be ripped out. can you mail me (off the list), that Makefile and your Config.pm? -

Re: method handlers broken in latest CVS?

2002-05-18 Thread Dave Rolsky
On Sat, 18 May 2002, Doug MacEachern wrote: > what about 'make test' ? I actually hadn't run that yet, in my zeal to play with Mason & mod_perl 2 ;) But they pretty much all fail. waiting for server to start: ok (waited 2 secs) server localhost:8529 started server localhost:8530 listening (Tes

Re: method handlers broken in latest CVS?

2002-05-18 Thread Doug MacEachern
On Fri, 17 May 2002, Dave Rolsky wrote: > Nope, looks like any "$r" method blows chunks. Even trying > "$r->can('uri')" dies. what about 'make test' ? my first guess is that this is largefiles related. but normally if lfs is the problem, modperl will blow up before it has a chance to call i