#41803 [Fbk-Opn]: Linking MySQLi fails during ./configure

2007-06-26 Thread seth at pricepages dot org
 ID:   41803
 User updated by:  seth at pricepages dot org
 Reported By:  seth at pricepages dot org
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: Mac 10.4.9
 PHP Version:  5CVS-2007-06-25 (snap)
 New Comment:

I deleted the entire directory and reinstalled from the .tar.gz 
snapshot. I still get the error, but the config.log is different 
(according to diff). It's uploaded to the same address.

That looks like the error I'm getting. What command can I use to test
it 
out?


Previous Comments:


[2007-06-26 10:51:05] [EMAIL PROTECTED]

Perhaps this is the issue here:
http://www.fatmixx.com/2007/05/30/ruby-mysql-gem-error/




[2007-06-26 10:43:16] [EMAIL PROTECTED]

That config.log is identical to what I get for succesful run.
Just to be sure: You're using 100% fresh sources, ie. you have deleted
config.cache before rerunning configure?




[2007-06-26 03:08:19] seth at pricepages dot org

Here it is in its entirety:

http://144.92.10.211/config.log



[2007-06-25 23:29:50] [EMAIL PROTECTED]

What does config.log have about this?



[2007-06-25 22:36:59] seth at pricepages dot org

$ ls -l /usr/local/mysql/lib/libmysqlclient.15.dylib
-rwxr-xr-x   1 root  mysql  2033452 Apr 26 15:48 /usr/local/mysql/lib/
libmysqlclient.15.dylib

$ ls -l /usr/local/mysql/lib/mysql/ 
ls: /usr/local/mysql/lib/mysql/: No such file or directory



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/41803

-- 
Edit this bug report at http://bugs.php.net/?id=41803edit=1


#41803 [Fbk-Opn]: Linking MySQLi fails during ./configure

2007-06-25 Thread seth at pricepages dot org
 ID:   41803
 User updated by:  seth at pricepages dot org
 Reported By:  seth at pricepages dot org
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: Mac 10.4.9
 PHP Version:  5CVS-2007-06-25 (snap)
 New Comment:

No, the library is in /usr/local/mysql/lib and mysql_config beleives it

is in /usr/local/mysql/lib. I'm not sure what is causing the conftest 
program to do what it's doing.

The mysql install was a binary install of v5.0.41, and as far as I can

tell is working fine.


Previous Comments:


[2007-06-25 20:43:24] [EMAIL PROTECTED]

According to your mysql_config output, the library should be in:

/usr/local/mysql/lib/

And you say the library is in:

/usr/local/mysql/lib/mysql/

Have you moved it manually or something?



[2007-06-25 17:27:51] seth at pricepages dot org

Description:

The test program compiled by configure links to a non-existant mysqli 
library (and fails to be run). See the following debug.log:
CONFIGURE:   './configure' '--with-mysqli=/usr/local/mysql/bin/
mysql_config'
CC: gcc
CFLAGS: -I/usr/local/include -g -O2
CPPFLAGS:-no-cpp-precomp
CXX:
CXXFLAGS:   
INCLUDES:-I/usr/include/libxml2 -I/usr/local/php/
php5.2-200706251630/ext/date/lib -I/usr/local/mysql/include
LDFLAGS:-liconv -L/usr/local/lib  -L/usr/local/lib -L/usr/local/
lib -L/usr/local/mysql/lib -L/usr/local/mysql/lib
LIBS:   -liconv -lm  -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm

-lmysqlclient -lz -lm -lxml2 -lz -liconv -lm
DLIBS:  
SAPI:   cgi
PHP_RPATHS:  /usr/local/lib /usr/local/mysql/lib
uname -a:   Darwin Pine06.local 8.10.0 Darwin Kernel Version 8.10.0: 
Wed May 23 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC Power 
Macintosh powerpc

gcc -o conftest -I/usr/local/include -g -O2  -no-cpp-precomp -liconv -
L/usr/local/lib  -L/usr/local/lib -L/usr/local/lib -L/usr/local/mysql/
lib -L/usr/local/mysql/lib conftest.c -liconv -lm  -lxml2 -lz -liconv 
-lm -lxml2 -lz -liconv -lm -lmysqlclient -lz -lm -lxml2 -lz -liconv -
lm 15
conftest.c: In function 'main':
conftest.c:3: warning: incompatible implicit declaration of built-in 
function 'exit'
dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.
15.dylib
  Referenced from: /usr/local/php/php5.2-200706251630/./conftest
  Reason: image not found
