ID: 35379 User updated by: phyre at rogers dot com Reported By: phyre at rogers dot com Status: Closed Bug Type: PDO related Operating System: Debian Linux 3.1 PHP Version: 5.1.0 Assigned To: wez New Comment:
I think I was misunderstood. Adding all three does work, but what I am suggesting is that we ensure that we don't create even more confusion by doing so. The logical step I went through was to grep for sqlite options. pdo_sqlite is logical, but you _ALSO_ need --with-sqlite=shared. One or the other doesn't work. So it is important to add that to the message, stating that not only does this affect pdo_sqlite, but also php's sqlite functions, so that users right away know both need to be compiled as shared. I wasn't asking for much more than that. Previous Comments: ------------------------------------------------------------------------ [2005-11-30 18:49:23] [EMAIL PROTECTED] You "simply" need to tell configure to build what you want it to build, how you want it built. --enable-pdo=shared --with-pdo-sqlite=shared --with-sqlite=shared I know it sucks that we can't automatically make it work that way you want it; configure scripts have their limitations. ------------------------------------------------------------------------ [2005-11-30 18:37:06] phyre at rogers dot com 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. ------------------------------------------------------------------------ [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. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/35379 -- Edit this bug report at http://bugs.php.net/?id=35379&edit=1