FAQ
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 ?

Thanks In advance!

--
with Regards,
Raghubansh

Search Discussions

  • Jani Taskinen at Sep 11, 2008 at 7:48 am

    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
  • Raghubansh at Sep 11, 2008 at 8:01 am
    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 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 :

    [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

    --
    with Regards,
    Raghubansh
  • Antony Dovgal at Sep 11, 2008 at 8:41 am

    On 11.09.2008 12:01, Raghubansh wrote:
    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.
    Can't see any problems with autoconf 2.61.

    --
    Wbr,
    Antony Dovgal

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupphp-internals @
categoriesphp
postedSep 11, '08 at 7:34a
activeSep 11, '08 at 8:41a
posts4
users3
websitephp.net

People

Translate

site design / logo © 2022 Grokbase