Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:40457 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 32619 invoked from network); 11 Sep 2008 07:48:55 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Sep 2008 07:48:55 -0000 Authentication-Results: pb1.pair.com smtp.mail=jani.taskinen@sci.fi; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=jani.taskinen@sci.fi; sender-id=unknown Received-SPF: error (pb1.pair.com: domain sci.fi from 63.208.196.178 cause and error) X-PHP-List-Original-Sender: jani.taskinen@sci.fi X-Host-Fingerprint: 63.208.196.178 mho-01-bos.mailhop.org Received: from [63.208.196.178] ([63.208.196.178:62365] helo=mho-01-bos.mailhop.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 49/52-30769-66DC8C84 for ; Thu, 11 Sep 2008 03:48:55 -0400 Received: from a88-112-30-186.elisa-laajakaista.fi ([88.112.30.186] helo=localhost.localdomain) by mho-01-bos.mailhop.org with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.68) (envelope-from ) id 1Kdgv5-000Lsi-Oa; Thu, 11 Sep 2008 07:48:52 +0000 X-Mail-Handler: MailHop Outbound by DynDNS X-Originating-IP: 88.112.30.186 X-Report-Abuse-To: abuse@dyndns.com (see http://www.mailhop.org/outbound/abuse.html for abuse reporting information) X-MHO-User: U2FsdGVkX19fpldycg/Iz1UwEY3KRADLx6YtBQusjIQ= Message-ID: <48C8CD60.9090807@sci.fi> Date: Thu, 11 Sep 2008 10:48:48 +0300 Reply-To: jani.taskinen@iki.fi User-Agent: Thunderbird 2.0.0.16 (X11/20080723) MIME-Version: 1.0 To: Raghubansh CC: internals@lists.php.net References: <5e2913440809110034k74f90d92n91808268b74d889c@mail.gmail.com> In-Reply-To: <5e2913440809110034k74f90d92n91808268b74d889c@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] buildconf fails on current HEAD From: jani.taskinen@sci.fi (Jani Taskinen) Raghubansh wrote: > Hi All, > > I am trying to build PHP6 (checked out a while from CVS - HEAD) and found > that ./buildconf fails. Following are the failure messages : > > [kraghuba@localhost php6]$ ./buildconf > using default Zend directory > buildconf: checking installation... > buildconf: autoconf version 2.59 (ok) > buildconf: Your version of autoconf likely contains buggy cache code. > Running cvsclean for you. > To avoid this, install autoconf-2.13. > rebuilding configure > Zend/acinclude.m4:1095: error: m4_defn: undefined macro: > _m4_divert_diversion > aclocal.m4:1102: PHP_CHECK_SIZEOF is expanded from... > autom4te: /usr/bin/m4 failed with exit status: 1 > rebuilding main/php_config.h.in > autoheader: WARNING: Using auxiliary files such as `acconfig.h', > `config.h.bot' > autoheader: WARNING: and `config.h.top', to define templates for ` > config.h.in' > autoheader: WARNING: is deprecated and discouraged. > autoheader: > autoheader: WARNING: Using the third argument of `AC_DEFINE' and > autoheader: WARNING: `AC_DEFINE_UNQUOTED' allows to define a template > without > autoheader: WARNING: `acconfig.h': > autoheader: > autoheader: WARNING: AC_DEFINE([NEED_FUNC_MAIN], 1, > autoheader: [Define if a function `main' is needed.]) > autoheader: > autoheader: WARNING: More sophisticated templates can also be produced, see > the > autoheader: WARNING: documentation. > Zend/acinclude.m4:1095: error: m4_defn: undefined macro: > _m4_divert_diversion > aclocal.m4:1102: PHP_CHECK_SIZEOF is expanded from... > autom4te: /usr/bin/m4 failed with exit status: 1 > autoheader: /usr/bin/autom4te failed with exit status: 1 > > Am i doing something wrong ? or something is broken ? Yes, you're using buggy autoconf. Install autoconf 2.13 and it works. In most linux distros you can install multiple versions. Then you can use the PHP_AUTOCONF and PHP_AUTOHEADER macros to point to the version you wish to use, f.e.: PHP_AUTOCONF=autoconf-2.13 PHP_AUTOHEADER=autoheader-2.13 export PHP_AUTOCONF PHP_AUTOHEADER --Jani