From:             
Operating system: CentOS 5.8 x86_64
PHP version:      5.4.0
Package:          PostgreSQL related
Bug Type:         Bug
Bug description:pdo_pgsql fails on make

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 bug report at https://bugs.php.net/bug.php?id=61754&edit=1
-- 
Try a snapshot (PHP 5.4):            
https://bugs.php.net/fix.php?id=61754&r=trysnapshot54
Try a snapshot (PHP 5.3):            
https://bugs.php.net/fix.php?id=61754&r=trysnapshot53
Try a snapshot (trunk):              
https://bugs.php.net/fix.php?id=61754&r=trysnapshottrunk
Fixed in SVN:                        
https://bugs.php.net/fix.php?id=61754&r=fixed
Fixed in SVN and need be documented: 
https://bugs.php.net/fix.php?id=61754&r=needdocs
Fixed in release:                    
https://bugs.php.net/fix.php?id=61754&r=alreadyfixed
Need backtrace:                      
https://bugs.php.net/fix.php?id=61754&r=needtrace
Need Reproduce Script:               
https://bugs.php.net/fix.php?id=61754&r=needscript
Try newer version:                   
https://bugs.php.net/fix.php?id=61754&r=oldversion
Not developer issue:                 
https://bugs.php.net/fix.php?id=61754&r=support
Expected behavior:                   
https://bugs.php.net/fix.php?id=61754&r=notwrong
Not enough info:                     
https://bugs.php.net/fix.php?id=61754&r=notenoughinfo
Submitted twice:                     
https://bugs.php.net/fix.php?id=61754&r=submittedtwice
register_globals:                    
https://bugs.php.net/fix.php?id=61754&r=globals
PHP 4 support discontinued:          
https://bugs.php.net/fix.php?id=61754&r=php4
Daylight Savings:                    https://bugs.php.net/fix.php?id=61754&r=dst
IIS Stability:                       
https://bugs.php.net/fix.php?id=61754&r=isapi
Install GNU Sed:                     
https://bugs.php.net/fix.php?id=61754&r=gnused
Floating point limitations:          
https://bugs.php.net/fix.php?id=61754&r=float
No Zend Extensions:                  
https://bugs.php.net/fix.php?id=61754&r=nozend
MySQL Configuration Error:           
https://bugs.php.net/fix.php?id=61754&r=mysqlcfg

Reply via email to