Bug #944: Polluted name space - PHP fails to compile for use with PostgreSQL

From: Date: Mon, 23 Nov 1998 15:46:42 +0000
Subject: Bug #944: Polluted name space - PHP fails to compile for use with PostgreSQL
Groups: php.dev 
Request: Send a blank email to php-dev+get-2555@lists.php.net to get a copy of this message
From: achowe@snert.com Operating system: Redhat Linux 5.0 PHP version: 3.0.5 PHP Bug Type: Compile Failure Bug description: Polluted name space - PHP fails to compile for use with PostgreSQL I've compiled this code on several machines aready with the same configuration of Redhat 5.x, Apache 1.3.3, Postgres 6.3.2, and PHP 3.0.5 and now, while trying to update yet another machine, I get a compile error, where before I only got compiler warnings concerning "palloc". The Postgres include files define a "palloc" and Apache define "palloc". Without looking at the mod_php3.c code in detail, it is unclear which version of palloc is the correct one to use (Postgres: #define palloc malloc OR Apache: #define palloc ap_palloc). System : Red Hat Linux release 5.0 (Hurricane) Kernel 2.0.35 on an i586 Compiler: [root@kerberos src]# gcc -v Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.7.2.3/specs gcc version 2.7.2.3 My configuration for PHP : ./configure \ --with-shared-apache=../apache_1.3.3 \ --with-pgsql=/usr/local/pgsql \ --enable-debug=no \ --enable-track-vars=yes \ --enable-bcmath=yes Build error : ... gcc -g -O2 -O2 -fpic -I. -I. -I../apache_1.3.3/src/include -I../apache_1.3.3/src/os/unix -I/usr/local/pgsql/include -c internal_functions.c -o internal_functions.o In file included from functions/php3_pgsql.h:46, from internal_functions.c:62: /usr/local/pgsql/include/libpq-fe.h:349: warning: `palloc' redefined ../apache_1.3.3/src/include/ap_compat.h:232: warning: this is the location of the previous definition In file included from internal_functions.c:70: functions/php3_gd.h:44: gd.h: No such file or directory make: *** [internal_functions.o] Error 1 [root@kerberos php-3.0.5]# -- PHP Development Mailing List http://www.php.net/ To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net For help: php-dev-help@lists.php.net

« previous php.dev (#2555) next »