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

 ID:               51316
 Comment by:       progmanpaul at gmail dot com
 Reported by:      andressucer at gmail dot com
 Summary:          Undefined first referenced symbol in file
                   mysql_set_character_set ext/mysql/.li
 Status:           Open
 Type:             Bug
 Package:          Compile Failure
 Operating System: Solaris
 PHP Version:      5.3.2

 New Comment:

If you omit --with-openssl then the GD Lib portion fails because it
requires libssl - FYI.


Previous Comments:
------------------------------------------------------------------------
[2010-03-31 03:33:40] gene at neckosoft dot com

I have the same problem. Here's my configure options:



./configure --prefix=/apps/local/phpdev  --with-curl=/apps/local/curl
--with-openssl=/apps/local/openssl \

--with-mysql=/apps/local/mysql-5.1.45-solaris10-sparc
--with-apxs2=/usr/apache2/bin/apxs -–with-readline=/opt/sfw



and here's the error I am getting:



Undefined                       first referenced

 symbol                             in file

mysql_set_character_set             ext/mysql/.libs/php_mysql.o

ld: fatal: Symbol referencing errors. No output written to sapi/cli/php

collect2: ld returned 1 exit status

*** Error code 1

make: Fatal error: Command failed for target `sapi/cli/php'

------------------------------------------------------------------------
[2010-03-21 20:48:09] hholz...@php.net

Does this also happen when not using -with-openssl ?



Seems to be similar to 



  http://www.phpfreaks.com/forums/index.php?topic=170577.0

------------------------------------------------------------------------
[2010-03-17 22:15:59] andressucer at gmail dot com

Description:
------------
Estoy intentando compilar php con mysql de la siguiente forma:



tar -xvf php-5.3.2.tar

cd php-5.3.2



export 

PATH=/usr/local/ssl/bin/:/aplicaciones/mysql5136/bin:/aplicaciones/mysql5136/:/l

ib/:/usr/local/:/aplicaciones/libxml2-

2.6.31/:/aplicaciones/zlib/lib/:/usr/local/lib/:/usr/ccs/bin/:/usr/sfw/bin/:/usr

/sbin/:/usr/bin/:/bin/:/sbin/:/usr/local/bin/:/opt/csw/bin/:/usr/sfw/bin/:/usr/s

fw/lib:/usr/lib/:/usr/local/include/:/opt/sfw/lib/:/usr/local/lib/



export 

LD_LIBRARY_PATH=/usr/local/ssl/lib/:/aplicaciones/mysql5136/lib/:/aplicaciones/m

ysql5136/:/lib/:/usr/local/:/aplicaciones/libxml2-

2.6.31/:/aplicaciones/zlib/lib/:/usr/local/lib/:/usr/ccs/bin/:/usr/sfw/bin/:/usr

/sbin/:/usr/bin/:/bin/:/sbin/:/usr/local/bin/:/opt/csw/bin/:/usr/sfw/bin/:/usr/s

fw/lib:/usr/lib/:/usr/local/include/:/opt/sfw/lib/:/usr/local/lib/





./configure --prefix=/aplicaciones/phpPrueba  --with-

apxs2=/aplicaciones/apachePrueba/bin/apxs
--with-pgsql=/aplicaciones/pgsql843 --

enable-ftp  --enable-mbstring  --with-gd=/aplicaciones/gd-2.0.35
--with-jpeg-

dir=/aplicaciones/jpeg-6b --with-zlib=/aplicaciones/zlib --with-

curl=/aplicaciones/curl --with-config-file-path=/aplicaciones/phpPrueba
--with-

freetype-dir=/aplicaciones/freetype-2.3.1 --with-openssl=/usr/local/ssl
--

enable-soap --with-mysql=/aplicaciones/mysql5136/ --with-readline
--enable-

sockets



make



pero me presenta el siguiente error: 



Undefined first referenced symbol in file 

mysql_set_character_set             ext/mysql/.libs/php_mysql.o

mysql_set_server_option             ext/mysql/.libs/php_mysql.o

ld: fatal: Symbol referencing errors. No output written to sapi/cli/php

collect2: ld returned 1 exit status

*** Error code 1

make: Fatal error: Command failed for target `sapi/cli/php'



si elimino la opcion --with-mysql=/aplicaciones/mysql5136/ 

compila sin problema, pero no me sirve porque necesito el mysql



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



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

Reply via email to