|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2001-05-30 00:02 UTC] damonp at siliconsys dot com
I can't make the package with pgsql support. I am running PG 7.1.1. I have tried passing -with-pgsql, -with-pgsql=shared, -with-pgsql=/usr/local/pgsql etc; but no luck. This is the error: make[3]: Entering directory `/www/src/php-4.0.5/ext/pgsql' /bin/sh /www/src/php-4.0.5/libtool --silent --mode=compile cc -I. -I/www/src/php-4.0.5/ext/pgsql -I/www/src/php-4.0.5/main -I/www/src/php-4.0.5 -I/www_1.3.20/include -I/www/src/php-4.0.5/Zend -I/usr/local/ssl/include -I/usr/include/freetype -I/dloads/qmail/imap-4.7c//c-client -I/usr/local/include -I/usr/include/mysql -I/www/src/php-4.0.5/ext/xml/expat/xmltok -I/www/src/php-4.0.5/ext/xml/expat/xmlparse -I/www/src/php-4.0.5/TSRM -I/usr/include/pgsql -DLINUX=22 -DMOD_SSL=208104 -DUSE_HSREGEX -DEAPI -DUSE_EXPAT -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -I../TSRM -g -O2 -pthread -c pgsql.c && touch pgsql.slo pgsql.c: In function `_notice_handler': pgsql.c:156: warning: passing arg 1 of `php_log_err' discards qualifiers from pointer target type pgsql.c: In function `_rollback_transactions': pgsql.c:165: `pgsql_globals' undeclared (first use in this function) pgsql.c:165: (Each undeclared identifier is reported only once pgsql.c:165: for each function it appears in.) make[3]: *** [pgsql.slo] Error 1 make[3]: Leaving directory `/www/src/php-4.0.5/ext/pgsql' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/www/src/php-4.0.5/ext/pgsql' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/www/src/php-4.0.5/ext' make: *** [all-recursive] Error 1 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Dec 20 01:00:01 2025 UTC |
Note: I just fixed another bug in pgsql, here is the patch: (This is not in the php 4.0.6RC2 package.) Index: pgsql.c =================================================================== RCS file: /repository/php4/ext/pgsql/pgsql.c,v retrieving revision 1.102.2.2 diff -u -r1.102.2.2 pgsql.c --- pgsql.c 2001/05/27 23:27:10 1.102.2.2 +++ pgsql.c 2001/06/04 07:37:34 @@ -885,7 +885,10 @@ /* {{{ proto int pg_last_notice(int connection) Returns the last notice set by the backend */ -PHP_FUNCTION(pg_last_notice) { +PHP_FUNCTION(pg_last_notice) +{ + PGLS_FETCH(); + if (PGG(last_notice) == NULL) { RETURN_FALSE; } else {