You are viewing a plain text version of this content. The canonical link for it is here.
Posted to apreq-dev@httpd.apache.org by Brian <br...@photoresearchers.com> on 2004/06/28 21:52:00 UTC

`apr_temp_dir_get' undefined?

In an attempt to build libapreq2.so (in both the libapreq2-2.03-dev and
libapreq2-2.04-dev releases) on RedHat linux, I'm getting errors about an
undefined reference to `apr_temp_dir_get'.  The initial `make' runs fine, but a
`make test' yields the following:

make[2]: Entering directory `/path/to/libapreq2-2.0[34]-dev/env'
/bin/sh ../libtool --mode=link gcc  -g -O2   -o test_cgi  test_cgi.o
../src/libapreq2.la  /usr/lib/libapr-0.la  -lrt -lm -lcrypt -lnsl  -ldl
/usr/lib/libaprutil-0.la  -ldb -lexpat
gcc -g -O2 -o .libs/test_cgi test_cgi.o  ../src/.libs/libapreq2.so
/usr/lib/libaprutil-0.so /usr/lib/libapr-0.so -lrt -lm -lcrypt -lnsl -ldl
-lpthread -ldb /usr/lib/libexpat.so -Wl,--rpath -Wl,/etc/httpd/lib
../src/.libs/libapreq2.so: undefined reference to `apr_temp_dir_get'
collect2: ld returned 1 exit status
make[2]: *** [test_cgi] Error 1

Obviously the module (mod_apreq.so) can't be loaded because of this same error.
  Can anyone point me in the right direction for investigating the source of
this problem?

Thanks,

Brian




Re: `apr_temp_dir_get' undefined?

Posted by Brian <br...@photoresearchers.com>.
Joe Schaefer wrote:
> Your apr lib is too old- you need apr version 0.9.4.  Our prereq
> checks should have detected this problem during "./configure ...".

Well, I had checked this and it appeared that I was using this version, at least 
on the surface.  But I believe some older files may have gotten shuffled back in 
at some point so on a hunch I reinstalled the apr libraries and problem appears 
to be solved.  So far it seems to be working correctly.  Thanks for the tip!

Brian

Re: `apr_temp_dir_get' undefined?

Posted by Joe Schaefer <jo...@sunstarsys.com>.
Brian <br...@photoresearchers.com> writes:

> In an attempt to build libapreq2.so (in both the libapreq2-2.03-dev
> and libapreq2-2.04-dev releases) on RedHat linux, I'm getting errors
> about an undefined reference to `apr_temp_dir_get'.  The initial
> `make' runs fine, but a `make test' yields the following:
> 
> make[2]: Entering directory `/path/to/libapreq2-2.0[34]-dev/env'
> /bin/sh ../libtool --mode=link gcc  -g -O2   -o test_cgi  test_cgi.o
> ../src/libapreq2.la  /usr/lib/libapr-0.la  -lrt -lm -lcrypt -lnsl  -ldl
> /usr/lib/libaprutil-0.la  -ldb -lexpat
> gcc -g -O2 -o .libs/test_cgi test_cgi.o  ../src/.libs/libapreq2.so
> /usr/lib/libaprutil-0.so /usr/lib/libapr-0.so -lrt -lm -lcrypt -lnsl -ldl
> -lpthread -ldb /usr/lib/libexpat.so -Wl,--rpath -Wl,/etc/httpd/lib
> ../src/.libs/libapreq2.so: undefined reference to `apr_temp_dir_get'
> collect2: ld returned 1 exit status
> make[2]: *** [test_cgi] Error 1

Your apr lib is too old- you need apr version 0.9.4.  Our prereq
checks should have detected this problem during "./configure ...".

-- 
Joe Schaefer