Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Oct 2007 04:01:41 +0200
From:      Martin Tournoij <carpetsmoker@xs4all.nl>
To:        freebsd-ports@freebsd.org
Cc:        kono@kth.se
Subject:   Re: php5 does not buid
Message-ID:  <20071003020140.GA98578@glitch.rwxrwxrwx.net>
In-Reply-To: <200710021823.54047.kono@kth.se>
References:  <200710021823.54047.kono@kth.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue 02 Oct 2007 18:10, Alexander Konovalenko wrote:
> 
> Hello,
> 
> I got an error while building php5:
> 
> make clean build
> ===>  Cleaning for php5-5.2.4_1
> ===>  Vulnerability check disabled, database not found
> ===>  Found saved configuration for php5-5.2.4_1
> ===>  Extracting for php5-5.2.4_1
> => MD5 Checksum OK for php-5.2.4.tar.bz2.
> => SHA256 Checksum OK for php-5.2.4.tar.bz2.
> ===>  Patching for php5-5.2.4_1
> ===>  Applying FreeBSD patches for php5-5.2.4_1
> ===>   php5-5.2.4_1 depends on file: /usr/local/sbin/apxs - found
> ===>   php5-5.2.4_1 depends on file: /usr/local/bin/autoconf-2.61 - found
> ===>   php5-5.2.4_1 depends on executable: pkg-config - found
> ===>   php5-5.2.4_1 depends on shared library: xml2.5 - found
> ===>  Configuring for php5-5.2.4_1
> configure.in:152: warning: AC_PROG_LEX invoked multiple times
> ../../lib/autoconf/programs.m4:779: AC_DECL_YYTEXT is expanded from...
> aclocal.m4:2080: PHP_PROG_LEX is expanded from...
> configure.in:152: the top level
> ===>  Building for php5-5.2.4_1
> make: cannot open Makefile.
> *** Error code 2
> 
> Stop in /usr/ports/lang/php5.
> *** Error code 1
> 
> Stop in /usr/ports/lang/php5.
> 
> Is there any work around?
> 
> I tried php4 but got the same error. I need to build php5 module for Apache22. 
> 
> uname -a
> FreeBSD myhost 6.2-STABLE FreeBSD 6.2-STABLE #2: Mon Oct  1 12:35:16 CEST 2007     
> root@myhost:/usr/obj/usr/src/sys/SMP-DEVELOPER  i386

While updating autotools, the commiter also accidentally updated m4 to a
new (unstable) version, leading to various problems.

The problem has been fixed, try updating your ports tree, removing
the php work directory and building again.

Regards,
Martin Tournoij



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20071003020140.GA98578>