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 Harrison <cu...@austin.rr.com> on 2005/09/14 23:03:20 UTC

Mod_perl2

In mod_perl 1.29 version, I preload the following modules at startup -->

use Apache::Request ();

use Apache::Cookie ();

 

 

It works perfect.

 

I'm currently learning how to use mod_perl2-2.0.1, when I try to preload the
following modules at startup -->

 

use Apache2::Request ();

use Apache2::Cookie ();

 

 

I get the following error in the apache2 logs and the server won't start -->

 

/libexec/ld-elf.so.1:
/usr/local/lib/perl5/site_perl/5.8.6/mach/auto/APR/Request/Error/Error.so:
Undefined symbol "apreq_strerror"

^C

su-3.00# pkg_info

 

 

 

Cure


Re: Mod_perl2

Posted by "Philip M. Gollucci" <pg...@p6m7g8.com>.
Paul Harrison wrote:
> I installed expat successfully.
> 
> 
> Now I get the following error ==>
> 
> make
> Making all in .
> Making all in include
> make  all-am
> Making all in library
> make  all-am
> Making all in module
> Making all in apache2
> make: don't know how to make all-local. Stop
> *** Error code 1
use gmake instead of make


-- 
END
------------------------------------------------------------
     What doesn't kill us can only make us stronger.
                 Nothing is impossible.
				
Philip M. Gollucci (pgollucci@p6m7g8.com) 301.254.5198
Consultant / http://p6m7g8.net/Resume/
Senior Developer / Liquidity Services, Inc.
   http://www.liquidityservicesinc.com
        http://www.liquidation.com
        http://www.uksurplus.com
        http://www.govliquidation.com
        http://www.gowholesale.com


RE: Mod_perl2

Posted by Paul Harrison <cu...@austin.rr.com>.
I installed expat successfully.


Now I get the following error ==>

make
Making all in .
Making all in include
make  all-am
Making all in library
make  all-am
Making all in module
Making all in apache2
make: don't know how to make all-local. Stop
*** Error code 1


Cure




-----Original Message-----
From: Frank Wiles [mailto:frank@wiles.org] 
Sent: Wednesday, September 14, 2005 5:08 PM
To: Paul Harrison
Cc: modperl@perl.apache.org
Subject: Re: Mod_perl2

On Wed, 14 Sep 2005 16:56:16 -0500
"Paul Harrison" <cu...@austin.rr.com> wrote:

> I tried installing libapreq2-2.06-dev
> 
> I get the following  error ==>
> 
> 
> /usr/local/bin/bash ../libtool --mode=link gcc  -g -O2    -o
> libapreq2.la -rpath /usr/local/lib -version-info 3:3:1 
> -L/usr/local/lib/apache2 -lapr-0 -laprutil-0  -lexpat -liconv -lm
> -lcrypt util.lo version.lo cookie.lo param.lo  parser.lo
> parser_urlencoded.lo parser_header.lo parser_multipart.lo module.lo
> module_custom.lo module_cgi.lo  error.lo   gcc -shared  .libs/util.o
> .libs/version.o .libs/cookie.o .libs/param.o .libs/parser.o
> .libs/parser_urlencoded.o .libs/parser_header.o
> .libs/parser_multipart.o .libs/module.o .libs/module_custom.o
> .libs/module_cgi.o .libs/error.o  -L/usr/local/lib/apache2 -lapr-0
> -laprutil-0 -lexpat -liconv -lm -lcrypt  -Wl,-soname
> -Wl,libapreq2.so.3 -o .libs/libapreq2.so.3
> /usr/bin/ld: cannot find -lexpat
> *** Error code 1
>
  
  That's the same problem Bosenberry Payne had and fixed by installing
  libexpat from http://libexpat.org.  Install that and you'll be able
  to install libapreq then. 

 ---------------------------------
   Frank Wiles <fr...@wiles.org>
   http://www.wiles.org
 ---------------------------------


Re: Mod_perl2

Posted by Frank Wiles <fr...@wiles.org>.
On Wed, 14 Sep 2005 16:56:16 -0500
"Paul Harrison" <cu...@austin.rr.com> wrote:

> I tried installing libapreq2-2.06-dev
> 
> I get the following  error ==>
> 
> 
> /usr/local/bin/bash ../libtool --mode=link gcc  -g -O2    -o
> libapreq2.la -rpath /usr/local/lib -version-info 3:3:1 
> -L/usr/local/lib/apache2 -lapr-0 -laprutil-0  -lexpat -liconv -lm
> -lcrypt util.lo version.lo cookie.lo param.lo  parser.lo
> parser_urlencoded.lo parser_header.lo parser_multipart.lo module.lo
> module_custom.lo module_cgi.lo  error.lo   gcc -shared  .libs/util.o
> .libs/version.o .libs/cookie.o .libs/param.o .libs/parser.o
> .libs/parser_urlencoded.o .libs/parser_header.o
> .libs/parser_multipart.o .libs/module.o .libs/module_custom.o
> .libs/module_cgi.o .libs/error.o  -L/usr/local/lib/apache2 -lapr-0
> -laprutil-0 -lexpat -liconv -lm -lcrypt  -Wl,-soname
> -Wl,libapreq2.so.3 -o .libs/libapreq2.so.3
> /usr/bin/ld: cannot find -lexpat
> *** Error code 1
>
  
  That's the same problem Bosenberry Payne had and fixed by installing
  libexpat from http://libexpat.org.  Install that and you'll be able
  to install libapreq then. 

 ---------------------------------
   Frank Wiles <fr...@wiles.org>
   http://www.wiles.org
 ---------------------------------


