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

 ID:                 51316
 User updated by:    andressucer 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:             Assigned
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Solaris
 PHP Version:        5.3.2
 Assigned To:        mysql
 Block user comment: N

 New Comment:

thank you Adrian

the problem was solved

the installation was successfully completed

with the following configuration:





export 

PATH=/aplicaciones/pgsql843:/usr/local/:/aplicaciones/mysql5136/:/aplicaciones/l

ibxml2-

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

export 

LD_LIBRARY_PATH=/usr/local/:/aplicaciones/mysql5136/:/aplicaciones/zlib/lib/:/us

r/local/lib/:/usr/lib/:/lib/:/usr/local/include/:/aplicaciones/libxml2-

2.6.31/:/usr/sfw/lib:/opt/sfw/lib:/usr/local/lib



./configure --prefix=/aplicaciones/phpmysql
-with-mysql=/aplicaciones/mysql5136/ 

--with-apxs2=/aplicaciones/apachemysql/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/phpmysql
--with-freetype-dir=/aplicaciones/freetype-2.3.1 --

with-openssl=/aplicaciones/openssl --enable-soap  --with-readline
--with-xmlrpc 

--enable-zip --with-pear --enable-sockets --with-ttf



make

make install


Previous Comments:
------------------------------------------------------------------------
[2010-09-29 22:08:24] lobosoli at gmail dot com

If you have solaris 10, you have to remove the mysql of the system with
this 

commands



pkgrm SUNWmysqlr

pkgrm SUNWmysqlt

pkgrm SUNWmysqlu

------------------------------------------------------------------------
[2010-04-16 18:20:01] progmanpaul at gmail dot com

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

------------------------------------------------------------------------
[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