[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: APR and APR-UTIL config problem

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-02-02 05:48:18 CET

David Summers <david@summersoft.fay.ar.us> writes:

> ./configure
> creating config.nice
> checking for gcc... gcc
> checking for C compiler default output... a.out
> checking whether the C compiler works... yes
> checking whether we are cross compiling... no
> checking for executable suffix...
> checking for object suffix... o
> checking whether we are using the GNU C compiler... yes
> checking whether gcc accepts -g... yes
> configure: Apache Portable Runtime (APR) library configuration
> checking for APR... no
> configure: WARNING: APR not found
> No Apache Portable Runtime (APR) library can be found.
> Either install APR on this system and supply appropriate
> --with-apr-libs and --with-apr-includes options
>
> or
>
> get it with CVS and put it in a subdirectory of this source:
>
> cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic login
> (password 'anoncvs')
>
> cvs -d :pserver:anoncvs@cvs.apache.org:/home/cvspublic co apr
>
> Run that right here in the top-level of the Subversion tree.
>
> configure: error: no suitable apr found
>
> config.log can be found at http://summersoft.fay.ar.us/~david/config.log
>
> Any ideas or suggestions? Why is it not being found?

>From the log, its failing to link against -lapr. From the undefined
symbols I'd say you need, on Linux, an additional

 LDFLAGS="-lcrypt -ldl -pthread"

So this might work:

 $ LDFLAGS="-lcrypt -ldl -pthread" ./configure

Basically you need the output of "apr-config --libs" where apr-config
is created when building APR. From a quick look, it appears that
APR_FIND_APR in ac-helpers/find_apr.m4 doesn't know to add this. This
is the same function that broke builddir != srcdir builds.

-- 
Philip
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:03 2006

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.