ID:               46793
 User updated by:  jthomsen at cox dot net
 Reported By:      jthomsen at cox dot net
-Status:           Feedback
+Status:           Closed
 Bug Type:         Compile Failure
 Operating System: Mac OS X 10.5.5
 PHP Version:      5.2.7
 New Comment:

I spent a few hours trying to compile PHP with different options and 
tweaking some of my installed libraries like autoconf.  I don't know 
what I did, but I finally got it to install.  Some of the make tests 
failed, but that for a different bug report.


Previous Comments:
------------------------------------------------------------------------

[2008-12-10 15:26:11] [EMAIL PROTECTED]

Does it work if you build only with mysql and gd (leave mysqli out!) ?

------------------------------------------------------------------------

[2008-12-10 01:40:52] jthomsen at cox dot net

I tried with the latest snapshot (php5.2-200812092330) just now.  Still

having the same problem.

------------------------------------------------------------------------

[2008-12-08 15:22:41] jthomsen at cox dot net

I tried that already, and unfortunately it has no effect.  I have also

tried using a clean source, i.e. one I just uncompressed.

------------------------------------------------------------------------

[2008-12-08 10:38:23] [EMAIL PROTECTED]

make clean


------------------------------------------------------------------------

[2008-12-08 04:22:02] jthomsen at cox dot net

Description:
------------
When I try to install the mySql and GD modules together, make fails.

 ./configure '--prefix=/usr' '--mandir=/usr/share/man' '--
infodir=/usr/share/info' '--with-apxs2=/usr/sbin/apxs' '--with-mysql-
sock=/var/mysql' '--with-mysql=/usr/local/mysql' '--with-
mysqli=/usr/local/mysql/bin/mysql_config' '--with-gd' '-with-png-
dir=/sw' '--with-jpeg-dir=/sw' '--with-freetype-dir=/sw/lib/freetype2'


But, I can run make successfully if I install mySql or GD:

./configure '--prefix=/usr' '--mandir=/usr/share/man' '--
infodir=/usr/share/info' '--with-apxs2=/usr/sbin/apxs' '--with-gd' '-
with-png-dir=/sw' '--with-jpeg-dir=/sw' '--with-freetype-
dir=/sw/lib/freetype2'

or:

./configure '--prefix=/usr' '--mandir=/usr/share/man' '--
infodir=/usr/share/info' '--with-apxs2=/usr/sbin/apxs' '--with-mysql-
sock=/var/mysql' '--with-mysql=/usr/local/mysql' '--with-
mysqli=/usr/local/mysql/bin/mysql_config'







Reproduce code:
---------------
./configure '--prefix=/usr' '--mandir=/usr/share/man'
'--infodir=/usr/share/info' '--with-apxs2=/usr/sbin/apxs'
'--with-mysql-sock=/var/mysql' '--with-mysql=/usr/local/mysql'
'--with-mysqli=/usr/local/mysql/bin/mysql_config' '--with-gd'
'-with-png-dir=/sw' '--with-jpeg-dir=/sw'
'--with-freetype-dir=/sw/lib/freetype2'

make

Expected result:
----------------
a successful compile

