Bug #36073 [Wfx]: Source-compiled MySQL on x86_64 causes PHP configure failure
| From: | andrey@php.net | Date: | Thu, 28 Oct 2010 07:51:43 +0000 |
| Subject: | Bug #36073 [Wfx]: Source-compiled MySQL on x86_64 causes PHP configure failure | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-155595@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=36073&edit=1
ID: 36073
Updated by: andrey@php.net
Reported by: chris at spawnordie dot com
Summary: Source-compiled MySQL on x86_64 causes PHP configure
failure
Status: Wont fix
Type: Bug
Package: MySQL related
Operating System: Linux/Any
PHP Version: 5.3.2
Assigned To: mysql
Block user comment: N
New Comment:
Erm, I meant that ext/mysql gets only security fixes.
Previous Comments:
------------------------------------------------------------------------
[2010-10-28 09:50:05] andrey@php.net
ext/mysql has been deprecated in favor of ext/mysqli. ext/mysqli gets
only security fixes. Either use the workaround or switch to using
mysqlnd.
------------------------------------------------------------------------
[2010-06-06 08:10:43] philip@php.net
Looks like a bug.
------------------------------------------------------------------------
[2010-06-06 02:29:11] everyminutepies at yahoo dot ca
I can confirm that this does in fact still happen with PHP 5.3.2 on
CentOS 5.5 86_64 when compiling MySQL 5.0.xx and PHP on a standard
installation. Despite being told by the configuration option
--with-libdir=lib64 to use lib64/ it still chooses to use lib/ and fails
to find the necessary files to continue with the ./configure.
The posted workaround by Chris does work flawlessly. I invite the
reviewer to explain either why the documentation is incorrect about the
function of --with-libdir or why it is not respected in regards to mysql
at his leisure.
Trustfully, I agree not to become enraged when he suggests I know
nothing about computers and post an enraged rant about him in the year
2014.
./configure --prefix=/usr/local/secure/php
--with-apxs2=/usr/local/secure/apache2/bin/apxs
--with-mysql=/usr/local/mysql/ --with-libdir=lib64
------------------------------------------------------------------------
[2010-03-25 23:16:19] chris at spawnordie dot com
Other than the bug reviewer just being a flat-out ass...
It is still a bug in PHP. The PHP configure process honors the
"--with-libdir"
value for PostgreSQL and many, many other packages, but NOT for its
check of
MySQL. It is NOT a bug in MySQL, which installs its libraries in lib64,
just
like every other application that is compiled for 64bit OS. But PHP
somehow
"magically" knows how to find all of those other applications. At the
very
least, it is an inconsistency that could have been cleaned up with 15
minutes of
effort by the PHP team when I reported the bug 4 years ago!
And, based on the fact that I provided a work-around, it should have
been clear
that I did, in fact, know what I was doing. Maybe my feelings were a
little
hurt, but there's no excuse for the rudeness this bug reviewer showed.
I
sincerely hope that he/she is no longer in that role -- or doing
anything that
requires using any level of tact with actual people -- because he/she is
just a
jerk and is in serious need of therapy. Maybe he/she didn't get hugged
as a
child and is displaying a superiority complex to cover up low
self-esteem and
fear of being hurt. But I digress.
------------------------------------------------------------------------
[2010-03-25 18:32:22] michael at michaelsnet dot us
IMHO this is a documentation bug. Consider adding a README.64bit file
containing this information and other relevant information.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=36073
--
Edit this bug report at http://bugs.php.net/bug.php?id=36073&edit=1