From:             jthomsen at cox dot net
Operating system: Mac OS X 10.5.5
PHP version:      5.2.7
PHP Bug Type:     Compile Failure
Bug description:  Make fails with mysql and GD together

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

Reply via email to