./configure: line 90558:  4955 Trace/BPT trap  ./conftest


The dyld *does* exist at this location:
/usr/local/mysql/lib/libmysqlclient.15.dylib

mysql_config gives this:
Usage: /usr/local/mysql/bin/mysql_config [OPTIONS]
Options:
--cflags [-I/usr/local/mysql/include -Os -arch ppc -
fno-common]
--include[-I/usr/local/mysql/include]
--libs   [-L/usr/local/mysql/lib -lmysqlclient -lz -
lm]
--libs_r [-L/usr/local/mysql/lib -lmysqlclient_r -lz -
lm]
--socket [/tmp/mysql.sock]
--port   [3306]
--version[5.0.41]
--libmysqld-libs [-L/usr/local/mysql/lib -lmysqld -lz -lm]

This problem exists in the latest v5 CVS snap and 5.2.3, but not in 
5.2.0.

Reproduce code:
---
 ./configure  --with-mysqli=/usr/local/mysql/bin/mysql_config

Expected result:

Configure should end like this:
...
| your web space, users may be able to circumvent existing .htaccess |
| security by loading files directly through the parser.  See|
| http://www.php.net/manual/security.php for more details.   |
++
| License:   |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE.  By continuing this installation |
...

Actual result:
--
But it doesn't:
...
| your web space, users may be able to circumvent existing .htaccess |
| security by loading files directly through the parser.  See|
| http://www.php.net/manual/security.php for more details.   |
++
|   *** ATTENTION ***|
||
| Something is likely to be messed up here, because the configure|
| script was not able to detect a simple feature on your platform.   |
| This is often caused by incorrect configuration parameters. Please |
| see the file debug.log for error messages. |
||
| If you are unable to fix this, send the file debug.log to the  |
| [EMAIL PROTECTED] mailing list and include appropiate  |
| information about your setup.  

#41803 [Fbk-Opn]: Linking MySQLi fails during ./configure

2007-06-25 Thread seth at pricepages dot org
 ID:   41803
 User updated by:  seth at pricepages dot org
 Reported By:  seth at pricepages dot org
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: Mac 10.4.9
 PHP Version:  5CVS-2007-06-25 (snap)
 New Comment:

$ ls -l /usr/local/mysql/lib/libmysqlclient.15.dylib
-rwxr-xr-x   1 root  mysql  2033452 Apr 26 15:48 /usr/local/mysql/lib/
libmysqlclient.15.dylib

$ ls -l /usr/local/mysql/lib/mysql/ 
ls: /usr/local/mysql/lib/mysql/: No such file or directory


Previous Comments:


[2007-06-25 21:45:47] [EMAIL PROTECTED]

ls -l /usr/local/mysql/lib/libmysqlclient.15.dylib
?



[2007-06-25 21:28:42] seth at pricepages dot org

No, the library is in /usr/local/mysql/lib and mysql_config beleives it

is in /usr/local/mysql/lib. I'm not sure what is causing the conftest 
program to do what it's doing.

The mysql install was a binary install of v5.0.41, and as far as I can

tell is working fine.



[2007-06-25 20:43:24] [EMAIL PROTECTED]

According to your mysql_config output, the library should be in:

/usr/local/mysql/lib/

And you say the library is in:

/usr/local/mysql/lib/mysql/

Have you moved it manually or something?



[2007-06-25 17:27:51] seth at pricepages dot org

Description:

The test program compiled by configure links to a non-existant mysqli 
library (and fails to be run). See the following debug.log:
CONFIGURE:   './configure' '--with-mysqli=/usr/local/mysql/bin/
mysql_config'
CC: gcc
CFLAGS: -I/usr/local/include -g -O2
CPPFLAGS:-no-cpp-precomp
CXX:
CXXFLAGS:   
INCLUDES:-I/usr/include/libxml2 -I/usr/local/php/
php5.2-200706251630/ext/date/lib -I/usr/local/mysql/include
LDFLAGS:-liconv -L/usr/local/lib  -L/usr/local/lib -L/usr/local/
lib -L/usr/local/mysql/lib -L/usr/local/mysql/lib
LIBS:   -liconv -lm  -lxml2 -lz -liconv -lm -lxml2 -lz -liconv -lm

