You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bugs@httpd.apache.org by bu...@apache.org on 2005/02/25 10:33:43 UTC

DO NOT REPLY [Bug 33741] New: - Incorrect path to libaprutil-0.la in build/config_vars.mk after running buildconf

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=33741>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=33741

           Summary: Incorrect path to libaprutil-0.la in
                    build/config_vars.mk after running buildconf
           Product: Apache httpd-2.0
           Version: 2.0.53
          Platform: Other
        OS/Version: AIX
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Build
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: Bjorn.Wiberg@its.uu.se


When installing CAS support
(http://www.yale.edu/tp/cas/cas-client-2.0.11.tar.gz) into the Apache source
tree, one should execute ./buildconf from the Apache top directory.

Efter doing so, and compiling, the compilation bails out with:

Making all in support
make[1]: Entering directory `/usr/local/src/httpd-2.0.53/support'
make[2]: Entering directory `/usr/local/src/httpd-2.0.53/support'
/usr/local/src/httpd-2.0.53/srclib/apr/libtool --silent --mode=compile gcc  -g
-O2 -pthread    -U__STR__ -D_THREAD_SAFE -D_USE_IRS
-DAP_HAVE_DESIGNATED_INITIALIZER -I/opt/freeware/include -I/usr/local/include 
-I/usr/local/src/httpd-2.0.53/srclib/apr/include
-I/usr/local/src/httpd-2.0.53/srclib/apr-util/include -I/usr/local/include
-I/usr/local/src/httpd-2.0.53/srclib/apr-util/xml/expat/lib -I.
-I/usr/local/src/httpd-2.0.53/os/unix
-I/usr/local/src/httpd-2.0.53/server/mpm/prefork
-I/usr/local/src/httpd-2.0.53/modules/http
-I/usr/local/src/httpd-2.0.53/modules/filters
-I/usr/local/src/httpd-2.0.53/modules/proxy
-I/usr/local/src/httpd-2.0.53/include
-I/usr/local/src/httpd-2.0.53/modules/generators
-I/usr/local/src/httpd-2.0.53/server -I/opt/freeware/include/openssl
-I/opt/freeware/include -I/usr/local/src/httpd-2.0.53/modules/dav/main
-prefer-non-pic -static -c htpasswd.c && touch htpasswd.lo
/usr/local/src/httpd-2.0.53/srclib/apr/libtool --silent --mode=link gcc  -g -O2
-pthread    -U__STR__ -D_THREAD_SAFE -D_USE_IRS -DAP_HAVE_DESIGNATED_INITIALIZER
-I/opt/freeware/include -I/usr/local/include 
-I/usr/local/src/httpd-2.0.53/srclib/apr/include
-I/usr/local/src/httpd-2.0.53/srclib/apr-util/include -I/usr/local/include
-I/usr/local/src/httpd-2.0.53/srclib/apr-util/xml/expat/lib -I.
-I/usr/local/src/httpd-2.0.53/os/unix
-I/usr/local/src/httpd-2.0.53/server/mpm/prefork
-I/usr/local/src/httpd-2.0.53/modules/http
-I/usr/local/src/httpd-2.0.53/modules/filters
-I/usr/local/src/httpd-2.0.53/modules/proxy
-I/usr/local/src/httpd-2.0.53/include
-I/usr/local/src/httpd-2.0.53/modules/generators
-I/usr/local/src/httpd-2.0.53/server -I/opt/freeware/include/openssl
-I/opt/freeware/include -I/usr/local/src/httpd-2.0.53/modules/dav/main
-export-dynamic -L/usr/local/openssl/lib -lssl -lcrypto -Wl,-brtl
-L/usr/local/src/httpd-2.0.53/srclib/apr-util/xml/expat/lib  -L/opt/freeware/lib
-L/usr/local/lib -o htpasswd  htpasswd.lo -Wl,-uXML_Parse  -lz -lssl -lcrypto
/usr/local/src/httpd-2.0.53/srclib/pcre/libpcre.la ./libaprutil-0.la -lldap
-llber /usr/local/src/httpd-2.0.53/srclib/apr-util/xml/expat/lib/libexpat.la
-liconv /usr/local/src/httpd-2.0.53/srclib/apr/libapr-0.la -lm -lnsl -lpthread
libtool: link: cannot find the library `./libaprutil-0.la'
make[2]: *** [htpasswd] Error 1
make[2]: Leaving directory `/usr/local/src/httpd-2.0.53/support'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/httpd-2.0.53/support'
make: *** [all-recursive] Error 1
root@habia:/usr/local/src/httpd-2.0.53# 

The error seems to stem from that the path to libaprutil-0.la in
build/config_vars.mk is set to "./libaprutil-0.la":

AP_LIBS = /usr/local/src/httpd-2.0.53/srclib/pcre/libpcre.la ./libaprutil-0.la
-lldap -llber
/usr/local/src/httpd-2.0.53/srclib/apr-util/xml/expat/lib/libexpat.la -liconv
/usr/local/src/httpd-2.0.53/srclib/apr/libapr-0.la -lm -lnsl -lpthread

If one changes this to include the full path to libaprutil-0.la, the compilation
goes just fine:

AP_LIBS = /usr/local/src/httpd-2.0.53/srclib/pcre/libpcre.la
/usr/local/src/httpd-2.0.53/srclib/apr-util/libaprutil-0.la -lldap -llber
/usr/local/src/httpd-2.0.53/srclib/apr-util/xml/expat/lib/libexpat.la -liconv 
/usr/local/src/httpd-2.0.53/srclib/apr/libapr-0.la -lm -lnsl -lpthread

I'm using the following versions of software:

root@habia:/usr/local/src/httpd-2.0.53# libtool --version
ltmain.sh (GNU libtool) 1.5.14 (1.1220.2.195 2005/02/12 12:12:33)

root@habia:/usr/local/src/httpd-2.0.53# gcc --version
gcc (GCC) 3.3.2

root@habia:/usr/local/src/httpd-2.0.53# autoconf --version
autoconf (GNU Autoconf) 2.58

root@habia:/usr/local/src/httpd-2.0.53# automake --version
automake (GNU automake) 1.7.9

All this under AIX 5.2 ML5 on an IBM eServer pSeries p5 model 520.

My configure line is:

CC=gcc CPPFLAGS="-I/opt/freeware/include -I/usr/local/include"
LDFLAGS="-L/opt/freeware/lib -L/usr/local/lib" ./configure
--enable-auth-ldap=shared --enable-cache=shared --enable-cas=shared
--enable-charset-lite=shared --enable-deflate=shared --enable-disk-cache=shared
--enable-file-cache=shared --enable-ldap=shared --enable-logio=shared
--enable-mem-cache=shared --enable-mods-shared=all --enable-proxy=shared
--enable-proxy-connect=shared --enable-proxy-ftp --enable-proxy-http
--enable-ssl --prefix=/apache --sysconfdir=/apache/etc --with-ldap=yes
--with-ldap-lib=/usr/local/lib --with-ldap-include=/usr/local/include
--with-mpm=prefork

Best regards,
Bj�rn

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

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