Re: Getting a / when regex should produce nothing

2010-04-27 Thread craig
On Apr 27, 2010, at 4:16 AM, André Warnier wrote: So, back to the basics, my interpretation : by default, consider any variable as global/shared and you'll generally stay out of trouble. Isn't it true that a variable declared (with my) inside of a sub (including a handler) starts its

Re: Getting a / when regex should produce nothing

2010-04-24 Thread craig
See what happens if you replace the 2 lines between the should bes with if ($article_file =~ /^([a-zA-Z0-9_-]*\.html)$/) {$article_file = $1} I've can't recall seeing 'undef my' before. my $error = undef; is more typical. How is this routine executed? Under ModPerl::Registry? cmac On Apr

Re: global variable

2010-02-04 Thread craig
Hi, IPC::MMA and its underlying MM library are written entirely in C. I originally got into this business when I read some user reviews that said that the predecessor module IPC::MM was the fastest module of its kind that they could find. IPC::MMA cleaned up several things in IPC::MM, including

Re: global variable

2010-02-03 Thread craig
Just thought to add: One of the most interesting uses of IPC::MMA is to create a shared memory in a PerlPostConfigHandler, and then use it to tie scalars or arrays or hashes in other modules into the shared memory. In write-seldom, read-mostly applications like the cache hash in Image::Size,

Re: $r-subprocess_env('REQUEST_URI') returns undef ?

2010-01-15 Thread craig
If $r scares you, are $c = $r-connection() and $s = $r-server() truly terrifying :-) cmac On Jan 15, 2010, at 4:08 PM, Tosh Cooey wrote: It's probably obvious, but $r kinda scares me. I guess I saw subprocess_env in the docs and so that's where I stopped... What a couple centimeters

Re: FreeBSD 7.2, mod_perl2 Apache2::Cookie (libapreq2)

2009-10-29 Thread craig
Mr. Sin, I can't tell from your email exactly what isn't working for you, so will assume that you have similar problems as Mr. N. From my experience, the problem may be FreeBSD + libapreq2 2.12. My site runs FreeBSD 6.3. I could not get libapreq2 2.12 and associated Perl linkages

Re: double mod_perl initialization

