#41231 [Bgs-Opn]: x86_64 config library path search documentation problem

2007-04-30 Thread hillct-php-bugreport at cthill dot org
 ID:   41231
 User updated by:  hillct-php-bugreport at cthill dot org
-Summary:  mysql lib configure error in x86_64 builds - with
   patch
 Reported By:  hillct-php-bugreport at cthill dot org
-Status:   Bogus
+Status:   Open
-Bug Type: Compile Failure
+Bug Type: *Configuration Issues
 Operating System: Lunux (fc4-fc6) x86_64
 PHP Version:  5CVS-2007-04-29 (snap)
 New Comment:

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.


Previous Comments:


[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=41231edit=1


#41231 [NEW]: mysql lib configure error in x86_64 builds - with patch

2007-04-29 Thread hillct-php-bugreport at cthill dot org
From: hillct-php-bugreport at cthill dot org
Operating system: Lunux (fc4-fc6) x86_64
PHP version:  5CVS-2007-04-29 (snap)
PHP Bug Type: Compile Failure
Bug description:  mysql lib configure error in x86_64 builds - with patch

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 bug report at http://bugs.php.net/?id=41231edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=41231r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=41231r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=41231r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=41231r=fixedcvs
Fixed in release: 
http://bugs.php.net/fix.php?id=41231r=alreadyfixed
Need backtrace:   http://bugs.php.net/fix.php?id=41231r=needtrace
Need Reproduce Script:http://bugs.php.net/fix.php?id=41231r=needscript
Try newer version:http://bugs.php.net/fix.php?id=41231r=oldversion
Not developer issue:  http://bugs.php.net/fix.php?id=41231r=support
Expected behavior:http://bugs.php.net/fix.php?id=41231r=notwrong
Not enough info:  
http://bugs.php.net/fix.php?id=41231r=notenoughinfo
Submitted twice:  
http://bugs.php.net/fix.php?id=41231r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=41231r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=41231r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=41231r=dst
IIS Stability:http://bugs.php.net/fix.php?id=41231r=isapi
Install GNU Sed:  http://bugs.php.net/fix.php?id=41231r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=41231r=float
No Zend Extensions:   http://bugs.php.net/fix.php?id=41231r=nozend
MySQL Configuration Error:http://bugs.php.net/fix.php?id=41231r=mysqlcfg