Hi everybody! I'm working on building a few "similar" Dev machines on different OSs. I've finished a source build of PHP_5_2 branch cvs on a FreeBSD box. Went smoothly! I've tried the same on an OSX box. It's got mostly the same built-from-source prereqs in place as the FreeBSD box. But, building PHP_5_2 on OSX keels over at, ... gcc -bundle -bundle_loader /usr/local/apache2/sbin/httpd -L/usr/local/bdb46/lib -L/usr/local/sqlite/lib -L/usr/local/lib -L/usr/local/apache2/lib -laprutil -ldb-4.6 -lsqlite3 /usr/local/mysql/lib/mysql/libmysqlclient_r.la -lexpat -liconv -L/usr/local/apache2/lib -lapr -lpthread -g -O2 -DZTS -L/usr/local/lib -L/usr/local/ssl/lib -L/usr/local/bdb46/lib ext/libxml/libxml.o ext/openssl/openssl.o ext/openssl/xp_ssl.o ext/pcre/php_pcre.o ext/zlib/zlib.o ext/zlib/zlib_fopen_wrapper.o ext/zlib/zlib_filter.o ext/date/php_date.o ... Zend/zend_exceptions.o Zend/zend_strtod.o Zend/zend_objects.o Zend/zend_object_handlers.o Zend/zend_objects_API.o Zend/zend_default_classes.o Zend/zend_execute.o sapi/apache2handler/mod_php5.o sapi/apache2handler/sapi_apache2.o sapi/apache2handler/apache_config.o sapi/apache2handler/php_functions.o main/internal_functions.o -ldb-4.5 -lz -lpcre -lssl -lcrypto -lm -lxml2 -lz -liconv -lm -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lxml2 -lz -liconv -lm -o libs/libphp5.bundle && cp libs/libphp5.bundle libs/libphp5.so /usr/bin/ld: /usr/local/mysql/lib/mysql/libmysqlclient_r.la bad magic number (not a Mach-O file) collect2: ld returned 1 exit status make: *** [libs/libphp5.bundle] Error 1 I don't know exactly why MySql libs are involved here. I'm NOT configuring the build for any MySQL-related modules to be built; I'll do those separately as extensions, later. During ./configure output, I make sure I see ... checking for MSSQL support via FreeTDS... no checking for MySQL support... no ... checking for MySQLi support... no checking whether to enable embedded MySQLi support... no ... checking for MySQL support for PDO... no ... The only source I've been able to find for the -lmysqlclient_r references is, apu-1-config --libs -ldb-4.6 -lsqlite3 /usr/local/mysql/lib/mysql/libmysqlclient_r.la -lexpat -liconv Which probably gets picked up from PHP's ./configure, ./configure --with-apxs2=/usr/local/apache2/sbin/apxs ... I'm guessing here, but I figure this 'bad magic number' biz is an OSX-only thing. About which I don't know a bunch :-( Any suggestions as to what to do here? Thanks a lot! :-) Ali -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php