httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From James <ja...@nixsecurity.org>
Subject Re: [users@httpd] undefined reference to "apr_file_link"
Date Fri, 16 Mar 2012 00:04:01 GMT
I've had to do the same thing when compiling under RHEL 5.7 64 bit. Im just verifying that
the mentioned solution worked for me.
-- 
Sent from my Android phone with K-9 Mail. Please excuse my brevity.

Tianyin Xu <tixu@cs.ucsd.edu> wrote:

hmmm... this problem can be probably solve by put the newest apr and apr-util libs in your
source code directory, and then build your httpd based on them. 


Try this:


Download the apr and apr-util from the link: http://apr.apache.org/download.cgi


1. untar these two tarballs and put them into the srclib directory


2. rename the directory to apr and apr-util without the version number


3. using ./configure --with-included-apr and build it.


Hope it works.


T

On Thu, Mar 15, 2012 at 9:01 AM, Aubrey Li <aubreylee@gmail.com> wrote:

Sorry to bother if this is a known issue, building httpd-2.4.1 run
into the following error.
===================================
/usr/local/apr/build-1/libtool --silent --mode=link gcc -std=gnu99 -g
-O2 -pthread        -o rotatelogs  rotatelogs.lo
/usr/local/apr/lib/libaprutil-1.la -lexpat
/usr/local/apr/lib/libapr-1.la -lrt -lcrypt -lpthread
rotatelogs.o: In function `post_rotate':
/export/bench/benchmarks/src/httpd-2.4.1/support/rotatelogs.c:298:
undefined reference to `apr_file_link'
===================================

I'm using:

apr-1.4.6
apr-util-1.4.1
httpd-2.4.1

Here is how I configure httpd-2.4.1, /usr/local/apr is where I
installed the package built by my own.
==================================
./configure --enable-ssl --enable-so --with-mpm=worker
--prefix=/export/bench/benchmarks/tmp --with-apr=/usr/local/apr
-with-apr-util=/usr/local/apr

Any help are highly appreciated!

Thanks,
-Aubrey

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org




-- 
Tianyin XU,
http://cseweb.ucsd.edu/~tixu/


Mime
View raw message