No detection of build failure
Alex Kiesel
alex.kiesel at document-root.de
Sat Mar 27 05:55:38 PST 2004
Hi,
I just wanted to upgrade lang/php4. I configured WITH_OPENSSL but
configure did not find a header file and bailed out:
Configuring extensions
checking for OpenSSL support... yes
checking for pkg-config... /usr/local/bin/pkg-config
configure: error: Cannot find OpenSSL's <evp.h>
===> Script "configure" failed unexpectedly.
Please report the problem to ale at FreeBSD.org [maintainer] and attach the
"/usr/ports/lang/php4/work/php-4.3.5/config.log" including the output of
the
failure of your make command. Also, it might be a good idea to provide
an
overview of all packages installed on your system (e.g. an `ls
/var/db/pkg`).
*** Error code 1
Stop in /usr/ports/lang/php4.
*** Error code 1
Stop in /usr/ports/lang/php4.
However, the install process continues:
---> Backing up the old version
---> Uninstalling the old version
---> Deinstalling 'php4-4.3.4_5'
[preparing module `php4' in /usr/local/etc/apache/httpd.conf]
cp /usr/local/etc/apache/httpd.conf /usr/local/etc/apache/httpd.conf.bak
cp /usr/local/etc/apache/httpd.conf.new /usr/local/etc/apache/httpd.conf
rm /usr/local/etc/apache/httpd.conf.new
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 103
packages found (-1 +0) (...) done]
---> Installing the new version via the port
[...]
Which then again tries to configure the port and fails again. This time
the failure is being detected and the old version is restored:
** Command failed [exit code 1]: /usr/bin/script -qa
/tmp/portupgrade10456.2 make reinstall
egrep: /var/db/pkg/php4-4.3.4_5/+CONTENTS: No such file or directory
---> Restoring the old version
[activating module `php4' in /usr/local/etc/apache/httpd.conf]
cp /usr/local/etc/apache/httpd.conf /usr/local/etc/apache/httpd.conf.bak
cp /usr/local/etc/apache/httpd.conf.new /usr/local/etc/apache/httpd.conf
rm /usr/local/etc/apache/httpd.conf.new
** Fix the installation problem and try again.
[Updating the pkgdb <format:bdb1_btree> in /var/db/pkg ... - 104
packages found (-0 +1) . done]
** The following packages were not installed or upgraded (*:skipped /
!:failed)
! lang/php4 (php4-4.3.4_5) (install error)
Shouldn't it avoid to install the non-built port?
Btw, this is a
"FreeBSD php3.de 4.8-RELEASE-p1 FreeBSD 4.8-RELEASE-p1 #0: Tue Aug 5
18:26:52 CEST 2003 root at php3.de:/usr/obj/usr/src/sys/PHP3BSD48
i386"
with openssl from the base.
Cheers,
-Alex
More information about the freebsd-ports
mailing list