You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Paul Cameron <pc...@bigpond.net.au> on 2008/07/07 00:31:40 UTC
Apache2::Request undefined symbol
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/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?
Thanks,
Paul Cameron
Email: <ma...@bigpond.net.au> pcn60@bigpond.net.au
Phone: (07) 3102 5687
Mobile: 0410 442 756
RE: Apache2::Request undefined symbol
Posted by Paul Cameron <pc...@bigpond.net.au>.
Yes, it's not obvious that you need to enable the module after
installing it. Why doesn't the installer enable it automatically?
-----Original Message-----
From: Colin Wetherbee [mailto:cww@denterprises.org]
Sent: Thursday, 10 July 2008 12:52 PM
To: Mark Hedges
Cc: Paul Cameron; 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 Debian-based distributions have done this with Apache 2
for a few years now.
It scared me quite nicely when I upgraded the first time they did this
(on Debian "unstable", I believe) and found none of my modules were
enabled anymore and my Apache configuration had been overwritten. :)
Colin
Re: Apache2::Request undefined symbol
Posted by Colin Wetherbee <cw...@denterprises.org>.
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 scared me quite nicely when I upgraded the first time they did this
(on Debian "unstable", I believe) and found none of my modules were
enabled anymore and my Apache configuration had been overwritten. :)
Colin
RE: Apache2::Request undefined symbol
Posted by Mark Hedges <he...@scriptdolphin.org>.
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.
Mark
On Mon, 7 Jul 2008, Paul Cameron wrote:
> Yes, it's there. I just found the problem.
>
> The 'aptitude' package manager installed the libapreq2 package but
> unfortunately, it didn't create the symbolic link that's required in the
> apache2/mods-enabled directory pointing to
> apache2/mods-available/apreq.load. So, when the server started, it
> didn't load mod_apreq2.so.
>
> Thanks for your help, anyway.
>
> -----Original Message-----
> From: Heiko Jansen [mailto:jansen@hbz-nrw.de]
> 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:31 +1000 schrieb Paul Cameron:
> > 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/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
>
>
RE: Apache2::Request undefined symbol
Posted by Paul Cameron <pc...@bigpond.net.au>.
Yes, it's there. I just found the problem.
The 'aptitude' package manager installed the libapreq2 package but
unfortunately, it didn't create the symbolic link that's required in the
apache2/mods-enabled directory pointing to
apache2/mods-available/apreq.load. So, when the server started, it
didn't load mod_apreq2.so.
Thanks for your help, anyway.
-----Original Message-----
From: Heiko Jansen [mailto:jansen@hbz-nrw.de]
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:31 +1000 schrieb Paul Cameron:
> 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/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
Re: Apache2::Request undefined symbol
Posted by Heiko Jansen <ja...@hbz-nrw.de>.
Am Montag, den 07.07.2008, 08:31 +1000 schrieb Paul Cameron:
> 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/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