Thanks Jani, I have using the same machine with Autoconf V2.59 since 2007 and it use to work :(. I shall get the autoconf-2.13. installed and check. thanks.
with Regards, Raghubansh On Thu, Sep 11, 2008 at 1:18 PM, Jani Taskinen <[EMAIL PROTECTED]> wrote: > 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 : >> >> [EMAIL PROTECTED] 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 > > -- with Regards, Raghubansh