Well, I am a newbie to this. So kindly forgive all the mistakes that I make.

I was building mp2 statically, I don't think resultind httpd binary
should have any dependancies. Anyway, I had copied apr-0 to
/usr/local/lib, it should not cause any trouble.

I think if LD_LIBRARY_PATH contains <apache source/srclib/apr/.lib ,
then it won't give those errors.

I guess, "make install" is not required in Apache tree, as mp2's make
file will take care of it.

-Pratik

On Sat, 18 Sep 2004 13:37:14 -0400, Stas Bekman <[EMAIL PROTECTED]> wrote:
> 
> 
> Pratik wrote:
> >>Finally it breaks with:
> >>
> >>LD_RUN_PATH="/usr/lib:/lib" cc  -shared -L/usr/local/lib APR.o
> >>modperl_error.o modperl_bucket.o modperl_common_util.o
> >>modperl_common_log.o -L/usr/local/lib -o
> >>../../../blib/arch/Apache2/auto/APR/APR.so
> >>-L/home/stas/apache.org/httpd-2.0/srclib/apr -lapr-0 -lrt -lm -lcrypt
> >>-lnsl -lpthread -ldl
> >>/usr//bin/ld: cannot find -lapr-0
> >>collect2: ld returned 1 exit status
> >>
> >>I'm not sure how was this supposed to work in first place. Since libapr is
> >>not installed yet.
> >
> >
> > I faced the same problem while building mp2 statically. I found out
> > that lapr-0 was already built inside srclib/apr/.lib of httpd. I just
> > copied that file to /usr/local/lib and it worked like a charm.
> > Probably, LD_LIBRARY_PATH should be set properly.
> 
> What is properly? If during linking you set it to the local,
> pre-installation located, then it won't work post install. As I have never
> done this before I'm not sure how is this supposed to work at all. I'd
> think that you will need to 'make install' in the Apache tree and only
> then proceed building the modperl 2 modules.
> 
> 
> 
> 
> --
> __________________________________________________________________
> 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
>

-- 
Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to