php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #56725 configure breaks ($SED undefined)
Submitted: 2005-12-15 19:55 UTC Modified: 2008-05-08 10:51 UTC
From: hjones at servercave dot com Assigned:
Status: Not a bug Package: PDO_MYSQL (PECL)
PHP Version: 5.0.4 OS: Linux
Private report: No CVE-ID:
 [2005-12-15 19:55 UTC] hjones at servercave dot com
Description:
------------
PDO_MYSQL-1.0.1/config.m4 does not define $SED before line 53 (where it is first used).

This causes the PDO_MYSQL_INCLUDE, PDO_MYSQL_LIBS to be misassigned even if "mysql_config" exists, causing configure to fail.

Defining $SED or replacing with /bin/sed fixes this and allows pdo_mysql.so to configure and build cleanly.

Reproduce code:
---------------
tar -xf PDO_MYSQL.tar
cd PDO_MYSQL-1.0.1
phpize
./configure

Expected result:
----------------
Configure should succeed.  =)

Actual result:
--------------
checking for MySQL support for PDO... yes, shared
checking for mysql_config... /usr/bin/mysql_config
./configure: line 3038: -e: command not found
./configure: line 3039: -e: command not found
checking for mysql_query in -lmysqlclient... no
configure: error: mysql_query missing!?


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2006-04-20 07:18 UTC] yanthestya at yahoo dot com
I ran into the same problem and solve it this way:

set SED shell variable to sed

add this line:
ac_cv_lib_mysqlclient_mysql_query=yes,

before this line:
if test $ac_cv_lib_mysqlclient_mysql_query = yes; then

a bit crude,
but hey, it works!:D
 [2008-05-08 10:51 UTC] johannes at schlueters dot de
Thank you for taking the time to report a problem with PHP.
Unfortunately you are not using a current version of PHP -- 
the problem might already be fixed. Please download a new
PHP version from http://www.php.net/downloads.php

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PECL.

Should be fixed with current PHP
 
PHP Copyright © 2001-2014 The PHP Group
All rights reserved.
Last updated: Fri Apr 18 11:02:40 2014 UTC