ID: 35379 User updated by: phyre at rogers dot com Reported By: phyre at rogers dot com -Status: Feedback +Status: Open Bug Type: PDO related Operating System: Debian Linux 3.1 PHP Version: 5.1.0 Assigned To: wez New Comment:
Just typed a huge comment but bugzilla lost it... so the summary... Adding --without-pdo-sqlite still returns the message. Adding --without-sqlite still returns the message. Adding both makes configure work just right. HOWEVER, this disables the sqlite_* functions. These should be based on sqlite v2 and the PDO on sqlite v3. So in doing so are we discouraging sqlite_* functions? Is there no way to maintain both, while the manual for PDO encourages shared so it can be updated from PECL easily? Especially since they're different versions? Also note sqlitev2 is enabled by default in php5, so it's something that is depended on in some cases. Also, the message really isn't that informative: "You've configured extension pdo_sqlite to build statically, but it depends on extension pdo, which you've configured to build shared. You either need to build pdo_sqlite shared or build pdo statically for the build to be successful." We may be better of referencing a specific configure option to provide a bit more detail on the matter. Previous Comments: ------------------------------------------------------------------------ [2005-11-30 05:48:48] [EMAIL PROTECTED] 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. ------------------------------------------------------------------------ [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] [EMAIL PROTECTED] 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