|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1998-11-23 10:46 UTC] achowe at snert dot com
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]#
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 16 16:00:01 2025 UTC |
The problem seems to missing gd.h, not palloc redefined. Either configure using '--without-gd' or put the gd headers and libs somewhere they can be found, like /usr/local/{include|lib}. 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