RE: Mod_perl2

Posted by Paul Harrison <cu...@austin.rr.com>.
I tried installing libapreq2-2.06-dev

I get the following  error ==>


/usr/local/bin/bash ../libtool --mode=link gcc  -g -O2    -o libapreq2.la
-rpath /usr/local/lib -version-info 3:3:1  -L/usr/local/lib/apache2 -lapr-0
-laprutil-0  -lexpat -liconv -lm -lcrypt util.lo version.lo cookie.lo
param.lo  parser.lo parser_urlencoded.lo parser_header.lo
parser_multipart.lo module.lo module_custom.lo module_cgi.lo  error.lo  
gcc -shared  .libs/util.o .libs/version.o .libs/cookie.o .libs/param.o
.libs/parser.o .libs/parser_urlencoded.o .libs/parser_header.o
.libs/parser_multipart.o .libs/module.o .libs/module_custom.o
.libs/module_cgi.o .libs/error.o  -L/usr/local/lib/apache2 -lapr-0
-laprutil-0 -lexpat -liconv -lm -lcrypt  -Wl,-soname -Wl,libapreq2.so.3 -o
.libs/libapreq2.so.3
/usr/bin/ld: cannot find -lexpat
*** Error code 1



Cure

-----Original Message-----
From: Frank Wiles [mailto:frank@wiles.org] 
Sent: Wednesday, September 14, 2005 4:37 PM
To: Paul Harrison
Cc: modperl@perl.apache.org
Subject: Re: Mod_perl2

On Wed, 14 Sep 2005 16:29:51 -0500
"Paul Harrison" <cu...@austin.rr.com> wrote:

> Same compiler, yes
> 
> In installed it from FreeBSD ports tree
> PORTNAME=       libapreq2
> PORTVERSION=    2.05
> CATEGORIES=     www perl5 devel

  libapreq2-2.06-dev is the latest version, I believe you need this 
  one.  You can get it here:  

  http://httpd.apache.org/apreq/download.cgi

 ---------------------------------
   Frank Wiles <fr...@wiles.org>
   http://www.wiles.org
 ---------------------------------


Re: Mod_perl2

Posted by Frank Wiles <fr...@wiles.org>.
On Wed, 14 Sep 2005 16:29:51 -0500
"Paul Harrison" <cu...@austin.rr.com> wrote:

> Same compiler, yes
> 
> In installed it from FreeBSD ports tree
> PORTNAME=       libapreq2
> PORTVERSION=    2.05
> CATEGORIES=     www perl5 devel

  libapreq2-2.06-dev is the latest version, I believe you need this 
  one.  You can get it here:  

  http://httpd.apache.org/apreq/download.cgi

 ---------------------------------
   Frank Wiles <fr...@wiles.org>
   http://www.wiles.org
 ---------------------------------


RE: Mod_perl2

Posted by Paul Harrison <cu...@austin.rr.com>.
Same compiler, yes

In installed it from FreeBSD ports tree
PORTNAME=       libapreq2
PORTVERSION=    2.05
CATEGORIES=     www perl5 devel



Cure

-----Original Message-----
From: Frank Wiles [mailto:frank@wiles.org] 
Sent: Wednesday, September 14, 2005 4:19 PM
To: Paul Harrison
Cc: modperl@perl.apache.org
Subject: Re: Mod_perl2

On Wed, 14 Sep 2005 16:03:20 -0500
"Paul Harrison" <cu...@austin.rr.com> wrote:

> I'm currently learning how to use mod_perl2-2.0.1, when I try to
> preload the following modules at startup -->
> 
>  
> 
> use Apache2::Request ();
> 
> use Apache2::Cookie ();
> 
> I get the following error in the apache2 logs and the server won't
> start -->
> 
> /libexec/ld-elf.so.1:
> /usr/local/lib/perl5/site_perl/5.8.6/mach/auto/APR/Request/Error/Erro
> r.so: Undefined symbol "apreq_strerror"

  What version of libapreq do you have on your server and was it
  compiled with the same compiler as mod_perl? 

 ---------------------------------
   Frank Wiles <fr...@wiles.org>
   http://www.wiles.org
 ---------------------------------


Re: Mod_perl2

Posted by Frank Wiles <fr...@wiles.org>.
On Wed, 14 Sep 2005 16:03:20 -0500
"Paul Harrison" <cu...@austin.rr.com> wrote:

> I'm currently learning how to use mod_perl2-2.0.1, when I try to
> preload the following modules at startup -->
> 
>  
> 
> use Apache2::Request ();
> 
> use Apache2::Cookie ();
> 
> I get the following error in the apache2 logs and the server won't
> start -->
> 
> /libexec/ld-elf.so.1:
> /usr/local/lib/perl5/site_perl/5.8.6/mach/auto/APR/Request/Error/Erro
> r.so: Undefined symbol "apreq_strerror"

  What version of libapreq do you have on your server and was it
  compiled with the same compiler as mod_perl? 

 ---------------------------------
   Frank Wiles <fr...@wiles.org>
   http://www.wiles.org
 ---------------------------------