Edit report at http://bugs.php.net/bug.php?id=50291&edit=1

 ID:                 50291
 Comment by:         mail at crick dot ru
 Reported by:        vapier at gentoo dot org
 Summary:            incorrect usage of autoconf diversions
 Status:             Re-Opened
 Type:               Bug
 Package:            Compile Failure
 Operating System:   Linux
 PHP Version:        5.3.1
 Block user comment: N
 Private report:     N

 New Comment:

This annoying bug is still there. How about solutions?


Previous Comments:
------------------------------------------------------------------------
[2010-08-10 19:58:16] scott...@php.net

This got lost when we re-branched trunk from 5_3

------------------------------------------------------------------------
[2010-01-23 08:49:47] ras...@php.net

This fix is only in HEAD.  You need autoconf <2.60 for 5.3

------------------------------------------------------------------------
[2010-01-23 08:13:13] ram...@php.net

I'm having this problem with a fresh checkout (revision 293858) from 

the PHP_5_3 branch. I running on Mac OS X 10.6.2 and have autoconf 

2.65 from macports.



$ ./buildconf

$ ./configure

cat: confdefs.h: No such file or directory

./configure: line 389: ac_fn_c_try_run: command not found

./configure: line 405: 5: Bad file descriptor

./configure: line 406: 6: Bad file descriptor

cat: confdefs.h: No such file or directory

./configure: line 445: ac_fn_c_try_run: command not found

..........



I'm not having the problem when running configure on the 5.3.1 tar 

package.

------------------------------------------------------------------------
[2009-11-25 01:37:52] ras...@php.net

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.

------------------------------------------------------------------------
[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/bug.php?id=50291&edit=1

Reply via email to