From:             terry dot cullen at uq dot edu dot au
Operating system: Solaris 10 x86
PHP version:      5.1.4
PHP Bug Type:     PDO related
Bug description:  PDO_MYSQL breaks compilation

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 bug report at http://bugs.php.net/?id=38451&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=38451&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=38451&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=38451&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=38451&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=38451&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=38451&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=38451&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=38451&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=38451&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=38451&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=38451&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=38451&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=38451&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=38451&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=38451&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=38451&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=38451&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=38451&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=38451&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=38451&r=mysqlcfg

Reply via email to