2009-10-05 Thread craig
Been away from my computer for several days :( Doesn't look like anyone is going to answer this. Maybe you missed some of the emails that Clinton Gormley and I were exchanging a while back. I've been using 'sudo apachectl graceful' on apache 2.2.11 and 2.2.13 with mod_perl 2.0.4 and 2.0.5 SVN

Re: double mod_perl initialization

2009-09-26 Thread craig
On Sep 25, 2009, at 10:36 AM, Jonathan Swartz wrote: As I understand it, the sole purpose of this double initialization is to make sure that graceful restarts will work. However, since I was a young mod_perl lad I've been taught never to rely on graceful restarts, and always to stop/start.

Re: double mod_perl initialization

2009-09-26 Thread craig
On Sep 26, 2009, at 4:17 AM, Clinton Gormley wrote: I'm using apache 2.2.9, mod_ssl 2.2.9 and mod_perl 2.04, and I still have problems with graceful-restart. You are 4 releases behind. Download 2.2.13 and I bet graceful will work for you. (Bet's off if you have something systemically

Re: Undefined symbol Perl_pad_sv building mp2 (all is well)

2009-09-04 Thread craig
Fred Moyer and Michael Peters were correct about not wanting to have 5.8.x libraries under perl 5.10.1. As soon as I built a 5.10.1 cleanly with no retained libraries, the undef's in Dynaload in mod_perl2 make test went away. The biggest remaining problem was getting apreq2-2.12 to build

Re: [mp2] Apache2::Reload missing in FreeBSD ports

2009-09-03 Thread craig
I run FreeBSD + Apache2 + mp2. CPAN 'test Apache::Reload' yields 'pass'. Subsequent CPAN 'test Apache2::Reload' wants to use the same module, so it says 'Has already been tested successfully'. cmac On Sep 3, 2009, at 3:59 AM, Foo JH wrote: Hello guys, I'm wondering if there is any1 using

Re: Undefined symbol Perl_pad_sv building mp2 (resolved but all not well)

2009-09-02 Thread craig
Hi Fred, Decided to look at the source found by your 'ack'. It turns out that, in file pad.c, someone in the perl 5.10.0 or 5.10.1 project decided that the Perl_pad_sv routine was only needed if -DDEBUGGING was specified for the Perl build. Fixed this by commenting out the #ifdef DEBUGGING at

Re: Undefined symbol Perl_pad_sv building mp2

2009-09-02 Thread craig
On Sep 2, 2009, at 6:21 AM, Michael Peters wrote: cr...@animalhead.com wrote: I have always included previous perl libraries in the @INC of new builds. And it has always worked, with the single exception of building mod_perl2 this time. All of the perl scripts and modules on my site work

Re: Undefined symbol Perl_pad_sv building mp2

2009-09-01 Thread craig
A bit more data on the problem reported below: /build/modperl-2.0 $ grep -r Perl_pad_sv * Binary file src/modules/perl/mod_perl.so matches /build/modperl-2.0 $ ll src/modules/perl/mod_perl.so -rwxr-xr-x 1 user wheel 1559168 Aug 29 21:22 src/modules/perl/ mod_perl.so /build/modperl-2.0 $ cd

Re: Undefined symbol Perl_pad_sv building mp2

2009-09-01 Thread craig
But this is the mod_perl mailing list. It is the place to which one sends reports of bugs or problems with mod_perl. I sent such a report, citing this undefined symbol when building mod_perl2. It is hard for me to imagine that the fact that I gave the perl build process a list of directories

Undefined symbol Perl_pad_sv building mp2

2009-08-29 Thread craig
-8-- Start Bug Report 8-- 1. Problem Description: I have upgraded to Apache 2.2.13 and Perl 5.10.1. Both seem to be working OK, although Apache with using my old mod_perl 2.04 that uses perl 5.8.9. make test in both the release mod_perl 2.0.4 and the

Re: RFC: Apache2::CloseKeepAlive

2009-08-27 Thread craig
On Aug 27, 2009, at 10:43 AM, Bill Moseley wrote: On Wed, Aug 26, 2009 at 3:43 AM, cr...@animalhead.com wrote: The short story is that it's a mod_perl2 mechanism for optimizing the KeepAlive option in the Apache2 server. The long story is at http://www.animalhead.com/CloseKeepAlive.html

RFC: Apache2::CloseKeepAlive

2009-08-26 Thread craig
I'm working toward contributing a module with this working title to CPAN, and would like your comments and advice. The short story is that it's a mod_perl2 mechanism for optimizing the KeepAlive option in the Apache2 server. The long story is at http://www.animalhead.com/CloseKeepAlive.html

Re: RFC: Apache2::CloseKeepAlive

2009-08-26 Thread craig
On Aug 26, 2009, at 7:03 AM, Perrin Harkins wrote: What's GP Perl? The general purpose Perl library is headed at /usr/local/lib/perl5 on my system. What I was asking is whether there's any reason to put Apache2::CloseKeepAlive in it, being as it's so specialized, or just copy it to a

Re: RFC: Apache2::CloseKeepAlive

2009-08-26 Thread craig
On Aug 26, 2009, at 9:05 AM, Perrin Harkins wrote: On Wed, Aug 26, 2009 at 11:41 AM, cr...@animalhead.com wrote: The general purpose Perl library is headed at /usr/local/lib/perl5 on my system. What I was asking is whether there's any reason to put Apache2::CloseKeepAlive in it, being as it's

Re: RFC: Apache2::CloseKeepAlive

2009-08-26 Thread craig
Including a note about how to do something in an installation dialog, for people who wouldn't otherwise know, is not controlling anything. If that's against CPAN principles, the principles need some work! cmac On Aug 26, 2009, at 9:30 AM, Perrin Harkins wrote: On Wed, Aug 26, 2009 at 12:21

Re: RFC: Apache2::CloseKeepAlive

2009-08-26 Thread craig
The installation process needs to know at least: 1. where the accompanying DB-building script should go 2. where the DB that the app builds should go How can such necessary things be determined, other than by asking the user? I was just going to add a note before or after these two queries,

Re: RFC: Apache2::CloseKeepAlive

2009-08-26 Thread craig
On Aug 26, 2009, at 11:44 AM, Michael Peters wrote: cr...@animalhead.com wrote: The installation process needs to know at least: 1. where the accompanying DB-building script should go Module::Build knows where to put bin/ or script/ files and it does so according to how Perl and CPAN are

What can a child_init do?

2009-02-18 Thread craig
Is there anything a mod_perl2 child_init phase can do to call attention to a problem? I moved a block of code from a post_config handler to a new child_init handler, without thinking much about the niceties of the move. The code contained a couple of 'die' statements, which I trust would

problem porting to threaded mode

2008-12-31 Thread craig
Trying to shift our largely mod_perl2 web site to an Apache2 threaded MPM and perl ithreads. The following works under the non-threaded prefork MPM: use DB_File; my @dbs; # array of hash references my @dbModTime; # mod times of db files my @dbfns; # array of database pathnames #

Re: [mp2] undefined symbol in make test with threaded Apache 2.2.11 RESOLVED

2008-12-29 Thread craig
-freebsd'. Thanks for your help, cmac On Dec 27, 2008, at 11:44 PM, Philip M. Gollucci wrote: Philip M. Gollucci wrote: Craig MacKenna wrote: On Dec 24 00:57, Philip M. Gollucci pgollu...@p6m7g8.com wrote: Subject: Re: [mp2] undefined symbol in make test with threaded Apache 2.2.11 If you

Info about mp2 and threaded MPMs

2008-12-29 Thread craig
I'm about to try a threaded MPM for my largely mod_perl2-based web site. Maybe my search skills are going downhill, but I haven't found much material about how to modify my scripts for the threaded environment. The first step is done, namely to minimize use of global variables. I'm pretty sure

Re: [mp2] undefined symbol in make test with threaded Apache 2.2.11

2008-12-24 Thread Craig MacKenna
On Dec 24 00:57, Philip M. Gollucci pgollu...@p6m7g8.com wrote: Subject: Re: [mp2] undefined symbol in make test with threaded Apache 2.2.11 cr...@animalhead.com wrote: Neither mod_perl 2.0.4 nor the current build modperl-2.0_20081223052020 If you're going to do that 'current build', I'd

Re: [mp2] undefined symbol in make test with threaded Apache 2.2.11

2008-12-23 Thread craig
As Adam Prime notes, 5.8.9 became the current stable Perl recently. It is the other new ingredient besides Apache 2.2.11. I don't normally introduce so many new things at once, but happen to be working through a new sandbox/developmental version of our website. One of the Apache developers

[mp2] undefined symbol in make test with threaded Apache 2.2.11

2008-12-22 Thread craig
This is my first attempt at using a threaded MPM. Sorry but I don't have time to try prefork build of Apache 2.2.11. Leaving town tomorrow but will monitor email for comments on this. Thanks, cmac www.animalhead.com -8-- Start Bug Report 8-- 1. Problem

content_type in SSI- or directly-called mp2 scripts

2008-12-16 Thread craig
My mod_perl2 scripts mostly fall into 2 categories: 1) scripts that are called by URL location, and generate complete content-pages 2) scripts that are called by SSI include virtual sequences in .html files, and generate part of a page In some cases scripts of type 1 directly call scripts