Actual result:
--------------
Undefined symbols:
  "_mysql_set_local_infile_handler", referenced from:
      _php_set_local_infile_handler_default in mysqli.o
  "_mysql_enable_rpl_parse", referenced from:
      _zif_mysqli_enable_rpl_parse in mysqli_repl.o
  "_mysql_server_end", referenced from:
      _zm_shutdown_mysql in php_mysql.o
      _zm_shutdown_mysqli in mysqli.o
  "_mysql_stmt_close", referenced from:
      _php_clear_stmt_bind in mysqli.o
      _zif_mysqli_prepare in mysqli_api.o
      _zif_mysqli_stmt_close in mysqli_api.o
  "_mysql_set_server_option", referenced from:
      _zif_mysqli_real_query in mysqli_api.o
      _zif_mysqli_multi_query in mysqli_nonapi.o
      _zif_mysqli_multi_query in mysqli_nonapi.o
      _zif_mysqli_query in mysqli_nonapi.o
  "_mysql_set_character_set", referenced from:
      _zif_mysql_set_charset in php_mysql.o
      _zif_mysqli_set_charset in mysqli_nonapi.o
  "_mysql_stmt_fetch", referenced from:
      _zif_mysqli_stmt_fetch in mysqli_api.o
  "_mysql_stmt_field_count", referenced from:
      _zif_mysqli_stmt_field_count in mysqli_api.o
      _zif_mysqli_stmt_store_result in mysqli_api.o
      _zif_mysqli_stmt_bind_result in mysqli_api.o
      _stmt_field_count_read in mysqli_prop.o
  "_mysql_rpl_query_type", referenced from:
      _zif_mysqli_rpl_query_type in mysqli_repl.o
  "_mysql_get_client_version", referenced from:
      _zif_mysqli_get_client_version in mysqli_api.o
  "_mysql_next_result", referenced from:
      _zif_mysqli_next_result in mysqli_api.o
  "_mysql_enable_reads_from_master", referenced from:
      _zif_mysqli_enable_reads_from_master in mysqli_repl.o
  "_mysql_stmt_errno", referenced from:
      _zif_mysqli_stmt_errno in mysqli_api.o
      _stmt_errno_read in mysqli_prop.o
  "_mysql_stmt_error", referenced from:
      _zif_mysqli_stmt_error in mysqli_api.o
      _stmt_error_read in mysqli_prop.o
  "_mysql_ssl_set", referenced from:
      _zif_mysqli_ssl_set in mysqli_api.o
  "_mysql_stmt_store_result", referenced from:
      _zif_mysqli_stmt_store_result in mysqli_api.o
  "_mysql_warning_count", referenced from:
      _zif_mysqli_warning_count in mysqli_api.o
      _link_warning_count_read in mysqli_prop.o
      _zif_mysqli_get_warnings in mysqli_nonapi.o
      _zif_mysqli_stmt_get_warnings in mysqli_nonapi.o
      _zim_mysqli_warning___construct in mysqli_warning.o
  "_mysql_stmt_init", referenced from:
      _zif_mysqli_stmt_construct in mysqli.o
      _zif_mysqli_stmt_construct in mysqli.o
      _zif_mysqli_prepare in mysqli_api.o
      _zif_mysqli_stmt_init in mysqli_api.o
  "_mysql_stmt_prepare", referenced from:
      _zif_mysqli_stmt_construct in mysqli.o
      _zif_mysqli_prepare in mysqli_api.o
      _zif_mysqli_stmt_prepare in mysqli_api.o
  "_mysql_stmt_sqlstate", referenced from:
      _zif_mysqli_stmt_sqlstate in mysqli_api.o
      _stmt_sqlstate_read in mysqli_prop.o
  "_mysql_server_init", referenced from:
      _zm_startup_mysql in php_mysql.o
      _zm_startup_mysqli in mysqli.o
  "_mysql_slave_query", referenced from:
      _zif_mysqli_slave_query in mysqli_repl.o
  "_mysql_autocommit", referenced from:
      _zif_mysqli_autocommit in mysqli_api.o
  "_mysql_get_server_version", referenced from:
      _zif_mysqli_get_server_version in mysqli_api.o
      _link_server_version_read in mysqli_prop.o
  "_mysql_stmt_reset", referenced from:
      _zif_mysqli_stmt_reset in mysqli_api.o
  "_mysql_stmt_send_long_data", referenced from:
      _zif_mysqli_stmt_send_long_data in mysqli_api.o
  "_mysql_get_character_set_info", referenced from:
      _zif_mysqli_get_charset in mysqli_nonapi.o
  "_mysql_stmt_affected_rows", referenced from:
      _zif_mysqli_stmt_affected_rows in mysqli_api.o
      _stmt_affected_rows_read in mysqli_prop.o
  "_mysql_stmt_num_rows", referenced from:
      _zif_mysqli_stmt_num_rows in mysqli_api.o
      _stmt_num_rows_read in mysqli_prop.o
  "_mysql_master_query", referenced from:
      _zif_mysqli_master_query in mysqli_repl.o
  "_mysql_stmt_bind_result", referenced from:
      _zif_mysqli_stmt_bind_result in mysqli_api.o
  "_mysql_sqlstate", referenced from:
      _zif_mysqli_sqlstate in mysqli_api.o
      _link_sqlstate_read in mysqli_prop.o
      _zif_mysqli_multi_query in mysqli_nonapi.o
  "_mysql_disable_reads_from_master", referenced from:
      _zif_mysqli_disable_reads_from_master in mysqli_repl.o
  "_mysql_disable_rpl_parse", referenced from:
      _zif_mysqli_disable_rpl_parse in mysqli_repl.o
  "_mysql_stmt_result_metadata", referenced from:
      _zif_mysqli_stmt_result_metadata in mysqli_api.o
  "_mysql_stmt_data_seek", referenced from:
      _zif_mysqli_stmt_data_seek in mysqli_api.o
  "_mysql_rpl_parse_enabled", referenced from:
      _zif_mysqli_rpl_parse_enabled in mysqli_repl.o
  "_mysql_rpl_probe", referenced from:
      _zif_mysqli_rpl_probe in mysqli_repl.o
  "_mysql_stmt_insert_id", referenced from:
      _zif_mysqli_stmt_insert_id in mysqli_api.o
      _stmt_insert_id_read in mysqli_prop.o
  "_mysql_commit", referenced from:
      _zif_mysqli_commit in mysqli_api.o
  "_mysql_stmt_bind_param", referenced from:
      _zif_mysqli_stmt_bind_param in mysqli_api.o
  "_mysql_stmt_attr_get", referenced from:
      _zif_mysqli_stmt_attr_get in mysqli_api.o
      _zif_mysqli_stmt_bind_result in mysqli_api.o
  "_mysql_stmt_attr_set", referenced from:
      _zif_mysqli_stmt_attr_set in mysqli_api.o
      _zif_mysqli_stmt_store_result in mysqli_api.o
  "_mysql_rollback", referenced from:
      _zif_mysqli_rollback in mysqli_api.o
  "_mysql_more_results", referenced from:
      _zif_mysqli_more_results in mysqli_api.o
  "_mysql_stmt_execute", referenced from:
      _zif_mysqli_stmt_execute in mysqli_api.o
  "_mysql_stmt_param_count", referenced from:
      _zif_mysqli_stmt_param_count in mysqli_api.o
      _stmt_param_count_read in mysqli_prop.o
  "_mysql_stmt_free_result", referenced from:
      _zif_mysqli_stmt_free_result in mysqli_api.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
make: *** [libs/libphp5.bundle] Error 1


------------------------------------------------------------------------


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

Reply via email to