php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11265 won't compile --with-pgsql
Submitted: 2001-06-04 02:26 UTC Modified: 2001-06-04 06:12 UTC
From: james_w_thornton at baylor dot edu Assigned:
Status: Closed Package: PostgreSQL related
PHP Version: 4.0.5 OS: RedHat 6.2
Private report: No CVE-ID: None
 [2001-06-04 02:26 UTC] james_w_thornton at baylor dot edu
./configure  \
--with-mysql=/usr/local --with-apxs \
--with-aolserver=/usr/local/aolserver \
--with-openssl --enable-ftp --with-imap-ssl \
--with-oci8 --enable-sigchild \
--with-pgsql=/usr/local/pgsql  --enable-trans-sid \ --with-regex=PHP

---//---

(error happens in both 4.0.5 and 4.0.6RC2)

Making all in pgsql
make[2]: Entering directory `/usr/local/src/php-4.0.6RC2/ext/pgsql'
make[3]: Entering directory `/usr/local/src/php-4.0.6RC2/ext/pgsql'
/bin/sh /usr/local/src/php-4.0.6RC2/libtool --silent --mode=compile gcc  -I. -I/usr/local/src/php-4.0.6RC2/ext/pgsql -I/usr/local/src/php-4.0.6RC2/main -I/usr/local/src/php-4.0.6RC2 -I/usr/local/aolserver/include -I/usr/include/apache -I/usr/local/src/php-4.0.6RC2/Zend -I/usr/local/ssl/include -I/usr/local/src/php-4.0.6RC2/ext/mysql/libmysql -I/ora8/m01/app/oracle/product/8.1.7/rdbms/public -I/ora8/m01/app/oracle/product/8.1.7/rdbms/demo -I/usr/local/src/php-4.0.6RC2/ext/xml/expat/xmltok -I/usr/local/src/php-4.0.6RC2/ext/xml/expat/xmlparse -I/usr/local/src/php-4.0.6RC2/TSRM -I/usr/local/pgsql/include -DLINUX=2 -DEAPI -DUSE_EXPAT -D_REENTRANT -DSUPPORT_UTF8 -DXML_BYTE_ORDER=12 -I../TSRM -DTHREAD=1 -g -O2 -pthread  -c pgsql.c
pgsql.c: In function `php_if_pg_last_notice':
pgsql.c:889: `pgsql_globals' undeclared (first use in this function)
pgsql.c:889: (Each undeclared identifier is reported only once
pgsql.c:889: for each function it appears in.)
make[3]: *** [pgsql.lo] Error 1
make[3]: Leaving directory `/usr/local/src/php-4.0.6RC2/ext/pgsql'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/src/php-4.0.6RC2/ext/pgsql'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/php-4.0.6RC2/ext'
make: *** [all-recursive] Error 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-04 03:29 UTC] sniper@php.net
1. You can only have ONE SAPI selected at each configure.
ie. remove --with-aolserver

2. --with-regex=PHP is also incorrect. Where does it say it
takes uppercase arguments? this works: --with-regex=php
Which is actually useless, as php is the default value anyway.

--Jani
 [2001-06-04 04:06 UTC] sniper@php.net
This is now fixed in CVS. Fix will be included in the
PHP 4.0.6 release.

--Jani

 [2001-06-04 04:27 UTC] james_w_thornton at baylor dot edu
Jani - thanks for the patch. It fixed it, but for some reason it would not apply (I changed it manually). 

NOTE: if you need to use it, if fixes ext/pgsql/pgsql.c in the 4.0.6RC2 release, not 4.0.5.

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 {       

 [2001-06-04 06:12 UTC] james_w_thornton at baylor dot edu
Jani - thanks for the patch. It fixed it, but for some reason it would not apply (I changed it manually). 

NOTE: if you need to use it, if fixes ext/pgsql/pgsql.c in the 4.0.6RC2 release, not 4.0.5.

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 {       

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Apr 28 12:01:28 2024 UTC