ID: 41231 User updated by: hillct-php-bugreport at cthill dot org Reported By: hillct-php-bugreport at cthill dot org Status: Open Bug Type: Documentation problem Operating System: Lunux (fc4-fc6) x86_64 PHP Version: 5CVS-2007-04-29 (snap) New Comment:
The ./configure --help display is a bit vague but at least it doesn't say 'path to libdir' which is what I found somewhere else. It's been a while since I looked at this so I don't recall exactly. I grepped through the docs in the tarball and none of them seem to contain the problem wording. It could have been on php.net or some place more innocuous and not directly related to the project like one of the mailing lists. At any rate, it would be beneficial if the INSTALL document mentioned the proper formatting of the libdir argument. It's also possibly I simply misinterpreted the notation convention included with the ./configure --help results, but there seem to be plenty of others who have made the same error, so regardless of whether it's technically correct, it's probably worth clarifying or highlighting somewhere more prominent. When I get some more time, I'll look further into where I found the problematic documentation explicitly specifying full path. Clearly I should have taken better notes when initially submitting the bug. Previous Comments: ------------------------------------------------------------------------ [2007-08-22 17:10:01] [EMAIL PROTECTED] "The documentation indicates that --with-libdir should be used to specify a full path" Could you please specify where you found that exactly? I can't seem to find any mention of the --with-libdir flag in the online documentation. ------------------------------------------------------------------------ [2007-04-30 13:03:37] [EMAIL PROTECTED] "experts" :D ------------------------------------------------------------------------ [2007-04-30 11:55:08] hillct-php-bugreport at cthill dot org The documentation indicates that --with-libdir should be used to specify a full path, which is a case tested before this bug was submitted. The documentation should be updated to reflect use of the libdir argument with relative paths or path fragments. Having consulted many supposed expert php developers, who have all told me the configure script is broken in this way (one having given me the patch as a solution), it seems the documentation needs to be clarified on this point. ------------------------------------------------------------------------ [2007-04-30 07:38:05] [EMAIL PROTECTED] You should be using --with-libdir=lib64 in your configure line. No bug here. ------------------------------------------------------------------------ [2007-04-29 21:40:58] hillct-php-bugreport at cthill dot org Description: ------------ The configure script fails to search for the mysql libraries in the proper location for some (Fedora) x86_64 environments. There is no way to override this behavior on the configure command line. This error is 100% reproducible in FC4 - FC6 on x86_64 hardware. The solution is a one line fix in the configure script. More properly it should probably be applied to whatever m4 macro is used to construct the script, but that doesn't seem to be available in the snapshot. The patch that corrects this bug is available here: http://www.pastebin.ca/465020 Reproduce code: --------------- configure --with-zlib --with-mysql --enable-mbstring --enable-fastcgi and --enable-discard-path --no-create --no-recursion Expected result: ---------------- checking for MySQL support... yes checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock checking for mysql_close in -lmysqlclient... yes This result is achieved by applying the patch located here: http://www.pastebin.ca/465020 Actual result: -------------- checking for specified location of the MySQL UNIX socket... no checking for MySQL UNIX socket location... /var/lib/mysql/mysql.sock configure: error: Cannot find libmysqlclient under /usr. Note that the MySQL client library is not bundled anymore! ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=41231&edit=1