apr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sander Temme <san...@temme.net>
Subject Re: [VOTE] Release apr-0.9.19 and/or apr-util-0.9.18
Date Mon, 11 Oct 2010 15:32:50 GMT

On Oct 11, 2010, at 2:35 AM, Rainer Jung wrote:

> Any idea, why the build still tries to look for libexpat.la in xml/expat/lib?

Looks to me like there is some bogus information coming out of configure, like APRUTIL_EXPORT_LIBS,
APRUTIL_LDFLAGS (no libraries in that dir, they're in .libs one level higher) and APRUTIL_LIBS.


The weird ass location for libapr-0.la came from its ./configure, and has never hampered me.
 I used straight paths from / with apr-util configure.

S.

> Could you please provide:
> 
> grep -i expat config.log

[sctemme@legadema] apr-util-0.9.18 $ grep -i expat config.log
configure:23314: checking for Expat in /usr
configure:23314: checking for Expat in /usr/local
configure:23314: checking for Expat in xml/expat-cvs
configure:23314: checking for Expat in xml/expat
APRUTIL_EXPORT_LIBS='/UserData/tmp/apr/dist/apr-util-0.9.18/xml/expat/lib/libexpat.la -liconv'
APRUTIL_INCLUDES='-I/UserData/tmp/apr/dist/apr-util-0.9.18/xml/expat/lib'
APRUTIL_LDFLAGS='-L/UserData/tmp/apr/dist/apr-util-0.9.18/xml/expat/lib'
APRUTIL_LIBS='/UserData/tmp/apr/dist/apr-util-0.9.18/xml/expat/lib/libexpat.la -liconv /UserData/tmp/apr/build/apr/../../inst/lib/libapr-0.la
-lresolv -lpthread'
APR_XML_DIR='xml/expat'
APR_XML_EXPAT_OLD=''
APR_XML_SUBDIRS='expat'

> grep -i expat Makefile

[sctemme@legadema] apr-util-0.9.18 $ grep -i expat Makefile
INCLUDES = -I/UserData/tmp/apr/dist/apr-util-0.9.18/include -I/UserData/tmp/apr/dist/apr-util-0.9.18/include/private
 -I/UserData/tmp/apr/build/apr/../../inst/include/apr-0  -I/UserData/tmp/apr/dist/apr-util-0.9.18/xml/expat/lib
APRUTIL_LDFLAGS = -L/UserData/tmp/apr/dist/apr-util-0.9.18/xml/expat/lib
APRUTIL_LIBS = /UserData/tmp/apr/dist/apr-util-0.9.18/xml/expat/lib/libexpat.la -liconv /UserData/tmp/apr/build/apr/../../inst/lib/libapr-0.la
-lresolv -lpthread
INSTALL_SUBDIRS = xml/expat
	    objects="`find $(SUBDIRS) -name expat -prune -o -name '*.lo' -a -newer $(TARGET_LIB)
-print`" ; \
	@objects="`find $(SUBDIRS) -name expat -prune -o -name 'gen_uri_delims.lo' -prune -o -name
'*.lo' -print`"; \

> grep LDFLAGS build/*

[sctemme@legadema] apr-util-0.9.18 $ grep LDFLAGS BUILD/*
BUILD/apr_common.m4:  if test -n "$LDFLAGS"; then
BUILD/apr_common.m4:    echo "LDFLAGS=\"$LDFLAGS\"; export LDFLAGS" >> $1
BUILD/apr_common.m4:  if test -n "$NOTEST_LDFLAGS"; then
BUILD/apr_common.m4:    echo "NOTEST_LDFLAGS=\"$NOTEST_LDFLAGS\"; export NOTEST_LDFLAGS" >>
$1
BUILD/apu-conf.m4:APR_ADDTO(APRUTIL_LDFLAGS, [$expat_ldflags])
BUILD/apu-conf.m4:    save_ldflags="$LDFLAGS"
BUILD/apu-conf.m4:      LDFLAGS="$LDFLAGS -L$with_ldap_lib"
BUILD/apu-conf.m4:      APR_ADDTO(APRUTIL_LDFLAGS, [-L$with_ldap_lib])
BUILD/apu-conf.m4:    LDFLAGS=$save_ldflags
BUILD/apu-iconv.m4:      APR_ADDTO(LDFLAGS,[-L$apu_iconv_dir/lib])
BUILD/apu-iconv.m4:  APR_REMOVEFROM(LDFLAGS,[-L$apu_iconv_dir/lib])
BUILD/apu-iconv.m4:  APR_ADDTO(APRUTIL_LDFLAGS,[-L$apu_iconv_dir/lib])
BUILD/dbm.m4:  apu_check_lib_save_ldflags="$LDFLAGS"
BUILD/dbm.m4:    LDFLAGS="$apu_check_lib_save_ldflags"
BUILD/dbm.m4:        LDFLAGS="$LDFLAGS -L$lib"
BUILD/dbm.m4:          LDFLAGS="$LDFLAGS -L$bdb_place/lib"
BUILD/dbm.m4:  LDFLAGS="$apu_check_lib_save_ldflags"
BUILD/dbm.m4:    APR_ADDTO(APRUTIL_LDFLAGS, [-L$lib])
BUILD/dbm.m4:    APR_ADDTO(APRUTIL_LDFLAGS, [-L$found/lib])
BUILD/dbm.m4:        APR_ADDTO(APRUTIL_LDFLAGS, [-L$withval/lib])
BUILD/dbm.m4:      NDBM_LDFLAGS=""
BUILD/dbm.m4:          NDBM_LDFLAGS="-L`echo $withval |sed -e 's/^.*://'`"
BUILD/dbm.m4:          AC_MSG_CHECKING(checking for ndbm includes with $NDBM_INC libs with
$NDBM_LDFLAGS )
BUILD/dbm.m4:          NDBM_LDFLAGS="-L$withval/lib"
BUILD/dbm.m4:    save_ldflags="$LDFLAGS"
BUILD/dbm.m4:    LDFLAGS="$LDFLAGS $NDBM_LDFLAGS"
BUILD/dbm.m4:          APR_ADDTO(APRUTIL_LDFLAGS, [$NDBM_LDFLAGS])
BUILD/dbm.m4:    LDFLAGS="$save_ldflags"
BUILD/rules.mk:LDFLAGS=
BUILD/rules.mk:EXTRA_LDFLAGS=
BUILD/rules.mk:NOTEST_LDFLAGS=
BUILD/rules.mk:ALL_LDFLAGS  = $(EXTRA_LDFLAGS) $(NOTEST_LDFLAGS) $(LDFLAGS)
BUILD/rules.mk:LT_LDFLAGS   = 
BUILD/rules.mk:LINK         = $(LIBTOOL) $(LTFLAGS) --mode=link $(LT_LDFLAGS) $(COMPILE) -version-info
9:19:9 $(ALL_LDFLAGS) -o $@

> grep libaprutil-0 OUTPUT_OF_MAKE_CMD

libaprutil-0 is first mentioned on the line that tries to link the library together, which
fails: 

/bin/sh /UserData/tmp/apr/build/apr/../../inst/build/libtool --silent --mode=link gcc -g -O2
-DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp-precomp -I/UserData/tmp/apr/dist/apr-util-0.9.18/include
-I/UserData/tmp/apr/dist/apr-util-0.9.18/include/private -I/UserData/tmp/apr/build/apr/../../inst/include/apr-0
-I/UserData/tmp/apr/dist/apr-util-0.9.18/xml/expat/lib -version-info 9:19:9 -o libaprutil-0.la
-rpath /UserData/tmp/apr/inst/lib buckets/apr_brigade.lo buckets/apr_buckets.lo buckets/apr_buckets_alloc.lo
buckets/apr_buckets_eos.lo buckets/apr_buckets_file.lo buckets/apr_buckets_flush.lo buckets/apr_buckets_heap.lo
buckets/apr_buckets_mmap.lo buckets/apr_buckets_pipe.lo buckets/apr_buckets_pool.lo buckets/apr_buckets_refcount.lo
buckets/apr_buckets_simple.lo buckets/apr_buckets_socket.lo crypto/apr_md4.lo crypto/apr_md5.lo
crypto/apr_sha1.lo crypto/getuuid.lo crypto/uuid.lo dbm/apr_dbm.lo dbm/apr_dbm_berkeleydb.lo
dbm/apr_dbm_gdbm.lo dbm/apr_dbm_ndbm.lo dbm/apr_dbm_sdbm.lo dbm/sdbm/sdbm.lo dbm/sdbm/sdbm_hash.lo
dbm/sdbm/sdbm_lock.lo dbm/sdbm/sdbm_pair.lo encoding/apr_base64.lo hooks/apr_hooks.lo ldap/apr_ldap_compat.lo
ldap/apr_ldap_url.lo uri/apr_uri.lo xml/apr_xml.lo misc/apr_date.lo misc/apr_queue.lo misc/apr_reslist.lo
misc/apr_rmm.lo misc/apu_version.lo strmatch/apr_strmatch.lo xlate/xlate.lo -L/UserData/tmp/apr/dist/apr-util-0.9.18/xml/expat/lib
/UserData/tmp/apr/dist/apr-util-0.9.18/xml/expat/lib/libexpat.la -liconv /UserData/tmp/apr/build/apr/../../inst/lib/libapr-0.la
-lresolv -lpthread
libtool: link: cannot find the library `/UserData/tmp/apr/dist/apr-util-0.9.18/xml/expat/lib/libexpat.la'
or unhandled argument `/UserData/tmp/apr/dist/apr-util-0.9.18/xml/expat/lib/libexpat.la'
make[1]: *** [libaprutil-0.la] Error 1
make: *** [all-recursive] Error 1

-- 
sander@temme.net              http://www.temme.net/sander/
PGP FP: FC5A 6FC6 2E25 2DFD 8007  EE23 9BB8 63B0 F51B B88A

View my availability: http://tungle.me/sctemme


Mime
View raw message