Error while building CGI for PHP 4.3.1
| From: | Frederic Trudeau | Date: | Wed, 09 Apr 2003 00:38:08 +0000 |
| Subject: | Error while building CGI for PHP 4.3.1 | ||
| References: | 1 | Groups: | php.install |
| Request: | Send a blank email to php-install+get-10554@lists.php.net to get a copy of this message | ||
Greetings, im using RedHat spec file in order to build version 4.3.1 of PHP.
Build fails when building PHP CGI (not the Apache module).
Here is the configure line :
./buildconf
# Shell function to configure and build a PHP tree.
#
build() {
ln -sf ../configure
%configure \
--prefix=%{_prefix} \
--with-config-file-path=%{_sysconfdir} \
--enable-force-cgi-redirect \
--disable-debug \
--enable-debugger \
--enable-dbg=shared \
--with-dbg-profiler \
--enable-pic \
--disable-rpath \
--enable-inline-optimization \
--with-bz2 \
--with-db3 \
--with-curl \
--with-dom=%{_prefix} \
--with-exec-dir=%{_bindir} \
--with-freetype-dir=%{_prefix} \
--with-gd \
--enable-gd-native-ttf \
--with-ttf \
--with-gdbm \
--with-gettext \
--with-ncurses \
--with-gmp \
--with-iconv \
--with-jpeg-dir=%{_prefix} \
--with-imagic=/usr/include/magick \
--with-mm \
--with-openssl \
--with-png \
--with-png-dir=%{_prefix} \
--with-pspell \
--with-regex=system \
--enable-mbregex \
--with-xml \
--with-pdflib \
--with-pdf \
--enable-mailparse \
--with-expat-dir=%{_prefix} \
--with-zlib \
--with-zlib-dir=/usr/lib \
--with-layout=GNU \
--enable-bcmath \
--enable-debugger \
--enable-exif \
--enable-ftp \
--enable-magic-quotes \
--enable-safe-mode \
--enable-sockets \
--enable-sysvsem \
--enable-sysvshm \
--enable-discard-path \
--enable-track-vars \
--enable-trans-sid \
--enable-yp \
--enable-wddx \
--without-oci8 \
--with-imap=shared \
--with-imap-ssl \
--with-kerberos=/usr/kerberos \
--with-ldap=shared \
--with-mysql=shared,%{_prefix} \
--enable-mime-magic \
--with-tiff-dir=/usr/include \
%if %{oracle}
--with-oci8=shared \
%endif
--with-pgsql=shared \
--with-snmp=shared,%{_prefix} \
--with-snmp=shared \
--enable-ucd-snmp-hack \
--with-unixODBC=shared \
--enable-memory-limit \
--enable-bcmath \
--enable-shmop \
--enable-versioning \
--enable-calendar \
--enable-dbx \
--enable-dio \
--enable-mcal \
--enable-mbstring \
--enable-mbstr-enc-trans \
--enable-zend-multibyte \
--enable-force-cgi-redirect \
--enable-fastcgi \
--with-readline \
--enable-sigchild \
--enable-pcntl \
--with-mcrypt=/usr/local/lib \
$*
Here's the error while building ;
In file included from
/home/ftrudeau/rpm/BUILD/php-4.3.1/sapi/cgi/libfcgi/fcgi_stdio.c:23:
/home/ftrudeau/rpm/BUILD/php-4.3.1/sapi/cgi/libfcgi/include/fcgi_config.h:5:
29: main/php_config.h: No such file or directory
In file included from
/home/ftrudeau/rpm/BUILD/php-4.3.1/sapi/cgi/libfcgi/include/fcgios.h:27,
from /home/ftrudeau/rpm/BUILD/php-4.3.1/sapi/cgi/libfcgi/fcgi_stdio.c:34:
/home/ftrudeau/rpm/BUILD/php-4.3.1/sapi/cgi/libfcgi/include/fcgi_config.h:5:
29: main/php_config.h: No such file or directory
make: *** [sapi/cgi/libfcgi/fcgi_stdio.lo] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.53515 (%build)
Any pointers appreciated.