Re: [PHP4BETA] PGSQL headers not included

From: Date: Tue, 02 May 2000 05:58:48 +0000
Subject: Re: [PHP4BETA] PGSQL headers not included
References: 1  Groups: php.version4 
Request: Send a blank email to php-version4+get-14325@lists.php.net to get a copy of this message
On Tue, May 02, 2000 at 07:52:03AM +0200, eschmid+sic@s.netic.de wrote: > Hi Sascha, > > the include path to pgsql is missing. > > /bin/sh /usr/local/php4/libtool --silent --mode=compile gcc > -DHAVE_CONFIG_H -I. -I/usr/local/php4/ -I/usr/local/php4 > -I/usr/local/php4/Zend -I/usr/local/php4 -I/usr/local/apache-1.3/include > -I/usr/local/include/mysql -I/usr/local/php4/ext/xml/expat/xmltok > -I/usr/local/php4/ext/xml/expat/xmlparse -DXML_BYTE_ORDER=12 -D_REENTRANT > -g -O2 -c internal_functions.c > In file included from internal_functions.c:40: > ext/pgsql/php_pgsql.h:46: libpq-fe.h: No such file or directory > ext/pgsql/php_pgsql.h:52: libpq/libpq-fs.h: No such file or directory > make[1]: *** [internal_functions.lo] Error 1 > > Yesterday make doesn't complain for the missing Postgres header files. But Please try the attached patch. > when I start Apache I get an undefined symbol: V_OPEN V_OPEN should be defined to virtual_open or open. Please post your configure line for further analysis. - Sascha

? difx Index: pgsql.c =================================================================== RCS file: /repository/php4/ext/pgsql/pgsql.c,v retrieving revision 1.44 diff -u -r1.44 pgsql.c --- pgsql.c 2000/05/02 00:44:25 1.44 +++ pgsql.c 2000/05/02 04:52:04 @@ -25,6 +25,8 @@ #include "dl/phpdl.h" #endif +#define PHP_PGSQL_PRIVATE 1 + #include "php.h" #include "php_ini.h" #include "ext/standard/php_standard.h" Index: php_pgsql.h =================================================================== RCS file: /repository/php4/ext/pgsql/php_pgsql.h,v retrieving revision 1.7 diff -u -r1.7 php_pgsql.h --- php_pgsql.h 2000/02/12 14:38:31 1.7 +++ php_pgsql.h 2000/05/02 04:52:04 @@ -42,6 +42,7 @@ extern zend_module_entry pgsql_module_entry; #define pgsql_module_ptr &pgsql_module_entry +#ifdef PHP_PGSQL_PRIVATE #include <libpq-fe.h> @@ -137,6 +138,7 @@ # define PGG(v) (pgsql_globals.v) # define PGLS_FETCH() extern PHP_PGSQL_API php_pgsql_globals pgsql_globals; +#endif #endif #else
« previous php.version4 (#14325) next »