You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Pratik <pr...@gmail.com> on 2004/09/18 19:29:12 UTC

Re: mp2 static build problems

> 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.

Regards,
Pratik

-- 
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


Re: mp2 static build problems

Posted by Stas Bekman <st...@stason.org>.
Pratik, why do you continue breaking the thread? It's started on the dev 
list. Please keep it there. Why do you redirect it to the other list?

Please repost your reply to the dev list and we will take it from there. 
Thank you.

-- 
__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org 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


Re: mp2 static build problems

Posted by Pratik <pr...@gmail.com>.
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 <st...@stason.org> 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:stas@stason.org 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


Re: mp2 static build problems

Posted by Stas Bekman <st...@stason.org>.
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:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org