On Sep 9, 2007, at 2:33 PM, Bojan Smojver wrote:
On Fri, 2007-09-07 at 16:50 -0700, Sander Temme wrote:Nope.So, have you tried pointing it to your own, by passing the location to --with-mysql? Does it still fail?
Re-ran configure from this morning by calling ./config.nice --with-mysql=/usr and got: <..> checking for mysql_config... /usr/bin/mysql_config adding "-I/usr/include/mysql" to CPPFLAGS setting LDFLAGS to "-pipe -L/usr/lib/mysql -lmysqlclient_r -lz -lm" configure: checking for mysql in /usr checking mysql.h usability... yes checking mysql.h presence... yes checking for mysql.h... yes checking for mysql_init in -lmysqlclient_r... yes setting APRUTIL_INCLUDES to "-I/usr/include/mysql" <..> make clean all <..>/bin/sh /Volumes/X1/home/sctemme/asf/gump/trunk/work/workspace/apr/ dest-09092007/build-1/libtool --silent --mode=link gcc -g -O2 - DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp- precomp -I/Volumes/X1/home/sctemme/work/workspace/apr-util/include - I/Volumes/X1/home/sctemme/work/workspace/apr-util/include/private -I/ Volumes/X1/home/sctemme/asf/gump/trunk/work/workspace/apr-util/ include/private -I/Volumes/X1/home/sctemme/asf/gump/trunk/work/ workspace/apr-util/include -I/Volumes/X1/home/sctemme/asf/gump/trunk/ work/workspace/apr/dest-09092007/include/apr-1 -I/usr/include/mysql -version-info 3:0:3 -o libaprutil-1.la -rpath /Volumes/X1/home/ sctemme/asf/gump/trunk/work/workspace/apr-util/dest-09092007/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_init.lo ldap/apr_ldap_option.lo ldap/ apr_ldap_url.lo misc/apr_date.lo misc/apr_queue.lo misc/ apr_reslist.lo misc/apr_rmm.lo misc/apr_thread_pool.lo misc/ apu_version.lo memcache/apr_memcache.lo uri/apr_uri.lo xml/apr_xml.lo strmatch/apr_strmatch.lo xlate/xlate.lo dbd/apr_dbd.lo ssl/apr_ssl.lo ssl/apr_ssl_openssl.lo ssl/apr_ssl_socket.lo ssl/apr_ssl_winsock.lo dbd/apr_dbd_mysql.lo dbd/apr_dbd_sqlite3.lo -lpthread -lsqlite3 - pipe -L/usr/lib/mysql -lmysqlclient_r -lz -lm -lexpat -liconv / Volumes/X1/home/sctemme/asf/gump/trunk/work/workspace/apr/ dest-09092007/lib/libapr-1.la -lpthread ld: common symbols not allowed with MH_DYLIB output format with the - multi_module option /usr/lib/mysql/libmysqlclient_r.a(my_error.o) definition of common _errbuff (size 512) /usr/lib/mysql/libmysqlclient_r.a(my_static.o) definition of common _my_signals (size 4) /usr/lib/mysql/libmysqlclient_r.a(my_thr_init.o) definition of common _THR_LOCK_open (size 44) /usr/lib/mysql/libmysqlclient_r.a(my_thr_init.o) definition of common _THR_LOCK_malloc (size 44) /usr/lib/mysql/libmysqlclient_r.a(my_thr_init.o) definition of common _LOCK_gethostbyname_r (size 44) /usr/lib/mysql/libmysqlclient_r.a(my_thr_init.o) definition of common _THR_KEY_mysys (size 4) /usr/lib/mysql/libmysqlclient_r.a(my_thr_init.o) definition of common _THR_LOCK_charset (size 44) /usr/lib/mysql/libmysqlclient_r.a(my_thr_init.o) definition of common _THR_LOCK_heap (size 44) /usr/lib/mysql/libmysqlclient_r.a(my_thr_init.o) definition of common _THR_LOCK_isam (size 44) /usr/lib/mysql/libmysqlclient_r.a(my_thr_init.o) definition of common _THR_LOCK_lock (size 44) /usr/lib/mysql/libmysqlclient_r.a(my_thr_init.o) definition of common _THR_LOCK_myisam (size 44) /usr/lib/mysql/libmysqlclient_r.a(my_thr_init.o) definition of common _THR_LOCK_net (size 44) /usr/lib/mysql/libmysqlclient_r.a(charset.o) definition of common _all_charsets (size 1024) /usr/lib/mysql/libmysqlclient_r.a(dbug.o) definition of common _THR_LOCK_dbug (size 44)
/usr/bin/libtool: internal link edit command failed make[1]: *** [libaprutil-1.la] Error 1 make: *** [all-recursive] Error 1 (same deal)So, explicitly overriding the --with-mysql flag doesn't make it forget about the bundled driver.
Interestingly: ./config.nice --with-mysql=/usr/bin/mysql_config <..> checking for mysql_config... no adding "-I/usr/bin/mysql_config/include" to CPPFLAGS setting LDFLAGS to "-L/usr/bin/mysql_config/lib " configure: checking for mysql in /usr/bin/mysql_config checking mysql.h usability... no checking mysql.h presence... no checking for mysql.h... no checking mysql/mysql.h usability... no checking mysql/mysql.h presence... no checking for mysql/mysql.h... no <..> make <..>/bin/sh /Volumes/X1/home/sctemme/asf/gump/trunk/work/workspace/apr/ dest-09092007/build-1/libtool --silent --mode=link gcc -g -O2 - DHAVE_CONFIG_H -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK -no-cpp- precomp -I/Volumes/X1/home/sctemme/work/workspace/apr-util/include - I/Volumes/X1/home/sctemme/work/workspace/apr-util/include/private -I/ Volumes/X1/home/sctemme/asf/gump/trunk/work/workspace/apr-util/ include/private -I/Volumes/X1/home/sctemme/asf/gump/trunk/work/ workspace/apr-util/include -I/Volumes/X1/home/sctemme/asf/gump/trunk/ work/workspace/apr/dest-09092007/include/apr-1 -version-info 3:0:3 -o libaprutil-1.la -rpath /Volumes/X1/home/sctemme/asf/gump/ trunk/work/workspace/apr-util/dest-09092007/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_init.lo ldap/ apr_ldap_option.lo ldap/apr_ldap_url.lo misc/apr_date.lo misc/ apr_queue.lo misc/apr_reslist.lo misc/apr_rmm.lo misc/ apr_thread_pool.lo misc/apu_version.lo memcache/apr_memcache.lo uri/ apr_uri.lo xml/apr_xml.lo strmatch/apr_strmatch.lo xlate/xlate.lo dbd/ apr_dbd.lo ssl/apr_ssl.lo ssl/apr_ssl_openssl.lo ssl/ apr_ssl_socket.lo ssl/apr_ssl_winsock.lo dbd/apr_dbd_sqlite3.lo - lpthread -lsqlite3 -lexpat -liconv /Volumes/X1/home/sctemme/asf/ gump/trunk/work/workspace/apr/dest-09092007/lib/libapr-1.la -lpthread
<..>(completes without error but note mysql is not on the link line in any form)
So now mysql_config is not found (or searched for) on the path... it's still there in /usr/bin! Then configure treats the with-mysql parameter as a directory (as advertised in ./configure --help), does *not* find mysql there, and proceeds to build without mysql support at all!
S. -- Sander Temme [EMAIL PROTECTED] PGP FP: 51B4 8727 466A 0BC3 69F4 B7B8 B2BE BC40 1529 24AF
smime.p7s
Description: S/MIME cryptographic signature
