ID:               34939
 Comment by:       chris at spawnordie dot com
 Reported By:      marcel dot bariou at brasnah dot com
 Status:           Assigned
 Bug Type:         PDO related
 Operating System: LINUX RH ES3
 PHP Version:      5.1.0RC3
 Assigned To:      wez
 New Comment:

I got the same result.  Tring to compile with PDO support for mysql
5.0.15 and the 200510271830 PHP snapshot.  Compiles fine without PDO
for MySQL or for PDO for MySQL 4.  It hink this is related to MySQL 5.

Here are the configure options:
./configure \
--with-mysql=/usr/local/mysql5 \
--with-pgsql=/usr/local/pgsql \
--with-apxs2=/usr/local/apache2/bin/apxs \
--with-gd \
--with-imap-ssl \
--enable-track-vars \
--enable-url-includes \
--with-ttf \
--enable-magic-quotes \
--with-pcre-regex \
--enable-ftp \
--with-mcrypt \
--enable-freetype-4bit-antialias-hack \
--with-curl \
--with-zlib-dir=/usr \
--with-kerberos \
--with-gettext \
--with-jpeg-dir=/usr \
--with-png-dir=/usr \
--with-zlib \
--enable-gd-native-ttf \
--with-freetype-dir=/usr/include/freetype2 \
--with-dom \
--enable-sockets \
--enable-wddx \
--with-xmlrpc \
--with-xsl \
--enable-xslt \
--with-xslt-sablot=/usr/local \
--with-expat-dir \
--with-pdo-mysql=/usr/local/mysql5 \
--with-pdo-pgsql=/usr/local/pgsql \
--enable-soap \
--with-xmlreader

Here are the last few lines of output from make:


sapi_krb5 -lkrb5 -lk5crypto -lkrb5support -lcom_err -lresolv -lidn
-lssl -lcrypto -lz -lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lcrypt
-lxml2 -lz -lm -lxml2 -lz -lm -lxml2 -lz -lm -lxslt -lxml2 -lz -lm
-lcrypt  -o sapi/cli/php
ext/pdo_mysql/.libs/mysql_driver.o(.text+0xd2f): In function
`pdo_mysql_handle_factory':
/usr/local/src/php5-200510271830/ext/pdo_mysql/mysql_driver.c:438:
undefined reference to `pdo_attr_strval'
ext/pdo_mysql/.libs/mysql_driver.o(.text+0xdab):/usr/local/src/php5-200510271830/ext/pdo_mysql/mysql_driver.c:448:
undefined reference to `pdo_attr_strval'
ext/pdo_mysql/.libs/mysql_driver.o(.text+0xde2):/usr/local/src/php5-200510271830/ext/pdo_mysql/mysql_driver.c:458:
undefined reference to `pdo_attr_strval'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Error 1


Previous Comments:
------------------------------------------------------------------------

[2005-10-21 17:44:29] marcel dot bariou at brasnah dot com

Yes, I add ----enable-pdo=shared (last line of ./configure as you can
see..)

------------------------------------------------------------------------

[2005-10-21 16:51:45] [EMAIL PROTECTED]

Did you --enable-pdo ?

------------------------------------------------------------------------

[2005-10-21 14:16:01] [EMAIL PROTECTED]

Wez, take a look at it please.


------------------------------------------------------------------------

[2005-10-21 06:20:54] marcel dot bariou at brasnah dot com

Description:
------------
I start with this configure directive :

./configure --prefix=/etc/httpd --with-apxs2=/usr/sbin/apxs
--with-config-file-path=/etc/httpd/conf --with-mysql=/usr/local/mysql
--enable-bc-math --enable-calendar --with-curl=/usr --enable-exif
--with-gettext --with-gmp --enable-id3
--with-java=/usr/local/java=/usr/local/j2sdk --with-mcrypt=/usr/local
--with-mhash=/usr/local --enable-overload --enable-pcntl
--with-regex=PHP --enable-soap --enable-sockets --with-tidy=/usr/local
--enable-wddx --with-xsl=/usr/local --enable-xslt --with-xslt-sablot
--with-expat-dir=/usr --enable-php-streams --enable-memory-limit
--enable-cli --enable-posix --enable-pcre --enable-sysvmsg
--enable-sysvsem --enable-sysvshm --enable-shmop --with-pear
--with-xmlrpc --with-zlib=/usr --with-iconv --with-iconv-dir=/usr/local
--with-pdo-mysql=/usr/local/mysql  --enable-pdo=shared




