php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #1756 ./configure fails when called from within rpm
Submitted: 1999-07-20 12:51 UTC Modified: 1999-07-21 07:24 UTC
From: callus at stad dot dsl dot nl Assigned:
Status: Closed Package: Installation problem
PHP Version: 4.0 Beta 1 OS: RH 6.0 2.2.5-15 i686
Private report: No CVE-ID: None
 [1999-07-20 12:51 UTC] callus at stad dot dsl dot nl
This works well: ./configure --with-apxs=/usr/sbin/apxs --with-system-regex --with-gd --enable-track-vars --with-config-file-path=/etc/httpd/conf --with-exec-dir=/home/httpd/php/bin --with-imap --enable-magick-quotes --with-ldap --with-mcrypt --with-mhash --with-mysql --with-snmp --with-zlib --enable-ucd-snmp-hack
But the same from within rpm (3.0.2 release 6.0) fails when it checks for the C preprocessor.

Specfile:
Summary:   PHP - with the long awaited Zend engine :)
Name:      mod_php4
Version:   4.0b1
Release:   1
URL:       http://www.php.net/
Source:    http://www.php.net/version4/downloads/php-%{version}.tar.gz
Copyright: ???
Group:     Networking/Daemons
Requires:  apache-mod_ssl >= 1.3.6.2.3.6, imap >= 4.5, MySQL >= 3.21.25, gd >= 1.6.1 etc.
Obsoletes: php, mod_php, mod_php3
BuildRoot: /var/tmp/%{name}-%{version}-root
%description
%prep
%setup -q -n php-%{version}
%build
./configure --with-all-options-as-mentioned-above
make

Output:
++ echo -n checking how to run the C preprocessor...
checking how to run the C preprocessor... ++ echo configure:2480: checking how t
o run the C preprocessor
++ test -n
++ test -z
+++ echo ${ac_cv_prog_CPP+set}
++ eval test "${ac_cv_prog_CPP+set}" = set
+++ test  = set
++ CPP=gcc -E
++ cat
++ ac_try=$CPP $CPPFLAGS conftest.c >/dev/null 2>conftest.out
++ eval echo configure:2501: "$CPP $CPPFLAGS conftest.c >/dev/null 2>conftest.ou
t"
+++ echo configure:2501: gcc -E  conftest.c >/dev/null 2>conftest.out
+++ grep -v ^ *+ conftest.out
+++ grep -v ^conftest.c$
++ ac_err=
Bad exit status from /var/tmp/rpm-tmp.73649 (%build)

My apologies if I have overlooked something.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-07-21 05:03 UTC] sas at cvs dot php dot net
Where does it fail? I don't see any error message beside the "Bad exit status" at the end.
 [1999-07-21 07:24 UTC] callus at stad dot dsl dot nl
resolved: run with sh ./configure Thanks to Samuel Liddicott for the working  rpm available at:
http://www.csluk.demon.co.uk/mod_php4-4.0b1-1.src.rpm
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Dec 26 21:01:28 2024 UTC