#35379 [Asn->Fbk]: PDO shared fails to link sqllite extension
| From: | wez@php.net | Date: | Wed, 30 Nov 2005 04:48:49 +0000 |
| Subject: | #35379 [Asn->Fbk]: PDO shared fails to link sqllite extension | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-89434@lists.php.net to get a copy of this message | ||
ID: 35379
Updated by: wez@php.net
Reported By: phyre at rogers dot com
-Status: Assigned
+Status: Feedback
Bug Type: PDO related
Operating System: Debian Linux 3.1
PHP Version: 5.1.0
Assigned To: wez
New Comment:
Please try using this CVS snapshot:
http://snaps.php.net/php5.1-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php5.1-win32-latest.zip
Please try the next PHP 5.1 snapshot.
It features an improved error message that should catch conflicting
configure options.
Previous Comments:
------------------------------------------------------------------------
[2005-11-25 15:26:45] jstienstra at welnet dot nl
building pdo shared does not work with pdo-sqlite v3 and sqlite v2.
disabling these modules with --without-pdo-sqlite and without-sqlite
fixes it, or build pdo statically.
see my double post (sorry about that):
http://bugs.php.net/bug.php?id=35396
------------------------------------------------------------------------
[2005-11-25 05:21:31] phyre at rogers dot com
./configure --with-apxs2=/usr/bin/apxs2 --disable-debug
--prefix=/usr/local --with-pear
--with-config-file-path=/etc/php5/apache2 --enable-discard-path
--enable-memory-limit --enable-inline-optimization --enable-ipv6
--disable-posix --with-zlib --with-mhash --with-mcrypt
--with-mysql=/usr --with-mysqli --with-pgsql --enable-ftp --with-curl
--with-gd --enable-gd-native-ttf --enable-bcmath --with-openssl
--disable-rpath --with-mysql-sock=/var/run/mysqld/mysql.sock
--with-imap --with-imap-ssl --with-zip --with-jpeg-dir=/usr
--with-png-dir=/usr --with-tiff-dir=/usr --with-freetype-dir=/usr
--enable-exif --enable-cli --with-kerberos --enable-soap --with-pspell
--with-bz2 --with-gettext --enable-pdo=shared
I also tried disabling the pdo_sqlite but that didn't seem to help, as
it still builds the sqlite2 pdo module.
------------------------------------------------------------------------
[2005-11-25 05:09:23] wez@php.net
What was your configure line?
------------------------------------------------------------------------
[2005-11-25 04:16:51] phyre at rogers dot com
Description:
------------
Using --enable-pdo=shared (as recommended in the documentation for
php5.1) in configure and then making gets through the pdo compilation,
but on linking has unresolved references
Reproduce code:
---------------
configure, compile
Expected result:
----------------
Probably should automatically build pdo_sqlite shared as well.
Actual result:
--------------
"undefined reference to `php_pdo_register_driver'" errors and similar
as a result of it being shared when linking php cli and apache module.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35379&edit=1