ID: 35379 Comment by: jstienstra at welnet dot nl Reported By: phyre at rogers dot com Status: Assigned Bug Type: PDO related Operating System: Debian Linux 3.1 PHP Version: 5.1.0 Assigned To: wez New Comment:
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 Previous Comments: ------------------------------------------------------------------------ [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