[mp2] make test errors

2008-11-14 Thread craig
-8-- Start Bug Report 8-- 1. Problem Description: Per suggestion made in this forum, I gave up on static build and am building dynamic. Now I get 2 errors in make test, plus undef errors during 'sudo make install' t/hooks/authen_basic1..4 #

Re: [mp2] build (make) error and 2 questions

2008-11-13 Thread craig
mention --enable-debug. Compiling some of the ssl stuff (in an Apache build without mod-perl) made warnings about prototypes... Thanks, Craig MacKenna www.animalhead.com

[mp2] build (make) error and 2 questions

2008-11-12 Thread craig
-8-- Start Bug Report 8-- 1. Problem Description: 1.1 attempting to static-build mod_perl 2.0.4 and apache 2.2.10, is the following warning right at the end of the Makefile.PL output worrisome? [warning] mod_perl static library will be built as

Re: Two failures in make test building mod_perl 2.0.3

2007-01-19 Thread craig
Hi tomás, Info is filled in below. One other Q: what is the protocol for when to reply to just one person (reply) vs. the whole list (reply all)? Best Regards, Craig On Jan 19, 2007, at 4:25 AM, [EMAIL PROTECTED] wrote (in part): Hm. Looks sane to me. But somehow 'localhost' seems to resolve

More on Apache2::Request does not foul up content length

2007-01-19 Thread craig
on the old (FreeBSD4) system. So of course the response to the form submission took several minutes. I will pursue this difference with my ISP and the author of the package. Sorry to have bothered the list about such a thing... Craig MacKenna Los Gatos, CA

Apache2::Request fouls up content length?

2007-01-18 Thread craig
by my hosting provider (Verio). Does this sound familiar? Could it be avoided by newer versions of any of the software? Craig MacKenna Los Gatos, CA

Re: Apache2::Request fouls up content length?

