J. J. Merelo wrote:
Oops, they did it again. Around mid-Sept the apr project has changed the way they name libs. None of us have had problems because we still had the old libs with the old conventions linked instead of the new ones.Hi,Looks like that corresponds to libapreq ; but I'm not too sure where toyou have to install httpd-2.0, before you build mod_perl 2.0, and it installs apr and apr-util libs. see the online docs.
get it. Is it included in the Apache release? Is it in apache-devel? I
have found a RPM for it, but now I'm not sure that's reliable either. żAny idea?
Sorry I didn't mention it, but I built apache 2.0.43 under the same
upper dir, and installed it under /usr/local/apache2. The command line
for building was:
perl Makefile.PL MP_AP_PREFIX=/usr/local/apache2
It does have the apr and apr-util libs, in the correct directory I
guess. ls /usr/local/apache2/lib/
apr.exp libapr-0.la libapr-0.so.0.9.2 libaprutil-0.so
aprutil.exp libapr-0.so libaprutil-0.a libaprutil-0.so.0
libapr-0.a libapr-0.so.0 libaprutil-0.la libaprutil-0.so.0.9.2
Do I have to define another config variable or something?
what used to be libapr.so.0.9.2, now is named libapr-0.so.0.0.2 (same for aprutil), similar to libdb's naming convention.
So here is the patch that will get you going if you use the current cvs. Though it won't work with older aprs. Should probably hide the differences in the ModPerl::MM build.
Index: xs/APR/APR/Makefile.PL
===================================================================
RCS file: /home/cvs/modperl-2.0/xs/APR/APR/Makefile.PL,v
retrieving revision 1.4
diff -u -r1.4 Makefile.PL
--- xs/APR/APR/Makefile.PL 6 Apr 2002 04:42:00 -0000 1.4
+++ xs/APR/APR/Makefile.PL 26 Nov 2002 13:56:11 -0000
@@ -4,12 +4,11 @@
my $prefix = ModPerl::MM::build_config()->apxs(-q => 'PREFIX');
-my $libdir = "$prefix/lib";
-
-my @libs = map "-l$_", qw(apr aprutil);
+my @libs = map { qx{$prefix/bin/$_-config --link-ld} } qw(apr apu);
+chomp @libs;
ModPerl::MM::WriteMakefile(
'NAME' => 'APR',
'VERSION_FROM' => 'APR.pm',
- 'LIBS' => ["-L$libdir @libs"],
+ 'LIBS' => \@libs,
);
__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com