Got it working. I added PGLS_FETCH(); to the _rollback_transactions function as follows: static int _rollback_transactions(zend_rsrc_list_entry *rsrc) { PGconn *link = (PGconn *)rsrc->ptr; PGLS_FETCH(); PGG(ignore_notices) = 1; PQexec(link,"BEGIN;ROLLBACK;"); PGG(ignore_notices) = 0; return 0; } Seems to work ok now with this configure: ./configure \ --with-aolserver=/net/clear1/home/rpatters/as3 \ --disable-short-tags \ --disable-mysql \ --enable-bcmath \ --enable-ftp \ --enable-shmop \ --enable-sysvsem \ --enable-sysvshm \ --enable-socket \ --enable-mbstring \ --without-mysql \ --enable-inline-optimization \ --with-pgsql=/net/clear1/home/rpatters/pgsql \ --without-gd Note that this is for Solaris 2.6 on UltraSparc Thanks, Ron "Yasuo Ohgaki" <[EMAIL PROTECTED]> wrote: > Some thing must be broken in 4.0.5. I could compile w/o error around RC5 or RC6, > I think. > > I compiled CVS source with PostgreSQL7.1's libpq. It compiles and seems working. > (There were warning regarding notice handler, though) > > Regards, > -- > Yasuo Ohgaki > > > "Ron Patterson" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > Hi there, > > I'm building the new PHP-4.0.5 with support for PostgreSQL 7.1 database and > get the following build error: > > gmake[3]: Entering directory `/net/clear1/home/rpatters/php-4.0.5/ext/pgsql' > /bin/sh /net/clear1/home/rpatters/php-4.0.5/libtool --silent --mode=compile > gcc > -I. -I/net/clear1/home/rpatters/php-4.0.5/ext/pgsql > -I/net/clear1/home/rpatters/php-4.0.5/main > -I/net/clear1/home/rpatters/php-4.0.5 -I/net/clear1/home/rpatters/as3/include > -I/net/clear1/home/rpatters/php-4.0.5/Zend > -I/net/clear1/home/rpatters/php-4.0.5/ext/xml/expat/xmltok > -I/net/clear1/home/rpatters/php-4.0.5/ext/xml/expat/xmlparse > -I/net/clear1/home/rpatters/php-4.0.5/TSRM > -I/net/clear1/home/rpatters/pgsql/include -D_POSIX_PTHREAD_SEMANTICS > -D_POSIX_PTHREAD_SEMANTICS -D_REENTRANT -DSUPPORT_UTF8 > -DXML_BYTE_ORDER=21 > -I../TSRM -g -O2 -c pgsql.c > pgsql.c: In function `_notice_handler': > pgsql.c:158: warning: passing arg 1 of `php_log_err' discards `const' from > pointer target type > pgsql.c: In function `_rollback_transactions': > pgsql.c:167: `pgsql_globals' undeclared (first use this function) > pgsql.c:167: (Each undeclared identifier is reported only once > pgsql.c:167: for each function it appears in.) > gmake[3]: *** [pgsql.lo] Error 1 > gmake[3]: Leaving directory /net/clear1/home/rpatters/php-4.0.5/ext/pgsql' > gmake[2]: *** [all-recursive] Error 1 > gmake[2]: Leaving directory `/net/clear1/home/rpatters/php-4.0.5/ext/pgsql' > gmake[1]: *** [all-recursive] Error 1 > gmake[1]: Leaving directory `/net/clear1/home/rpatters/php-4.0.5/ext' > gmake: *** [all-recursive] Error 1 > > Worked ok with PostgreSQL 7.0.3 > > Any ideas? > > Thanks, > Ron Patterson > USA.NET > > ____________________________________________________________________ > Get free email and a permanent address at http://www.netaddress.com/?N=1 > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > > > -- > PHP Install Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > ____________________________________________________________________ Get free email and a permanent address at http://www.netaddress.com/?N=1 -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]