|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-12-30 16:41 UTC] shawn dot richards at ink dot ltd dot uk
[2005-12-31 00:42 UTC] sniper@php.net
[2006-03-07 21:05 UTC] thijs dot wijnmaalen at gmail dot com
[2006-04-19 17:01 UTC] pamelastone at gmail dot com
[2006-04-20 10:09 UTC] pfroling at hotmail dot com
[2006-05-02 22:23 UTC] ivanick at vet dot upenn dot edu
[2006-05-15 13:57 UTC] vktechnology at uk2 dot net
[2006-05-15 14:17 UTC] tony2001@php.net
[2006-05-17 01:36 UTC] rsmiderle at gmail dot com
[2006-05-17 02:53 UTC] tbednarek at gmail dot com
[2006-05-17 06:25 UTC] tony2001@php.net
[2006-05-18 16:03 UTC] vktechnology at uk2 dot net
[2006-05-18 16:10 UTC] pajoye@php.net
[2006-06-03 20:19 UTC] svetlovid at mail dot ru
[2006-06-20 15:47 UTC] tony2001@php.net
[2006-06-22 14:34 UTC] valentijn at depagter dot com
[2006-06-28 01:00 UTC] php-bugs at lists dot php dot net
[2006-06-29 16:49 UTC] javier at nediam dot com dot mx
[2006-07-11 17:06 UTC] down at townsquirrel dot de
[2006-07-27 16:04 UTC] c00lways at gmail dot com
[2006-07-27 16:06 UTC] c00lways at gmail dot com
[2006-07-28 00:58 UTC] c00lways at gmail dot com
[2006-08-17 21:30 UTC] hongda dot yen at gmail dot com
[2006-08-24 11:33 UTC] Tetonne at tiscali dot fr
[2006-09-28 10:57 UTC] rafudu at gmail dot com
[2006-10-29 23:30 UTC] davxoc at hotmail dot com
[2006-11-17 14:25 UTC] furyx001 at umn dot edu
[2006-11-21 16:43 UTC] nicolasboulet at maisonlaprise dot com
[2007-01-09 20:14 UTC] dweller at devonweller dot com
[2007-01-29 18:00 UTC] colin dot anderson at red-man dot com
[2007-02-01 10:59 UTC] milnivlek at gmail dot com
[2007-02-09 07:36 UTC] zelzel dot zsu at gmail dot com
[2007-02-09 10:17 UTC] tony2001@php.net
[2012-11-12 12:43 UTC] varun1884 at gmail dot com
[2016-07-11 20:15 UTC] lsastha at outlook dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 09:00:01 2025 UTC |
Description: ------------ Mac OS X patched up to date. Apache 2. PHP 5 (latest snap) Compilation with --with-mysql option fails. Have tried compiling with MySQL 4.x Standard, 5.x Standard (preferred) and 5.x Debug. Same error every compilation even though MySQL works every time. Reproduce code: --------------- ./configure --with-apxs2=/usr/local/apache/bin/apxs --enable-bcmath --enable-debug --with-mysql=/usr/local/mysql --with-zlib-dir=/usr/local/lib Expected result: ---------------- Successful compile. Actual result: -------------- Configure script fails with....... checking for MSSQL support via FreeTDS... no checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... no checking for mysql_close in -lmysqlclient... no checking for mysql_error in -lmysqlclient... no configure: error: mysql configure failed. Please check config.log for more information. -------------------------------------------- Config Log says......... configure:58617: checking for MSSQL support via FreeTDS configure:59267: checking for MySQL support configure:59313: checking for specified location of the MySQL UNIX socket configure:59370: checking for MySQL UNIX socket location configure:59556: checking for mysql_close in -lmysqlclient configure:59575: gcc -o conftest -g -O2 -no-cpp-precomp -L/ usr/local/mysql/lib -L/usr/local/mysql/lib conftest.c - lmysqlclient -lz -lm -lxml2 -lz -liconv -lm -lxml2 -lz - liconv -lm 1>&5 /usr/bin/ld: truncated or malformed archive: /usr/local/ mysql/lib/libmysqlclient.a (ranlib structures in table of contents extends past the end of the table of contents, can't load from it) collect2: ld returned 1 exit status configure: failed program was: #line 59564 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mysql_close(); int main() { mysql_close() ; return 0; } configure:59796: checking for mysql_error in -lmysqlclient configure:59815: gcc -o conftest -g -O2 -no-cpp-precomp -L/ usr/local/mysql/lib -L/usr/local/mysql/lib -L/usr -L/usr conftest.c -lmysqlclient -lz -lz -lm -lxml2 -lz -liconv - lm -lxml2 -lz -liconv -lm 1>&5 /usr/bin/ld: truncated or malformed archive: /usr/local/ mysql/lib/libmysqlclient.a (ranlib structures in table of contents extends past the end of the table of contents, can't load from it) collect2: ld returned 1 exit status configure: failed program was: #line 59804 "configure" #include "confdefs.h" /* Override any gcc2 internal prototype to avoid an error. */ /* We use char because int might match the return type of a gcc2 builtin and then its argument prototype would still apply. */ char mysql_error(); int main() { mysql_error() ; return 0; }