Hi,
I tried but still gives
perl -MApache2::Request -e 1
Can't load '/usr/local/lib64/perl5/5.32/auto/APR/Request/Apache2/Apache2.so'
for module APR::Request::Apache2:
/usr/local/lib64/perl5/5.32/auto/APR/Request/Apache2/Apache2.so: undefined
symbol: apreq_handle_apache2 at /
c.so.6 => /lib64/libc.so.6 (0x7f2125073000)
libuuid.so.1 => /lib64/libuuid.so.1 (0x7f212506a000)
libcrypt.so.2 => /lib64/libcrypt.so.2 (0x7f212503)
libm.so.6 => /lib64/libm.so.6 (0x7f2124f53000)
/lib64/ld-linux-x86-64.so.2 (0x7f212565b000
Thanks very much!
Charles
From: Steve Hay
Sent: 22 February 2021 14:25
To: Charles Pigott
Cc: modperl@perl.apache.org
Subject: Re: SIGSEGV crash due to undefined behaviour when calling perl_parse
On Fri, 19 Feb 2021 at 09:25, Charles Pigott wrote:
>
>
On Fri, 19 Feb 2021 at 09:25, Charles Pigott wrote:
>
>
> Hi,
>
> TL;DR: mod_perl is using perl_parse() incorrectly and not NULL-terminating
> the argv array passed to it.
>
> I've attached my suggested patch.
Thanks for the patch. I've committed this to the mod_perl trunk
(https://svn.apache.or
) it stops being reproducible. Such is undefined behaviour and invalid
memory accesses, I suppose, but quite irritating.
I've attached my suggested patch.
See also Ubuntu bug report -
https://bugs.launchpad.net/ubuntu/+source/libapache2-mod-perl2/+bug/1915959
I don't believe it's
On Fri, 16 Jun 2017 11:59:14 -0700
t...@ketro.com wrote:
> Hey there, I'm getting random but sequential internal server errors,
> which Apache logs showing:
>
> Undefined subroutine &UNIVERSAL::ref::_hook called at
> /usr/local/lib/perl5/site_perl/5.24.1/x86_64-li
Hey there, I'm getting random but sequential internal server errors,
which Apache logs showing:
Undefined subroutine &UNIVERSAL::ref::_hook called at
/usr/local/lib/perl5/site_perl/5.24.1/x86_64-linux-thread-multi/ModPerl/RegistryCooker.pm
line 288
After refreshing the browser, the e
s/libtool.mk
for an example of how to patch this.
If you fail to patch libtool, the error below is exactly what you will see:
> /tmp/mod_perl-2.0.8/src/modules/perl/mod_perl.so: Undefined symbol
> "modperl_io_perlio_restore_stdout"
I just ran into this myself a few weeks ago
Bill Moseley wrote:
I'm printing like this:
my $octets = 'Быстрая коричневая лиса चाँद पर';
$r->log->warn( $octets );
$r->log->warn( Encode::decode_utf8( $octets ) );
print STDERR $octets;
But what I get in the logs is this:
[Tue Sep 23 09:12:07 2014] [warn] [client 10.5.24.82]
\xd0\x91\xd
I'm printing like this:
my $octets = 'Быстрая коричневая лиса चाँद पर';
$r->log->warn( $octets );
$r->log->warn( Encode::decode_utf8( $octets ) );
print STDERR $octets;
But what I get in the logs is this:
[Tue Sep 23 09:12:07 2014] [warn] [client 10.5.24.82]
\xd0\x91\xd1\x8b\xd1\x81\xd1\x82\
mod_perl.so into server:
/tmp/mod_perl-2.0.8/src/modules/perl/mod_perl.so: Undefined symbol
"modperl_io_perlio_restore_stdout"
2. Used Components and their Configuration:
*** mod_perl version 2.08
*** using /tmp/mod_perl-2.0.8/lib/Apache2/BuildConfig.pm
*** Makefile.PL
> httpd: Syntax error on line 13 of .../t/conf/httpd.conf: Cannot load
> .../src/modules/perl/mod_perl.so into server: rtld: 0712-001 Symbol
> MUTABLE_CV was referenced\n from module
> .../src/modules/perl/mod_perl.so(), but a runtime definition\n of
> the symbol was not found.
We disco
Here are a few more 'make test'results:
Perl 5.8.8/Apache 2.2.22/mod_perl 2.0.4:
All t/apr-ext/* testcases successful
Perl 5.8.8/Apache 2.2.22/mod_perl 2.0.6 rc5:
Test server fails to start:
Can't load '.../blib/arch/auto/ModPerl/Const/Const.so' for module
ModPerl::Const: rtld: 0712-001 Symbo
On 04/07/2012 12:36 AM, Fred Moyer wrote:
> RC3 is now available - see d...@perl.apache.org for the link.
I get similar results for RC5.
Can't load
'/home/user/tmp/mod_perl-2.0.6-rc5/blib/arch/auto/APR/Brigade/Brigade.so' for
module APR::Brigade: rtld: 0712-001 Symbol modperl_croak was referenc
Do you have another set of APR libraries installed, perhaps with the packaging
system that comes with AIX? It looks like mod_perl was built against a
different set of APR libs than is being loaded at runtime.
> Symbol modperl_hash_tied_object
> was referenced
> from module
> /home/user/tmp/mod_
1. Problem Description:
On AIX 5.3, with both mod_perl 2.0.5 and 2.0.6-rc2,
"perl -e 'use Apache2::Request;'" fails because the loader cannot find
runtime definitions for several symbols:
"Symbol modperl_hash_tied_object was referenced from module
/usr/local/perl/lib/site_perl/5.14.2/aix-th
32.el5_6.3
mod_perl-2.0.4-6.el5
mod_perl-devel-2.0.4-6.el5
If I build my own
mod_perl-2.0.6-0
mod_perl-devel-2.0.6-0
to replace 2.0.4 and install it, I get the following after a
http restart:
Cannot load /etc/httpd/modules/mod_perl.so into server:
/etc/httpd/modules/mod_perl.so: undefi
Recompiling perl and producing a shared library seems to have worked. Thanks!
-Original Message-
From: Dave Hodgkinson [mailto:daveh...@gmail.com]
Sent: Wednesday, January 25, 2012 3:50 PM
To: Jacobs, David (NIH/NCI) [C]
Cc: modperl@perl.apache.org
Subject: Re: mod_perl.so: undefined
o: Dave Hodgkinson
> Cc: modperl@perl.apache.org
> Subject: RE: mod_perl.so: undefined symbol: PL_tainting
>
> I thought it did by default... Do you have a link to how to do that?
>
>
> -Original Message-
> From: Dave Hodgkinson [mailto:daveh...@gmail.com]
> Sent:
: Wednesday, January 25, 2012 2:45 PM
To: Dave Hodgkinson
Cc: modperl@perl.apache.org
Subject: RE: mod_perl.so: undefined symbol: PL_tainting
I thought it did by default... Do you have a link to how to do that?
-Original Message-
From: Dave Hodgkinson [mailto:daveh...@gmail.com]
Sent: Wednesday
I thought it did by default... Do you have a link to how to do that?
-Original Message-
From: Dave Hodgkinson [mailto:daveh...@gmail.com]
Sent: Wednesday, January 25, 2012 2:24 PM
To: Jacobs, David (NIH/NCI) [C]
Cc: modperl@perl.apache.org
Subject: Re: mod_perl.so: undefined symbol
Have you compiled perl with libperl.so?
On 25 Jan 2012, at 18:41, Jacobs, David (NIH/NCI) [C] wrote:
>
> Please help. After banging my head for a while, and trying in vain to find
> an answer from google, I am in need of some assistance.
>
> This is on rhel5, and has the redhat perl 5.8.8
de a running modperl server. If
you change your code to use APR::Request::Magic, it'll
work in both contexts.
HTH
- Original Message
> From: Mark Hedges
> To: modperl@perl.apache.org
> Sent: Thu, February 3, 2011 4:06:59 PM
> Subject: undefined symbol modperl_xs_sv2request_
load
> '/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/APR/Request/Apache2/Apache2.so'
> for module APR::Request::Apache2:
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/APR/Request/Apache2/Apache2.so:
> undefined symbol: modperl_xs_sv2request_rec at
&
x-thread-multi/auto/APR/Request/Apache2/Apache2.so'
> for module APR::Request::Apache2:
> /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/APR/Request/Apache2/Apache2.so:
> undefined symbol: modperl_xs_sv2request_rec at
> /usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoa
equest::Apache2:
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/APR/Request/Apache2/Apache2.so:
undefined symbol: modperl_xs_sv2request_rec at
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
# at /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/Apache2/Req
.so'
for module APR::Request::Apache2:
/usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi/auto/APR/Request/Apache2/Apache2.so:
undefined symbol: modperl_xs_sv2request_rec at
/usr/lib/perl5/5.8.8/i386-linux-thread-multi/DynaLoader.pm line 230.
# at /usr/lib/perl5/site_perl/5.8.8/i386-l
ch to perl 5.10.1 and perlbugged it (perl
#68986). I think it remains necessary to prevent the "Undefined
symbol Perl_pad_sv". It now reads "in pad.c, move '#ifdef DEBUGGING'
from line 915 to line 941".
Sorry to have made so much noise on the list getting there.
I&
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
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 well under the new 5.10.1.
Pure Perl modules should w
dn't watch carefully.)
make test no longer gets the "Undefined symbol Perl_pad_sv".
Unfortunately it now fails in a different way:
==
animalhead:/build/mod_perl-2.0.4 $ make test
cd "src/modules/perl" &a
On Tue, Sep 1, 2009 at 10:14 PM, wrote:
> 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.
Right, but if you are mixing major version
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
emails...
>>>>
>>>> Perl_pad_sv is in there. How did you install 5.10.1?
>>>>
>>>> ph...@harpua ~/perl-5.10.1 $ ack Perl_pad_sv
>>>> embed.h
>>>> 638:#define pad_sv Perl_pad_sv
>>>> 2958:
Perl_pad_sv
>>
>> pad.c
>> 927:Perl_pad_sv(pTHX_ PADOFFSET po)
>>
>> proto.h
>> 2386:PERL_CALLCONV SV* Perl_pad_sv(pTHX_ PADOFFSET po);
>>
>>
>>>
>>> cmac
>>>
>>>> On Aug 30, 2009, at 11:49 AM, Fred
t 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 u
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.
Have you rebuilt your mod_perl 2.0.4 instance from scratch using
5.10.1? Undefined s
ing my old mod_perl 2.04 that uses perl 5.8.9.
Have you rebuilt your mod_perl 2.0.4 instance from scratch using
5.10.1? Undefined symbol warnings like this usually mean you are
trying to use a version of mod_perl that has been built with another
perl binary.
Suggest running make clean, then:
.04 that uses perl 5.8.9.
Have you rebuilt your mod_perl 2.0.4 instance from scratch using
5.10.1? Undefined symbol warnings like this usually mean you are
trying to use a version of mod_perl that has been built with another
perl binary.
Suggest running make clean, then:
perl Makefile.PL MP_APXS=/pa
oad /build/
modperl-2.0/src/modules/perl/mod_perl.so into server: /build/
modperl-2.0/src/modules/perl/mod_perl.so: Undefined symbol "Perl_pad_sv"
2. Used Components and their Configuration:
*** mod_perl version 2.05
*** using /build/modperl-2.0/lib/Apache2/BuildConfig.pm
***
On Tue, Apr 21, 2009 at 01:30:58PM -0400, Perrin Harkins wrote:
> On Tue, Apr 21, 2009 at 12:22 PM, Roberto C. Sánchez
> wrote:
> > So, on a lark I tried moving the "PerlModule Example::Image" from the
> > .htacess file to the virtual host configuration. I then restarted
> > apache. So far, it s
On Tue, Apr 21, 2009 at 12:22 PM, Roberto C. Sánchez
wrote:
> So, on a lark I tried moving the "PerlModule Example::Image" from the
> .htacess file to the virtual host configuration. I then restarted
> apache. So far, it seems to have been working for several days. In the
> past, the problem wo
On Tue, Apr 14, 2009 at 01:56:57PM -0400, Perrin Harkins wrote:
> On Tue, Apr 14, 2009 at 1:34 PM, Roberto C. Sánchez
> wrote:
> > On Tue, Apr 14, 2009 at 01:21:09PM -0400, Perrin Harkins wrote:
> >> On Tue, Apr 14, 2009 at 12:48 PM, Roberto C. Sánchez
> >> wrote:
> >> > As far as loading the mod
On Wed, Apr 15, 2009 at 10:29:20AM +0200, Torsten Foertsch wrote:
>
> Ok, then how about checking if your module is really loaded.
> Apache2::Status provides that or you could probably use this
> PerlResponseHandler (untested):
>
>
> SetHandler modperl
> PerlResponseHandler "sub {
On Wed 15 Apr 2009, Roberto C. Sánchez wrote:
> > Would it be possible to post your module? Perhaps you forgot
> > the "package" declaration?
>
> --8<-->8--
>
> package Example::Image;
Ok, then how about checking if your module is really loaded.
Apache2::Status provides th
On Tue, Apr 14, 2009 at 07:48:49PM +0200, Torsten Foertsch wrote:
> On Tue 14 Apr 2009, Roberto C. Sánchez wrote:
> > I am currently using the latter call everywhere and it is still
> > generating the "Undefined subroutine" error.
>
> Would it be possible to post
not sure what you mean by this.
Well, read up about exporting and then it should make more sense.
Perl has namespaces, and when you export a sub you need to export it
to the namespace where you want to call it, which is Mason in this
case.
> I am currently using the latter call everywhere and it is
On Tue 14 Apr 2009, Roberto C. Sánchez wrote:
> I am currently using the latter call everywhere and it is still
> generating the "Undefined subroutine" error.
Would it be possible to post your module? Perhaps you forgot
the "package" declaration?
Torsten
--
Need pro
You're defining the sub in a package, so you either have to
> export it or call it with the fully-qualified path, like you do in the
> second case.
>
I have used the first syntax and have not noticed a different in the
prevalence of the "Undefined subroutine" error betw
On Tue, Apr 14, 2009 at 12:48 PM, Roberto C. Sánchez
wrote:
> As far as loading the module, I have tried:
>
> - "PerlModule Example::Image" in .htaccess
> - "use Example::Image;" in the main HTML::Mason component
Either of those should be ok. If you decide to export the sub later,
you'd need t
On Tue, Apr 14, 2009 at 12:36:25PM -0400, Perrin Harkins wrote:
> On Tue, Apr 14, 2009 at 8:38 AM, Roberto C. Sánchez
> wrote:
> > OK, so the changes to include the mod_include and mod_disk_cache on the
> > production server did not do the trick. The problem persists.
>
> I think it's all about
On Tue, Apr 14, 2009 at 8:38 AM, Roberto C. Sánchez
wrote:
> OK, so the changes to include the mod_include and mod_disk_cache on the
> production server did not do the trick. The problem persists.
I think it's all about the way you export your function, but you
haven't answered my question about
On Mon, Apr 13, 2009 at 10:12:27PM -0400, Perrin Harkins wrote:
>
> Are they really identically configured? Are you sure there isn't a
> difference in startup.pl or in MaxRequestsPerChild or something like
> that?
>
OK, so the changes to include the mod_include and mod_disk_cache on the
producti
On Mon, Apr 13, 2009 at 10:54 PM, Roberto C. Sánchez
wrote:
> The entire Example/Image.pm:
I don't see you exporting get_image_data. Do you call it with a
fully-qualified name then? e.g. Example::Image::get_image_data().
- Perrin
On Mon, Apr 13, 2009 at 10:12:27PM -0400, Perrin Harkins wrote:
>
> In your Image.pm module, do you declare a package name? Do you export
> get_image_name()? How do you load this module in your new Mason
> setup?
>
The entire Example/Image.pm:
--8<-->8--
package Exampl
On Mon, Apr 13, 2009 at 8:21 PM, Roberto C. Sánchez
wrote:
> I've been dealing with trying to figure out an "Undefined subroutine"
> error on one of my sites. At first I thought it was something to do
> with Apache::ASP, so I sent a message requesting help to
So,
I've been dealing with trying to figure out an "Undefined subroutine"
error on one of my sites. At first I thought it was something to do
with Apache::ASP, so I sent a message requesting help to that list:
http://mail-archives.apache.org/mod_mbox/perl-asp/200811.mbox/thread
Dropped back in configuration and component programs to a working
combination, then advanced in smaller steps than I had done before.
You were correct, Mr G, in your prediction that the lib tree was
involved.
The 'Undefined symbol "PL_markstack_ptr"' in the mod_perl2 &
Philip M. Gollucci wrote:
Craig MacKenna wrote:
On Dec 24 00:57, "Philip M. Gollucci" wrote:
Subject: Re: [mp2] undefined symbol in make test with threaded Apache
2.2.11
If you post your ./Configure for perl, ./configure for httpd, and perl
Makefile.PL for mod_perl, I'll run i
Craig MacKenna wrote:
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 '
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 th
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 numbers of SVN
instead of the data.
"PL_markstack_ptr"
This isn't perl 5.8.8 vs perl 5.8.9 related, if you diff the trees, only 1
l
cr...@animalhead.com wrote:
Oooh your os? Was that your machine doing something bad as you were
typing?
/me is a FreeBSD person (see the .sig below)
I won't be doing development for most of a week, but if you have any
other questions, I'll be monitoring email. Is there anything else
I shoul
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
"PL_markstack_ptr"
Thats a perl function its irrelevant of httpd versions. Are you use you are
using the /usr/local/bin/perl below ?
*** /usr/local/bin/perl -V
Summary of my perl5 (revision 5 version 8 subversion 9) configuration:
Platform:
osname=freebsd, osvers=6.3-release,
Oooh my
tpd.conf -D APACHE2 -D PERL_USEITHREADS
using Apache/2.2.11 (event MPM)
waiting 120 seconds for server to start: .httpd: Syntax error on line
17 of /build/mod_perl-2.0.4/t/conf/httpd.conf: Cannot load /build/
mod_perl-2.0.4/src/modules/perl/mod_perl.so into server: /build/
mod_perl-2.0.4/
n; modperl@perl.apache.org
Subject: Re: Apache2::Request undefined symbol
Mark Hedges wrote:
> That's a normal thing. All installed modules put their config into
> mods-available. Then you use `a2enmod` to manage those symlinks and
> turn them on or off in mods-enabled.
+1
I believe all De
Mark Hedges wrote:
That's a normal thing. All installed modules put their
config into mods-available. Then you use `a2enmod` to
manage those symlinks and turn them on or off in
mods-enabled.
+1
I believe all Debian-based distributions have done this with Apache 2
for a few years now.
It s
7;t load mod_apreq2.so.
>
> Thanks for your help, anyway.
>
> -Original Message-
> From: Heiko Jansen [mailto:[EMAIL PROTECTED]
> Sent: Monday, 7 July 2008 5:15 PM
> To: modperl@perl.apache.org
> Subject: Re: Apache2::Request undefined symbol
>
>
>
> Am M
en the server started, it
didn't load mod_apreq2.so.
Thanks for your help, anyway.
-Original Message-
From: Heiko Jansen [mailto:[EMAIL PROTECTED]
Sent: Monday, 7 July 2008 5:15 PM
To: modperl@perl.apache.org
Subject: Re: Apache2::Request undefined symbol
Am Montag, den 07.07.2008, 08
ookup error:
>
> /usr/lib/perl5/auto/APR/Request/Apache2/Apache2.so: undefined symbol:
> apreq_handle_apache2'.
>
> I ran 'nm' on libapreq2.so.3 and it returned
> "nm: /usr/lib/libapreq2.so.3: no symbols".
>
> Can anyone help with this?
Did you put
LoadModule apreq_module modules/mod_apreq2.so
in your httpd.conf?
Heiko
I installed the library package 'libapreq2' on an Ubuntu 7.10 distro,
and tried dereferencing the 'Apache2::Request' module in a mod_perl
script, but it crashed with '/usr/sbin/apache2: symbol lookup error:
/usr/lib/perl5/auto/APR/Request/Apache2/Apa
Hi Folks
Copying this to the list...
Forwarded Message
> From: Ron Savage <[EMAIL PROTECTED]>
> To: Heiko Jansen <[EMAIL PROTECTED]>
> Subject: Re: mod_perl V 2.0.4 and undefined symbol: boot_DynaLoader
> Date: Tue, 20 May 2008 11:24:34 +1000
>
>
Am Montag, den 19.05.2008, 19:34 +1000 schrieb Ron Savage:
> of /home/ron/httpd/prefork/conf/httpd.conf: Cannot
> load /home/ron/httpd/prefork/modules/mod_perl.so into
> server: /home/ron/httpd/prefork/modules/mod_perl.so: undefined symbol:
> boot_DynaLoader
> <===8><===&
nf/httpd.conf -D APACHE2 -D
PERL_USEITHREADS
using Apache/2.2.8 (prefork MPM)
waiting 120 seconds for server to start: .httpd: Syntax error on line 33
of /home/ron/mod_perl-2.0.4/t/conf/httpd.conf: Cannot
load /home/ron/mod_perl-2.0.4/src/modules/perl/mod_perl.so into
server: /home/ron/mod_perl-2.0.4/src/modules/
Doh! Thanks for that Adam!
The version info in the docs was indeed staring me in the face
An MP2 upgrade is out of the question - Debian Stable is 2.0.2 for the
next few years (historically, 3 year cycle, Stable was first released
Aug-07), Testing and Unstable currently have MP2.0.3_5, but th
::ServerUtil::get_server_description();
Apache2::ServerUtil::get_server_banner();
warn => Undefined subroutine
Those functions were added in 2.0.4, which is currently in RC, as the
docs indicate. If you install the 2.0.4 RC1 (see:
http://marc.info/?l=apache-modperl&m=120760945808543&am
Did you remember to "use Apache2::ServerUtil"? It's probably obvious, but it's
easy to miss sometimes - mod_perl doesn't pull in all the APIs automatically,
just what you specify (to avoid memory overhead for things you don't use).
Yes - I have already used Apache2::ServerUtil - other funcs ar
On Tue 08 Apr 2008, Jeff Armstrong wrote:
> More specifically, I was also hoping to gain direct access to the SSL
> connection info for client certificate authentication - e.g. the stuff
> that appears in %ENV like:
> SSL_CLIENT_S_DN_CN
> SSL_CLIENT_S_DN_Email
> SSL_CLIENT_S_DN
Apache2::ModS
;
> however, I find that
>Apache2::ServerUtil::get_server_description();
>Apache2::ServerUtil::get_server_banner();
>
> warn => Undefined subroutine
>
> and
>Apache2::ServerUtil->user_id;
>Apache2::ServerUtil->group_id;
>
> warn => Can'
Original Message
Subject: undefined subroutine: get_server_description, get_server_banner
From: Jeff Armstrong <[EMAIL PROTECTED]>
To: modperl
Date: 08 April 2008 12:26:55
Folks,
<http://perl.apache.org/docs/2.0/api/Apache2/ServerUtil.html#C_get_server_description_&
erUtil::get_server_banner();
warn => Undefined subroutine
and
Apache2::ServerUtil->user_id;
Apache2::ServerUtil->group_id;
warn => Can't locate object method
Are the docs incorrect, or am I doing the wrong thing?
Other subs work ok: get_server_built get_server_version ser
ANTICS -D_LARGEFILE64_SOURCE -O -KPIC
\ -c mod_perl.c && mv mod_perl.o mod_perl.lo "mod_perl.c",
line 599: undefined symbol: my_perl "mod_perl.c", line
599: warning: improper pointer/integer combination: arg #1
cc: acomp failed for mod_perl.c make[1]: *** [mod_perl.
sr/apache2/include
-I/usr/apache2/i
nclude -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -I/usr/local/include
-I/opt/Activ
ePerl-5.8/lib/perl5/5.8.8/sun4-solaris-thread-multi/CORE -DMOD_PERL
-DMP_COMPAT_
1X -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -O
-KPIC \
-c mod_perl.c && mv mod_p
4-solaris-thread-multi/CORE -DMOD_PERL -DMP_COMPAT_
1X -DSOLARIS2=8 -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -O -KPIC \
-c mod_perl.c && mv mod_perl.o mod_perl.lo
"mod_perl.c", line 599: undefined symbol: my_perl
"mod_perl.c", line 599: warning: improper pointer/
> > My code around line 1059 in MySQLBroker.pm looks like this:
> >
> > sub _mysql_exec {
> > my ($self, $dbcall) = @_;
> > my @resultsArray;
> > my $count=0;
> > my $sth = $self->{_dbh}->prepare("$dbcall");
>
> You shouldn't store a $dbh in your objects like this. Apache::DBI
> will chec
e time, everything was working fine. But it
seemed like every few minutes, there would be a burst of the following
errors:
Can't call method "prepare" on an undefined value at modules//MySQLBroker.pm
line 1059.\n
Did you see these in your development environment? How did you make
the code l
From: Dustin D.
To: modperl@perl.apache.org
Sent: Sunday, July 22, 2007 11:38 AM
Subject: Can't call method "prepare" on an undefined value
I'm having countless problems with mod_perl and not even sure where to
start. I thought I had mod_perl up and running in my developm
pache configuration out to
my production environment, and immediately began tail -f on the logs.
What I noticed was, most of the time, everything was working fine.
But it seemed like every few minutes, there would be a burst of the
following errors:
Can't call method "prepare" o
d was, most of the time, everything was working fine. But it
seemed like every few minutes, there would be a burst of the following
errors:
Can't call method "prepare" on an undefined value at modules//MySQLBroker.pm
line 1059.\n
What's strange is, when this error would po
1. Problem Description:
On running the apache server I get:
/usr/local/apache_2.2.4/bin/httpd: relocation error:
/usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux/auto/Apache/Constants/Constants.so:
undefined symbol: perl_require_module
This appears to go away if I remove
er options I'm using.
Thanks,
Martin
-Original Message-
From: imacat [mailto:[EMAIL PROTECTED]
Sent: 15 March 2007 10:15
To: mod_perl
Subject: Re: Undefined symbol compile errors with mod_perl-1.99_14 and
AIX 5.2
On Thu, 15 Mar 2007 10:55:47 +0100
"Crumley, Martin \(GE Infr
On Thu, 15 Mar 2007 10:55:47 +0100
"Crumley, Martin \(GE Infra, Energy\)" <[EMAIL PROTECTED]> wrote:
> I'm experiencing problems when I run the make command on
> mod_perl-1.99_14. I'm including an extract of the output when running
> the make.
Why not using mod_perl 2.0.3? Version 1.99_xx
se64.exp -bnoentry -lc
-L/usr/local/lib Base64.o -brtl -L/usr/local/lib -b64 -o
../../../blib/arch/auto/APR/Base64/Base64.so
ld: 0711-317 ERROR: Undefined symbol: PL_markstack_ptr
ld: 0711-317 ERROR: Undefined symbol: PL_stack_base
ld: 0711-317 ERROR: Undefined symbol: PL_stack_sp
ld: 0711-317 ERROR: Und
I am running Apache 2.0.69 and mp2 mod_perl2-2.0.3_1,3 on FreeBSD 6.1.
I can run a script that decrypts the a PGP encrypted file outside of apache/mp2
and as a CGI script but when run from a perl handler it gives the error
fh is undefined at /usr/local/lib/perl5/site_perl/5.8.8/GnuPG
Robert Landrum wrote:
> I suspect that this may be because you're not actually running in
> mod_perl. Aside from that, I don't see any methods actually defined in
> Apache2::Module::loaded... not even a bootstrap. So it might need to
> be loaded from something like Apache2.
mod_dbd is not yet wr
Sorry, i twas just an error in my httpd.conf.
Can I access to mod_dbd function with the mod_perl?
Thanks
Jérémie
-Message d'origine-
De : Robert Landrum [mailto:[EMAIL PROTECTED]
Envoyé : mardi 30 janvier 2007 17:46
À : Garnier, Jeremie
Cc : Modperl@perl.apache.org
Objet : Re: unde
Garnier, Jeremie wrote:
use Apache2::Module ();
# test if an Apache module is loaded
if (Apache2::Module::loaded('mod_dbd.c')) {
…
}
But it dones:
Undefined subroutine &Apache2::Module::loaded call at…
I suspect that this may be because you're not actually r
Hi all,
I try to make this:
use Apache2::Module ();
# test if an Apache module is loaded
if (Apache2::Module::loaded('mod_dbd.c')) {
...
}
But it dones:
Undefined subroutine &Apache2::Module::loaded call at...
So why does it not work??
It is possible with mod_per
>You're running into this problem:
>http://perl.apache.org/docs/1.0/guide/porting.html#Name_collisions_with_Modules_and_libs
>
>The best solution is to put your subs into a namespace with a package
>declaration.
Sorry I don't think so since both the template name and the subroutine name are
u
1 - 100 of 191 matches
Mail list logo