#50291 [Opn->Csd]: incorrect usage of autoconf diversions
| From: | rasmus@php.net | Date: | Wed, 25 Nov 2009 01:37:52 +0000 |
| Subject: | #50291 [Opn->Csd]: incorrect usage of autoconf diversions | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-145051@lists.php.net to get a copy of this message | ||
ID: 50291
Updated by: rasmus@php.net
Reported By: vapier at gentoo dot org
-Status: Open
+Status: Closed
Bug Type: *Compile Issues
Operating System: Linux
PHP Version: 5.3.1
New Comment:
Thanks, this motivated me to clean up our m4 crap and make it work with
the latest versions of autoconf. Should still clean up the template
warnings eventually, but those are non-fatal and everything builds
nicely now with autoconf-2.65 for me.
Previous Comments:
------------------------------------------------------------------------
[2009-11-25 00:01:36] vapier at gentoo dot org
Description:
------------
autoconf-2.64+ has changed behavior with diversions in such a way that
php breaks. the autoconf documentation has explained that using these
functions with any diversion not explicitly documented is subject to
breakage, and php is doing just that.
http://www.gnu.org/software/autoconf/manual/autoconf.html#Diversion-support
you can also review the discussion on the autoconf lists:
http://lists.gnu.org/archive/html/bug-autoconf/2009-11/msg00045.html
Reproduce code:
---------------
the code can either be changed to stop using divert() completely (since
it doesnt seem to accomplish anything), or increase the numbers used to
something higher than 1000.
Actual result:
--------------
after regenerating autotools, we see:
$ ./configure
cat: confdefs.h: No such file or directory
./configure: line 410: ac_fn_c_try_run: command not found
./configure: line 426: 5: Bad file descriptor
./configure: line 427: 6: Bad file descriptor
cat: confdefs.h: No such file or directory
./configure: line 466: ac_fn_c_try_run: command not found
cat: confdefs.h: No such file or directory
........
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=50291&edit=1