Make message => :
ext/pdo_mysql/.libs/pdo_mysql.o(.text+0x13): In function
`zm_startup_pdo_mysql':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_mysql/pdo_mysql.c:78:
undefined reference to `php_pdo_declare_long_constant'
ext/pdo_mysql/.libs/pdo_mysql.o(.text+0x34): In function
`zm_shutdown_pdo_mysql':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_mysql/pdo_mysql.c:88:
undefined reference to `php_pdo_unregister_driver'
ext/pdo_mysql/.libs/pdo_mysql.o(.text+0x23): In function
`zm_startup_pdo_mysql':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_mysql/pdo_mysql.c:80:
undefined reference to `php_pdo_register_driver'
ext/pdo_mysql/.libs/mysql_driver.o(.text+0x197): In function
`_pdo_mysql_error':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_mysql/mysql_driver.c:100:
undefined reference to `php_pdo_get_exception'
ext/pdo_mysql/.libs/mysql_driver.o(.text+0x378): In function
`mysql_handle_preparer':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_mysql/mysql_driver.c:169:
undefined reference to `pdo_parse_params'
ext/pdo_mysql/.libs/mysql_driver.o(.text+0x57a): In function
`pdo_mysql_last_insert_id':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_mysql/mysql_driver.c:250:
undefined reference to `php_pdo_int64_to_str'
ext/pdo_mysql/.libs/mysql_driver.o(.text+0x84e): In function
`pdo_mysql_handle_factory':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_mysql/mysql_driver.c:403:
undefined reference to `php_pdo_parse_data_source'
ext/pdo_mysql/.libs/mysql_statement.o(.text+0x835): In function
`pdo_mysql_stmt_param_hook':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_mysql/mysql_statement.c:332:
undefined reference to `pdo_raise_impl_error'
ext/pdo_sqlite/.libs/pdo_sqlite.o(.text+0x1c): In function
`zm_shutdown_pdo_sqlite':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_sqlite/pdo_sqlite.c:87:
undefined reference to `php_pdo_unregister_driver'
ext/pdo_sqlite/.libs/pdo_sqlite.o(.text+0xc): In function
`zm_startup_pdo_sqlite':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_sqlite/pdo_sqlite.c:80:
undefined reference to `php_pdo_register_driver'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0xa5): In function
`_pdo_sqlite_error':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_sqlite/sqlite_driver.c:78:
undefined reference to `php_pdo_get_exception'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0x37e): In function
`pdo_sqlite_last_insert_id':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_sqlite/sqlite_driver.c:197:
undefined reference to `php_pdo_int64_to_str'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0xb62): In function
`zif_SQLite_sqliteCreateFunction':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_sqlite/sqlite_driver.c:471:
undefined reference to `pdo_raise_impl_error'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0xcd6): In function
`zif_SQLite_sqliteCreateAggregate':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_sqlite/sqlite_driver.c:543:
undefined reference to `pdo_raise_impl_error'
ext/pdo_sqlite/.libs/sqlite_driver.o(.text+0x1077): In function
`pdo_sqlite_handle_factory':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_sqlite/sqlite_driver.c:697:
undefined reference to `php_pdo_get_exception'
ext/pdo_sqlite/.libs/sqlite_statement.o(.text+0x2d6): In function
`pdo_sqlite_stmt_param_hook':
/usr/local/xtra_targz/php5-200510202030/ext/pdo_sqlite/sqlite_statement.c:116:
undefined reference to `pdo_raise_impl_error'
ext/sqlite/.libs/sqlite.o(.text+0x172f): In function
`zm_startup_sqlite':
/usr/local/xtra_targz/php5-200510202030/ext/sqlite/sqlite.c:1100:
undefined reference to `php_pdo_register_driver'
ext/sqlite/.libs/sqlite.o(.text+0x175e): In function
`zm_shutdown_sqlite':
/usr/local/xtra_targz/php5-200510202030/ext/sqlite/sqlite.c:1113:
undefined reference to `php_pdo_unregister_driver'
ext/sqlite/.libs/pdo_sqlite2.o(.text+0x4df): In function
`_pdo_sqlite2_error':
/usr/local/xtra_targz/php5-200510202030/ext/sqlite/pdo_sqlite2.c:291:
undefined reference to `php_pdo_get_exception'
ext/sqlite/.libs/pdo_sqlite2.o(.text+0x73f): In function
`pdo_sqlite2_last_insert_id':
/usr/local/xtra_targz/php5-200510202030/ext/sqlite/pdo_sqlite2.c:373:
undefined reference to `php_pdo_int64_to_str'
ext/sqlite/.libs/pdo_sqlite2.o(.text+0xbfc): In function
`pdo_sqlite2_handle_factory':
/usr/local/xtra_targz/php5-200510202030/ext/sqlite/pdo_sqlite2.c:579:
undefined reference to `php_pdo_get_exception'
collect2: ld returned 1 exit status
make: *** [sapi/cli/php] Erreur 1


Thanks for your help



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=34939&edit=1

Reply via email to