httpd-apreq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <>
Subject Re: libapreq failures with 1.2 and Mac OS X Server
Date Fri, 08 Aug 2003 16:46:04 GMT
Chris Nandor wrote:
> At 08:53 -0700 2003.08.08, Stas Bekman wrote:
>>Does Mac OS X uses .exp files? I can't see your compilation log, but if it
>>does, it probably uses apaci/mod_perl.exp, which defines sv2request_rec and
>>perl_request_rec (my guess is that the _ prefix is just an internal thing).
> Thanks.  I am not sure what to do with this information, though.  Here's a
> build log, if it would help.

check your httpd, whether it has these symbols. On my setup:

nm /home/httpd/httpd_perl/bin/httpd | grep sv2request_rec
080944f6 T sv2request_rec

if you don't have them, it's probably not the apreq's fault.

the sv2request_rec symbol originates from:

nm ../apache-1.3/src/modules/perl/perl_util.lo | grep sv2req
0000049b T sv2request_rec

can you see it?

I can see that perl_util.lo from your log links to libperl.a:

ar crv libperl.a mod_perl.o perlxsi.o perl_config.o perl_util.o perlio.o 
mod_perl_opmask.o Apache.o Constants.o ModuleConfig.o Log.o URI.o Util.o 
Connection.o Server.o File.o Table.o

so you should also see it in libperl.a (check that you do), which eventually 
gets linked to httpd:

env LD_RUN_PATH=/usr/local/lib/perl5/5.8.1/darwin/CORE cc  -DDARWIN -DMOD_PERL 
-DUSE_PERL_SSI -pipe -fno-common -DDARWIN -no-cpp-precomp -fno-strict-aliasing 
-no-cpp-precomp -fno-strict-aliasing `./apaci`    \
       -o httpd buildmark.o modules.o
modules/standard/libstandard.a main/libmain.a ./os/unix/libos.a ap/libap.a 
regex/libregex.a   -flat_namespace -L/usr/local/lib 
-L/usr/local/lib/perl5/5.8.1/darwin/CORE -lperl -lm -lc


Also I'm not sure why did you have to install libapreq c lib separately, 
purphaps there is some sort of collision here. do you use it elsewhere, 
besides mod_perl?

when you were testing mod_perl, you've got:
dyld: ../apache_1.3.28/src/httpd can't open library: 
/usr/local/lib/libapreq.1.dylib  (No such file or directory, errno = 2)

Have you tried nuking any references to libapreq, and then installing only via 
'perl Makefile.PL ...'? instead of doing:

   ./configure --with-apache-include=/usr/local/apache/include/
   make install
   perl Makefile.PL -httpd /usr/local/apache/sbin/httpd
   make test

just do:

   perl Makefile.PL -httpd /usr/local/apache/sbin/httpd
   make test

Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker     mod_perl Guide --->

View raw message