-lmysqlclient -lz -lm -lxml2 -lz -liconv -lm
DLIBS:  
SAPI:   cgi
PHP_RPATHS:  /usr/local/lib /usr/local/mysql/lib
uname -a:   Darwin Pine06.local 8.10.0 Darwin Kernel Version 8.10.0: 
Wed May 23 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC Power 
Macintosh powerpc

gcc -o conftest -I/usr/local/include -g -O2  -no-cpp-precomp -liconv -
L/usr/local/lib  -L/usr/local/lib -L/usr/local/lib -L/usr/local/mysql/
lib -L/usr/local/mysql/lib conftest.c -liconv -lm  -lxml2 -lz -liconv 
-lm -lxml2 -lz -liconv -lm -lmysqlclient -lz -lm -lxml2 -lz -liconv -
lm 15
conftest.c: In function 'main':
conftest.c:3: warning: incompatible implicit declaration of built-in 
function 'exit'
dyld: Library not loaded: /usr/local/mysql/lib/mysql/libmysqlclient.
15.dylib
  Referenced from: /usr/local/php/php5.2-200706251630/./conftest
  Reason: image not found
./configure: line 90558:  4955 Trace/BPT trap  ./conftest


The dyld *does* exist at this location:
/usr/local/mysql/lib/libmysqlclient.15.dylib

mysql_config gives this:
Usage: /usr/local/mysql/bin/mysql_config [OPTIONS]
Options:
--cflags [-I/usr/local/mysql/include -Os -arch ppc -
fno-common]
--include[-I/usr/local/mysql/include]
--libs   [-L/usr/local/mysql/lib -lmysqlclient -lz -
lm]
--libs_r [-L/usr/local/mysql/lib -lmysqlclient_r -lz -
lm]
--socket [/tmp/mysql.sock]
--port   [3306]
--version[5.0.41]
--libmysqld-libs [-L/usr/local/mysql/lib -lmysqld -lz -lm]

This problem exists in the latest v5 CVS snap and 5.2.3, but not in 
5.2.0.

Reproduce code:
---
 ./configure  --with-mysqli=/usr/local/mysql/bin/mysql_config

Expected result:

Configure should end like this:
...
| your web space, users may be able to circumvent existing .htaccess |
| security by loading files directly through the parser.  See|
| http://www.php.net/manual/security.php for more details.   |
++
| License:   |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE.  By continuing this installation |
...

Actual result:
--
But it doesn't:
...
| your web space, users may be able to circumvent existing .htaccess |
| security by loading files directly through the parser.  See|
| http://www.php.net/manual/security.php for more details.   |
++
|   *** ATTENTION ***|
||
| 

#41803 [Fbk-Opn]: Linking MySQLi fails during ./configure

2007-06-25 Thread seth at pricepages dot org
 ID:   41803
 User updated by:  seth at pricepages dot org
 Reported By:  seth at pricepages dot org
-Status:   Feedback
+Status:   Open
 Bug Type: Compile Failure
 Operating System: Mac 10.4.9
 PHP Version:  5CVS-2007-06-25 (snap)
 New Comment:

Here it is in its entirety:

http://144.92.10.211/config.log


Previous Comments:


[2007-06-25 23:29:50] [EMAIL PROTECTED]

What does config.log have about this?



[2007-06-25 22:36:59] seth at pricepages dot org

$ ls -l /usr/local/mysql/lib/libmysqlclient.15.dylib
-rwxr-xr-x   1 root  mysql  2033452 Apr 26 15:48 /usr/local/mysql/lib/
libmysqlclient.15.dylib

$ ls -l /usr/local/mysql/lib/mysql/ 
ls: /usr/local/mysql/lib/mysql/: No such file or directory



[2007-06-25 21:45:47] [EMAIL PROTECTED]

ls -l /usr/local/mysql/lib/libmysqlclient.15.dylib
?



[2007-06-25 21:28:42] seth at pricepages dot org

No, the library is in /usr/local/mysql/lib and mysql_config beleives it

is in /usr/local/mysql/lib. I'm not sure what is causing the conftest 
program to do what it's doing.

The mysql install was a binary install of v5.0.41, and as far as I can

tell is working fine.



[2007-06-25 20:43:24] [EMAIL PROTECTED]

According to your mysql_config output, the library should be in:

/usr/local/mysql/lib/

And you say the library is in:

/usr/local/mysql/lib/mysql/

Have you moved it manually or something?



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/41803

-- 
Edit this bug report at http://bugs.php.net/?id=41803edit=1