php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #51316 Undefined first referenced symbol in file mysql_set_character_set ext/mysql/.li
Submitted: 2010-03-17 22:15 UTC Modified: 2010-10-28 09:34 UTC
From: andressucer at gmail dot com Assigned: mysql (profile)
Status: Closed Package: Compile Failure
PHP Version: 5.3.2 OS: Solaris
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: andressucer at gmail dot com
New email:
PHP Version: OS:

 

 [2010-03-17 22:15 UTC] 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


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-03-21 20:48 UTC] hholzgra@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-31 03:33 UTC] 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-04-16 18:20 UTC] progmanpaul at gmail dot com
If you omit --with-openssl then the GD Lib portion fails because it requires libssl - FYI.
 [2010-04-24 00:59 UTC] felipe@php.net
-Status: Open +Status: Assigned -Assigned To: +Assigned To: mysql
 [2010-09-29 22:08 UTC] 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-09-30 17:40 UTC] andressucer at gmail dot com
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
 [2010-10-28 09:34 UTC] uw@php.net
-Status: Assigned +Status: Closed
 [2010-10-28 09:34 UTC] uw@php.net
If I'm not mistaken the reporter says the problem is solved. Closing.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 13 20:01:33 2025 UTC