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 exi
Thank you, AW, for a well-written summary of the aspect of
mod_perl that causes the most difficult/nasty bugs for people.
But you left out one important caveat which could scare away
more potential users than it saves.
The retention of values from previous executions applies
only to global variab
See what happens if you replace the 2 lines between the "should be"s
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 Ap
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
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, thi
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 mo
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 (mod_apreq2-200
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
fo
You can find changes about graceful restarts in many of the
version release notes in apache2. My memory is that 2.2.11
was OK for me.
Letter -Os means "optimize for size":
http://gcc.gnu.org/onlinedocs/gcc-2.95.3/gcc_2.html#SEC10
is the oldest gcc manual I could find, so the option has been
ar
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 difficu
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.
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
correct
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 Fr
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 we
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 l
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 to
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 /
On Aug 30, 2009, at 11:49 AM, Fred Moyer wrote:
On Sat, Aug 29, 2009 at 9:43 PM, wrote:
-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
-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
On Aug 27, 2009, at 10:43 AM, Bill Moseley wrote:
On Wed, Aug 26, 2009 at 3:43 AM, 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
Interesting. But, is ther
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 co
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,
that
So Perl 5.10.1 is out, and my Apache is a couple of releases old, and
the
latest mod_apreq2 failed testing from source so I can try it from the
FreeBSD ports. Which is close to critical mass to rebuild my site
software.
Does anyone reading this know the state of the next mod_perl2?
Like whe
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 PM,
On Aug 26, 2009, at 9:05 AM, Perrin Harkins wrote:
On Wed, Aug 26, 2009 at 11:41 AM, 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 so specialized,
or j
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 mod_perl
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
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
prevent
I would like to thank the people on this list who helped me get
my new CPAN module IPC::MMA up and running. Without
volunteers like those in this community, the technical world
would be a much poorer place.
If anyone would like to read the docs and/or try the module,
and send comments (probably
This is my first time replying to the list. I've seen
advice about not being able to share a filehandle opened
in a pre-fork stage before, but have two counter-examples:
1) I opened a log file for write/append in the open-logs
stage of a module, and was able to (flock and) write to it
in child p
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
# exe
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
hat such dependent directories contain
hyphenated elements like 'i386-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" wrote:
Subject: R
On Dec 24 00:57, "Philip M. Gollucci" 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 use revision n
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 sugge
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
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
-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
# Runn
please see below
On Nov 12, 2008, at 10:07 PM, Philip M. Gollucci wrote:
Fred Moyer wrote:
On Wed, Nov 12, 2008 at 9:30 PM, <[EMAIL PROTECTED]> wrote:
-8<-- Start Bug Report 8<--
1. Problem Description:
1.1 attempting to static-build mod_perl 2.0.4 and
-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 a
seconds 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
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
(possibly including an external
process initiated by the subject mod_perl2 handler) by
which this mod_perl handler can:
1. use the lengthy checking performed by Mail::CheckUser, and
2. allow the Apache2 server to maintain KeepAlive???
Thanks,
Craig MacKenna
www.animalhead.com
) ?
3. Is there a known bug for Apache2::Request vs. KeepAlive?
4. 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] w
req_module modules/mod_apreq2.so
That .so was also provided 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
-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 op
k you 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
ed to do, to make Apache hand off the output
from the script to mod_gzip properly, and (far less important) show the
proper length in the log?
Thanks to anyone who can help,
Craig MacKenna
Los Gatos, CA
408-353-5037
which 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 mo
\site\lib\Apache2\auto\libaprext\extralibs.ld' was found to contain
references to 'D:\Apache2\lib'. After correcting the invalid references, the
problem still exists.
Windows XP Pro is having the exact same problem too.
Thanks, Craig
>-Original Message-
&
Does anyone have an idea how to resolve either of the following errors when
building libapreq2-2.04_03-dev on either a Windows 2000 Server or on Windows
XP Pro (SP2)?
Thanks, Craig
Windows 2000 Server
Apache/2.0.49 mod_perl/1.99_15 perl/v5.8.4
The build process on W2K Server made it all the
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:
the makefile because 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: A
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.07>nmake
Microsoft (R) Program Maintenance Utility Version 7.10.3077
Copyright (C) Microsoft Corporation. All rights reserved.
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
> >
:52:08
@INC:
/etc/perl
/usr/local/lib/perl/5.8.2
/usr/local/share/perl/5.8.2
/usr/lib/perl5
/usr/share/perl5
/usr/lib/perl/5.8.2
/usr/share/perl/5.8.2
/usr/local/lib/site_perl
clm
--- Stas Bekman <[EMAIL PROTECTED]> wrote:
> Craig McMillon wr
I'm new to this so maybe what I'm about to say is
incorrect. If so please attempt to correct me if
possible.
Is it possible for me to select which version of perl
I use when building modperl? If so how would I do
that? Could I do this via the makefile?
Also I'm not attempting to install a binary
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 -
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: http://perl.apache.o
When I attempt to install mod_perl-1.99_12 and
apache_1.3.29 I receive an error.
System: Linux evelyn 2.2.20 #1 Sat Apr 20 11:45:28 EST
2002 i686
unknown
command:
perl Makefile.PL
APACHE_SRC=/home/cmcmillo/src/apache_1.3.29/src
DO_HTTPD=1 EVERYTHING=1 MP_DEBUG=1
error messages:
Reading Makef
How do i unsubscribe from this list? is there a delay when the unsubscribe email is
sent? it seems to not have aknowledged my unsubscribe request yet...
---
WinBot IRC client developer: http://www.winbot.co.uk
ChatSpike - The use
61 matches
Mail list logo