#38451 [Opn->Fbk]: PDO_MYSQL breaks compilation
| From: | tony2001@php.net | Date: | Mon, 14 Aug 2006 14:36:06 +0000 |
| Subject: | #38451 [Opn->Fbk]: PDO_MYSQL breaks compilation | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-100768@lists.php.net to get a copy of this message | ||
ID: 38451
Updated by: tony2001@php.net
Reported By: terry dot cullen at uq dot edu dot au
-Status: Open
+Status: Feedback
Bug Type: PDO related
Operating System: Solaris 10 x86
PHP Version: 5.1.4
New Comment:
Please install and use GNU ld.
Previous Comments:
------------------------------------------------------------------------
[2006-08-14 14:26:42] terry dot cullen at uq dot edu dot au
php5.2-200608141230 from snap.php.net fails in the same way.
Thanks for looking at this.
Terry
------------------------------------------------------------------------
[2006-08-14 14:23:00] terry dot cullen at uq dot edu dot au
bash-3.00# ld -V
ld: Software Generation Utilities - Solaris Link Editors: 5.10-1.482
------------------------------------------------------------------------
[2006-08-14 14:09:45] tony2001@php.net
Which ld version did you use?
ld -v
------------------------------------------------------------------------
[2006-08-14 14:01:32] terry dot cullen at uq dot edu dot au
Description:
------------
When compiling PHP5.1.4 on Solaris 10x86 the compilation fails with the
follow error;
gcc: ext/pdo_mysql/.libs/pdo_mysql.o: No such file or directory
gcc: ext/pdo_mysql/.libs/mysql_driver.o: No such file or directory
gcc: ext/pdo_mysql/.libs/mysql_statement.o: No such file or directory
gmake: *** [ext/pdo_mysql/pdo_mysql.la] Error 1
This also happened with downloading PDO_MYSQL 1.0.2 and compiling from
source. PDO_OCI builds fine as does the rest of php when I omit the
PDO_MYSQL configure line.
bash-3.00# gcc -v
Using built-in specs.
Target: i386-pc-solaris2.10
Configured with: ../gcc-4.1.0/configure --prefix=/opt/local/gcc
--with-gnu-as --with-as=/usr/sfw/i386-sun-solaris2.10/bin/as
--with-gnu-ld --with-ld=/usr/sfw/i386-sun-solaris2.10/bin/ld
--enable-shared --enable-languages=c,c++
Thread model: posix
gcc version 4.1.0
bash-3.00# mysql -V
mysql Ver 14.12 Distrib 5.0.19, for pc-solaris2.10 (i386) using
readline 5.0
Reproduce code:
---------------
PATH='/opt/local/gcc/bin:/opt/local/php5/bin:/opt/local/perl/bin:/opt/local/mysql/mysql/bin:/usr/bin:/usr/sbin:/usr/ccs/bin:/usr/local/bin:/usr/bin/nsr:/usr/sbin/nsr:/usr/openwin/bin:/opt/csw/bin:/usr/sfw/bin:/usr/bin'
CFLAGS='-O3 -fPIC -L/opt/csw/lib' \
CPPFLAGS='-I/opt/csw/include -I/usr/include' \
LDFLAGS='-Wl,-rpath-link=/lib:/usr/lib:/opt/csw/lib:/opt/local/mysql/mysql/lib:/opt/local/mysql/mysql:/usr/sfw/lib:/opt/local/oracle/10103_client:/opt/local/oracle/10103_client/lib'
export CFLAGS CPPFLAGS LDFLAGS PATH
cd /opt/local/src/Web/PHP5/php-5.1.4/
'./configure' \
'--prefix=/opt/local/php5' \
'--with-apxs2=/opt/local/apache/bin/apxs' \
'--enable-safe-mode' \
'--with-exec-dir=/opt/local/php5/bin' \
'--enable-bcmath' \
'--enable-gd-native-ttf' \
'--enable-soap' \
'--enable-sockets' \
'--disable-rpath' \
'--enable-ftp' \
'--with-gd' \
'--with-gettext' \
'--with-imap=/src/Web/IMap/imap-2004g' \
'--with-imap-ssl=/src/Web/IMap/imap-2004g' \
'--with-jpeg-dir=/usr/lib/amd64/' \
'--with-ldap=/usr' \
'--with-mcrypt=/opt/local' \
'--with-png-dir=/usr/lib/amd64/' \
'--with-pspell=/usr' \
'--with-openssl=/opt/csw' \
'--with-zlib' \
'--with-libxml-dir=/opt/csw' \
'--with-mysql=/opt/local/mysql/mysql' \
'--with-oci8=/opt/local/oracle/10103_client' \
'--with-xpm-dir=/usr/lib' \
'--enable-memory-limit' \
'--with-gdbm=/opt/csw' \
'--with-db4=/opt/csw/bdb4' \
'--with-mhash=/opt/local/mhash' \
'--with-curl=/opt/local/curl' \
'--with-pear=/opt/local/php5' \
'--enable-pdo=shared' \
'--with-pdo-sqlite=shared' \
'--with-sqlite=shared' \
'--with-mbstring' \
'--with-mysqli=/opt/local/mysql/mysql/bin/mysql_config' \
Expected result:
----------------
Finished compilation.
Actual result:
--------------
When compiling PHP5.1.4 on Solaris 10x86 the compilation fails with the
follow error;
gcc: ext/pdo_mysql/.libs/pdo_mysql.o: No such file or directory
gcc: ext/pdo_mysql/.libs/mysql_driver.o: No such file or directory
gcc: ext/pdo_mysql/.libs/mysql_statement.o: No such file or directory
gmake: *** [ext/pdo_mysql/pdo_mysql.la] Error 1
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=38451&edit=1