Compiling PHP with MySQL
645864Feb 10 2011 — edited Feb 16 2011Hello all,
I am having trouble compiling php 5.2 (also tried 5.3). This is my configure line:
=======
./configure with-apxs2=/usr/local/apache2/bin/apxs with-mysql=/opt/mysql/mysql
=======
When I run "make", I get the following error:
=======
Undefined first referenced
symbol in file
mysql_set_character_set ext/mysql/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'
=======
Here are my machine details:
=======
@[machine-name]-/usr/local/php5.2 # uname -a
SunOS [machine-name] 5.10 Generic_138889-03 i86pc i386 i86pc Solaris
@[machine-name]-/usr/local/php5.2 # isainfo -kv
64-bit amd64 kernel modules
=======
PHP compiles fine when I do it without MySQL. Any assistance is greatly appreciated.
Please let me know if you need additional information.
Thank you.
-Ryan