You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Aubrey Li <au...@gmail.com> on 2012/03/15 17:01:49 UTC

[users@httpd] undefined reference to "apr_file_link"

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


Re: [users@httpd] undefined reference to "apr_file_link"

Posted by Eric Covener <co...@gmail.com>.
On Thu, Mar 15, 2012 at 12:01 PM, Aubrey Li <au...@gmail.com> wrote:
> Sorry to bother if this is a known issue, building httpd-2.4.1 run
> into the following error.

Searching the web for "undefined reference to `apr_file_link'" has a
number of pointers.

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


Re: [users@httpd] undefined reference to "apr_file_link"

Posted by James <ja...@nixsecurity.org>.
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 <ti...@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 <au...@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/


Re: [users@httpd] undefined reference to "apr_file_link"

Posted by Aubrey Li <au...@gmail.com>.
Thanks, this one works!

On Fri, Mar 16, 2012 at 7:54 AM, Tianyin Xu <ti...@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 <au...@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/

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


Re: [users@httpd] undefined reference to "apr_file_link"

Posted by Tianyin Xu <ti...@cs.ucsd.edu>.
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 <au...@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/