# buildconf fails on current HEAD

- Thread: https://externals.io/message/40455
- Original archive: https://news-web.php.net/php.internals/40455
- Started by Raghubansh on 2008-09-11T07:34:16+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #40455 — Raghubansh — 2008-09-11T07:34:16+00:00

URL: https://externals.io/message/40455#40455

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

---

## #40457 — Jani Taskinen — 2008-09-11T07:48:48+00:00

URL: https://externals.io/message/40455#40457 · In reply to: #40455

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

---

## #40459 — Raghubansh — 2008-09-11T08:01:10+00:00

URL: https://externals.io/message/40455#40459 · In reply to: #40457

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



> Raghubansh wrote:
>
> > […]
>
> 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

---

## #40460 — Antony Dovgal — 2008-09-11T08:41:09+00:00

URL: https://externals.io/message/40455#40460 · In reply to: #40459

> 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
