Edit report at https://bugs.php.net/bug.php?id=61754&edit=1
ID: 61754 Updated by: willfi...@php.net Reported by: gencer at gencgiyen dot com Summary: pdo_pgsql fails on make -Status: Open +Status: No Feedback Type: Bug Package: PDO related Operating System: CentOS 5.8 x86_64 PHP Version: 5.4.0 Block user comment: N Private report: N New Comment: No feedback was provided. The bug is being suspended because we assume that you are no longer experiencing the problem. If this is not the case and you are able to provide the information that was requested earlier, please do so and change the status of the bug back to "Open". Thank you. Previous Comments: ------------------------------------------------------------------------ [2012-09-21 14:33:31] willfi...@php.net This looks like an environment-specific issue. pdo_pgsql.c requires pdo/php_pdo.h, but it currently can't find it in the include path. Were you able to resolve this or is this still an issue? ------------------------------------------------------------------------ [2012-04-17 11:14:06] gencer at gencgiyen dot com I think the correct package is PDO instead of PostgreSQL ? ------------------------------------------------------------------------ [2012-04-17 11:00:32] gencer at gencgiyen dot com Description: ------------ When i tried to build/make my PHP with --with-pdo-pgsql=DIR command, it fails on when the make came to the pgsql. /bin/sh /installers/php/php-5.4.0/libtool --silent --preserve-dup-deps --mode=compile gcc -I/gencer/php/php-5.4.0/ext -Iext/pdo_pgsql/ -I/installers/php/php-5.4.0/ext/pdo_pgsql/ -DPHP_ATOM_INC -I/installers/php/php-5.4.0/include -I/installers/php/php-5.4.0/main -I/installers/php/php-5.4.0 -I/installers/php/php-5.4.0/ext/date/lib -I/installers/php/php-5.4.0/ext/ereg/regex -I/usr/include/libxml2 -I/usr/kerberos/include -I/usr/include/freetype2 -I/usr/include/imap -I/installers/php/php-5.4.0/ext/mbstring/oniguruma -I/installers/php/php-5.4.0/ext/mbstring/libmbfl -I/installers/php/php-5.4.0/ext/mbstring/libmbfl/mbfl -I/usr/pgsql-9.1/include -I/installers/php/php-5.4.0/ext/sqlite3/libsqlite -I/installers/php/php-5.4.0/TSRM -I/installers/php/php-5.4.0/Zend -I/usr/include -g -O2 -fvisibility=hidden -c /installers/php/php-5.4.0/ext/pdo_pgsql/pdo_pgsql.c -o ext/pdo_pgsql/pdo_pgsql.lo /installers/php/php-5.4.0/ext/pdo_pgsql/pdo_pgsql.c:28:25: error: pdo/php_pdo.h: No such file or directory /installers/php/php-5.4.0/ext/pdo_pgsql/pdo_pgsql.c:29:32: error: pdo/php_pdo_driver.h: No such file or directory In file included from /installers/php/php-5.4.0/ext/pdo_pgsql/pdo_pgsql.c:31: /installers/php/php-5.4.0/ext/pdo_pgsql/php_pdo_pgsql_int.h:84: error: expected â=â, â,â, â;â, âasmâ or â__attribute__â before âpdo_pgsql_driverâ /installers/php/php-5.4.0/ext/pdo_pgsql/php_pdo_pgsql_int.h:86: error: expected â)â before â*â token /installers/php/php-5.4.0/ext/pdo_pgsql/php_pdo_pgsql_int.h:95: error: âPDO_ATTR_DRIVER_SPECIFICâ undeclared here (not in a function) /installers/php/php-5.4.0/ext/pdo_pgsql/php_pdo_pgsql_int.h:99: error: expected specifier-qualifier-list before âpdo_dbh_tâ /installers/php/php-5.4.0/ext/pdo_pgsql/php_pdo_pgsql_int.h:113: error: expected â)â before â*â token /installers/php/php-5.4.0/ext/pdo_pgsql/pdo_pgsql.c: In function âzm_startup_pdo_pgsqlâ: /installers/php/php-5.4.0/ext/pdo_pgsql/pdo_pgsql.c:95: error: âpdo_pgsql_driverâ undeclared (first use in this function) /installers/php/php-5.4.0/ext/pdo_pgsql/pdo_pgsql.c:95: error: (Each undeclared identifier is reported only once /installers/php/php-5.4.0/ext/pdo_pgsql/pdo_pgsql.c:95: error: for each function it appears in.) /installers/php/php-5.4.0/ext/pdo_pgsql/pdo_pgsql.c: In function âzm_shutdown_pdo_pgsqlâ: /installers/php/php-5.4.0/ext/pdo_pgsql/pdo_pgsql.c:104: error: âpdo_pgsql_driverâ undeclared (first use in this function) make: *** [ext/pdo_pgsql/pdo_pgsql.lo] Error 1 Test script: --------------- cd php-5.4.0 './configure' '--build=x86_64-redhat-linux-gnu' '--host=x86_64-redhat-linux-gnu' '--target=x86_64-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib64' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-libdir=lib64' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--disable-debug' '--with-pic' '--disable-rpath' '--without-pear' '--with-bz2' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-xpm-dir=/usr' '--enable-gd-native-ttf' '--with-t1lib=/usr' '--without-gdbm' '--with-gettext' '--with-gmp' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-pcre-regex' '--with-zlib' '--with-layout=GNU' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-sockets' '--with-kerberos' '--enable-ucd-snmp-hack' '--enable-shmop' '--enable-calendar' '--with-libxml-dir=/usr' '--enable-libxml' '--with-xmlrpc' '--enable-xml' '--with-system-tzdata' '--with-mhash' '--with-mysql' '--with-gd' '--enable-dom' '--disable-dba' '--without-unixODBC' '--enable-pdo' '--disable-xmlreader' '--disable-xmlwriter' '--without-sqlite' '--with-sqlite3' '--enable-phar' '--enable-fileinfo' '--enable-json' '--without-pspell' '--disable-wddx' '--without-curl' '--disable-posix' '--disable-sysvmsg' '--disable-sysvshm' '--disable-sysvsem' '--enable-mbstring' '--enable-fastcgi' '--with-mcrypt' '--enable-fpm' '--with-mysqli' '--enable-pcntl' '--with-imap=../imap/imap-2007f' '--with-imap-ssl' '--with-pdo-pgsql=/usr/pgsql-9.1' make --fails-- Expected result: ---------------- Make should make it and then make install follows Actual result: -------------- make fails on pdo_pgsql built ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=61754&edit=1