Apache2::Request undefined symbol

Apache2::Request undefined symbol

am 07.07.2008 00:31:40 von Paul Cameron

This is a multi-part message in MIME format.

------=_NextPart_000_0001_01C8E00B.E14C8690
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

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: pcn60@bigpond.net.au
Phone: (07) 3102 5687
Mobile: 0410 442 756


------=_NextPart_000_0001_01C8E00B.E14C8690
Content-Type: text/html;
charset="us-ascii"
Content-Transfer-Encoding: quoted-printable



charset=3Dus-ascii">
Message



I installed the library package=20
'libapreq2' on an Ubuntu 7.10 =
distro
,=20
and tried dereferencing the 'Apache2::Request' module in a class=3Dhighlight>mod_perl script, but it crashed with =
'/usr/sbin/apache2:=20
symbol lookup error:

 

size=3D2>/usr/lib/perl5/auto/APR/Request/Apache2/Apache2.so: =20
undefined symbol: apreq_handle_apache2'.

 

I ran 'nm' on libapreq2.so.3 class=3D500112322-06072008> and it returned "nm: =
/usr/lib/libapreq2.so.3:=20
no symbols".

Can anyone help with =
this?

Thanks,

 

Paul Cameron

style=3D"BORDER-TOP-WIDTH: 0px; BORDER-LEFT-WIDTH: 0px; =
BORDER-BOTTOM-WIDTH: 0px; BORDER-COLLAPSE: collapse; BORDER-RIGHT-WIDTH: =
0px"=20
borderColor=3D#111111 cellSpacing=3D0 cellPadding=3D0 width=3D1046 =
border=3D1>


style=3D"BORDER-RIGHT: medium none; BORDER-TOP: medium none; =
BORDER-LEFT: medium none; BORDER-BOTTOM: medium none"=20
align=3Dleft width=3D100> size=3D2>Email:
style=3D"BORDER-RIGHT: medium none; BORDER-TOP: medium none; =
BORDER-LEFT: medium none; BORDER-BOTTOM: medium none"=20
width=3D943>  href=3D"mailto:pcn60@bigpond.net.au"> color=3D#000080>pcn60@bigpond.net.au


style=3D"BORDER-RIGHT: medium none; BORDER-TOP: medium none; =
BORDER-LEFT: medium none; BORDER-BOTTOM: medium none"=20
align=3Dleft width=3D100> size=3D2>Phone:
style=3D"BORDER-RIGHT: medium none; BORDER-TOP: medium none; =
BORDER-LEFT: medium none; BORDER-BOTTOM: medium none"=20
width=3D943> (07) 3102 =
5687


style=3D"BORDER-RIGHT: medium none; BORDER-TOP: medium none; =
BORDER-LEFT: medium none; BORDER-BOTTOM: medium none"=20
align=3Dleft width=3D100> size=3D2>Mobile:
style=3D"BORDER-RIGHT: medium none; BORDER-TOP: medium none; =
BORDER-LEFT: medium none; BORDER-BOTTOM: medium none"=20
width=3D943> 0410 442=20
756

 


------=_NextPart_000_0001_01C8E00B.E14C8690--

Re: Apache2::Request undefined symbol

am 07.07.2008 09:14:46 von Heiko Jansen

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

am 07.07.2008 09:23:24 von Paul Cameron

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

am 07.07.2008 20:10:46 von Mark Hedges

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

am 10.07.2008 04:52:18 von Colin Wetherbee

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

am 10.07.2008 05:24:17 von Paul Cameron

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