I dont know if Rasmus or someone else on the Dev team wants to know more --
but I found that by making the following change to filestat.c, 4.1.2 at
least compiled on my system...
#if defined(HAVE_SYS_STATVFS_H) defined(HAVE_STATVFS)
# include sys/statvfs.h
/*
*#elif defined(HAVE_SYS_STATFS_H) defined(HAVE_STATFS)
*# include sys/statfs.h
*/
#elif defined(HAVE_SYS_MOUNT_H) defined(HAVE_STATFS)
# include sys/mount.h
#endif
I'm still not sure where the duplication of the structure originated - but
this at least lets it compile.
System is a kernel 2.0.36
gcc is version 2.7.2.1
(yes, old, I know)
-Original Message-
From: Scott Brown [mailto:[EMAIL PROTECTED]]
Sent: March 1, 2002 9:16 PM
To: [EMAIL PROTECTED]
Subject: [PHP] help please -- error compiling php 4.1.2
(4.0.6 compiles
fine)
I'm trying to deal with the recent security advisory... but
I cant get
4.1.2 to compile on my system
I'm getting :
gcc -I. -I/home/webmaster/new_build/php-4.1.2/ext/standard
-I/home/webmaster
/new_build/php-4.1.2/main -I/home/webmaster/new_build/ph
p-4.1.2 -I/home/webmaster/new_build/apache_1.3.23/src/include
-I/home/webmas
ter/new_build/apache_1.3.23/src/os/unix -I/home/webmaste
r/new_build/php-4.1.2/Zend
-I/home/webmaster/new_build/gd-1.8.4 -I/usr/local
/include -I/home/webmaster/new_build/php-4.1.2/ext/mysql
/libmysql -I/home/webmaster/new_build/php-4.1.2/ext/xml/expat
-I/home/webma
ster/new_build/php-4.1.2/TSRM -O2 -fomit-frame-pointer -
ffast-math -fexpensive-optimizations -c filestat.c touch
filestat.lo
In file included from /usr/include/sys/statfs.h:26,
from filestat.c:49:
/usr/include/statfsbuf.h:25: redefinition of `struct statfs'
make[3]: *** [filestat.lo] Error 1
make[3]: Leaving directory
`/home/webmaster/new_build/php-4.1.2/ext/standard'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/home/webmaster/new_build/php-4.1.2/ext/standard'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/webmaster/new_build/php-4.1.2/ext'
make: *** [all-recursive] Error 1
[root@apollo /home/webmaster/new_build/php-4.1.2]#
However, 4.0.6 compiles fine
Configure line (same between the 4.0.6 and the 4.1.2 attempts) is:
CFLAGS=-O2 -fomit-frame-pointer -ffast-math
-fexpensive-optimizations \
EAPI_MM=../mm-1.1.3 \
./configure \
--with-apache=../apache_1.3.23 \
--with-gd=../gd-1.8.4/ \
--with-mysql \
--with-gdbm \
--with-mhash \
--with-config-file-path=/etc \
--with-calendar=shared \
--enable-safe-mode \
--enable-magic-quotes \
--enable-trans-sid \
--enable-apc \
--enable-ftp \
--enable-debug=no \
--enable-memory-limit=yes \
--enable-xml \
--enable-track-vars
#exit
System is Redhat 5.something - patched all to hell
Any help/direction appreciated...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php