2007-01-18 Thread craig
. If not, where can I post one, so this can be fixed for other people? Thanks for your help, Craig MacKenna www.animalhead.com On Jan 18, 2007, at 5:26 PM, Jonathan Vanasco wrote: On Jan 18, 2007, at 8:14 PM, [EMAIL PROTECTED] wrote: You are correct. Turning off keepalive fixes the problem. (We're

Two failures in make test building mod_perl 2.0.3

2007-01-17 Thread craig
-8-- Start Bug Report 8-- 1. Problem Description: Two failures in make test building mod_perl 2.0.3 2. Used Components and their Configuration: *** mod_perl version 2.03 *** using /tmp/mod_perl-2.0.3/lib/Apache2/BuildConfig.pm *** Makefile.PL

Code Serialization and mod_perl

2006-10-05 Thread Craig Tussey
in advance for any responses. I appreciate your time. Craig Tussey [EMAIL PROTECTED] __ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com

Outgoing content-length apparently 0

2005-04-27 Thread Craig or Merikay MacKenna
) show the proper length in the log? Thanks to anyone who can help, Craig MacKenna Los Gatos, CA 408-353-5037

Re: Can't locate ../Functions/db.pl in @INC

2004-10-29 Thread Craig Moynes
contains: use lib qw(/usr/local/apache2/perl); 1; Not sure if this will work with your version of apache. Cheers, Craig On Tue, 26 Oct 2004 23:25:49 -0700 (PDT), mahboobeh soleimani [EMAIL PROTECTED] wrote: Hi every body. I have a apache 1.3.31 and mod_perl 1.28 and used Files *.pl

RE: Win32 build problems libapreq2-2.04_03-dev

2004-09-08 Thread Craig Dayton
references, the problem still exists. Windows XP Pro is having the exact same problem too. Thanks, Craig -Original Message- From: Randy Kobes [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 21:15 To: Craig Dayton Cc: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE

RE: Apache::DB ported to mp2

2004-04-09 Thread Craig Dayton
the compiler didn't like '-Gf'. I don't mind doing compile tests, if you need that support. -Craig -Original Message- From: Frank Wiles [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 08:17 To: Craig Dayton Cc: [EMAIL PROTECTED] Subject: Re: Apache::DB ported to mp2 Hi Craig, I

RE: Apache::DB ported to mp2

2004-04-09 Thread Craig Dayton
Thanks Randy, You got it. After adding '#define SIGINT 2' to DB.xs, it compiled just fine. -Craig -Original Message- From: Randy Kobes [mailto:[EMAIL PROTECTED] Sent: Friday, April 09, 2004 17:15 To: Craig Dayton Cc: 'Frank Wiles'; [EMAIL PROTECTED] Subject: RE: Apache::DB ported

RE: Apache::DB ported to mp2

2004-04-08 Thread Craig Dayton
Hi Frank, Thanks for the Update. In compiling with 'VS .Net 2003', the error shown below is generated. -Craig E:\Perl\cpan\build\Apache-DB-0.07nmake Microsoft (R) Program Maintenance Utility Version 7.10.3077 Copyright (C) Microsoft Corporation. All rights reserved. cl -c

cannot find -lperl?

2004-01-19 Thread Craig McMillon
Has anyone gotten this type of error when installing modperl: /usr/bin/ld: cannot find -lperl? -mod_perl-1.28 -apache_1.3.29 clm __ Do you Yahoo!? New Yahoo! Photos - easier uploading and sharing. http://photos.yahoo.com/ -- Reporting bugs:

/usr/bin/ld: cannot find -lperl(More Info.)

2004-01-19 Thread Craig McMillon
Better yet here's the complete error message: commmand: perl Makefile.PLAPACHE_SRC=/home/cmcmillo/src/apache_1.3.29 DO_HTTPD=1 USE_APACI=1 EVERYTHING=1 error: Error Output for sanity check cd ..; cc -DLINUX=22 -DMOD_PERL -DUSE_PERL_SSI -D_REENTRANT -DTHREADS_HAVE_PIDS

Re: /usr/bin/ld: cannot find -lperl(More Info.)

2004-01-19 Thread Craig McMillon
Sorry about just responding to you Stas and not the list(still getting use to that). Anyway yes, your suggestions below worked well. Thanks again. clm --- Stas Bekman [EMAIL PROTECTED] wrote: Craig McMillon wrote: Here it is Thanks perl -V Summary of my perl5 (revision 5.0 version 8