Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Compiling PHP with MySQL

645864Feb 10 2011 — edited Feb 16 2011
Hello 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

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Mar 16 2011
Added on Feb 10 2011
5 comments
576 views