Re: undefined reference to "apr_file_link"

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxx> 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@xxxxxxxxx> 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@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




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


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux