|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #35992 configure script hangs on AIX
Submitted: 2006-01-13 11:31 UTC Modified: 2006-01-27 01:00 UTC
Avg. Score:5.0 ± 0.0
Reproduced:2 of 2 (100.0%)
Same Version:1 (50.0%)
Same OS:2 (100.0%)
From: thierryblind at msn dot com Assigned:
Status: No Feedback Package: Compile Failure
PHP Version: 5.1.2 OS: AIX 5.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: thierryblind at msn dot com
New email:
PHP Version: OS:


 [2006-01-13 11:31 UTC] thierryblind at msn dot com
since php 5.1.1, the "configure" script hangs on AIX 5.1
while "checking for flex version...".
I have to hit "ctrl-d" and "enter" to bypass this test (and to make fail this one by the same occasion), but compilation of PHP still succeeds.
I think the script simply do some wrong tests and it results that it waits on user input ...

In comparison, "configure" script in php-5.0.5 had no such problem.

Thank you.

Reproduce code:
creating cache ./config.cache
checking for Cygwin environment... no
checking for mingw32 environment... no
checking for egrep... grep -E
checking for a sed that does not truncate output... /usr/bin/sed
checking host system type... powerpc-ibm-aix5.1.0.0
checking target system type... powerpc-ibm-aix5.1.0.0
checking for gcc... no
checking for cc... cc
checking whether the C compiler (cc  ) works... yes
checking whether the C compiler (cc  ) is a cross-compiler... no
checking whether we are using GNU C... no
checking whether cc accepts -g... yes
checking whether cc understands -c and -o together... yes
checking how to run the C preprocessor... cc -E
checking for AIX... yes
checking whether ln -s works... yes
checking if compiler supports -R... yes
checking for re2c... no
configure: warning: You will need re2c 0.9.11 or later if you want to regenerate
 PHP parsers.
checking for gawk... no
checking for nawk... nawk
checking if nawk is broken... no
checking for bison... no
checking for byacc... no
checking for bison version... invalid
configure: warning: bison versions supported for regeneration of the Zend/PHP pa
rsers: 1.28 1.35 1.75 1.875 2.0 2.1 (found: none).
checking for flex... lex
checking for yywrap in -ll... yes
checking lex output file root... lex.yy
checking whether yytext is a pointer... no
checking for working const... yes
checking for flex version... 

<script hangs here>


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2006-01-13 12:12 UTC] thierryblind at msn dot com
Sorry I forgot to send the parameters I used :

./configure --prefix=/usr/local/php --with-libxml-dir=/usr/local/libxml2 --with-mssql=/usr/local/freetds --with-sybase-ct=/sybase/OCS --with-apxs=/usr/HTTPServer/bin/apxs

... and the compilation succeeded but "make" doesn't generate the program ./sapi/cli/php !
 [2006-01-13 12:44 UTC]
Can't reproduce with AIX 5.3 (doesn't matter whether flex is installed or not).
 [2006-01-27 01:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a week, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 [2006-03-06 16:30 UTC] scott at abcoa dot com
It did happen to me once.  In my cause, turned out the problem is a broken communication between the C compiler and conftest.c, so something on the O/S got broken, not the PHP's configure script in my case.
 [2006-05-03 12:21 UTC] netinfo at laposte dot net
I have the same problem with the php 5.1.3 with AIX 5.3.
I have compared the Makefile generated by the configure between a old version of php (5.0.5 wich is ok) and this version.
I noticed the diffence for the "BUILD_CLI".
I have to modify two things :

 - first, the file apxs from IBM. I add "push(@cmds, "cp /Libre/web/php-5.1.3/.libs/ /usr/HTTPServer/modules");", before the command line "push(@cmds, "chmod 755 $CFG_LIBEXECDIR/$t");"

 - two, I modify "BUILD_CLI" in the Makefile. I write "BUILD_CLI = $(LIBTOOL) --mode=link $(CC) -export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_CLI_PATH)" instead of "BUILD_CLI = echo '\#! .' > php.sym && echo >>php.sym && nm -BCpg `echo $(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS) | sed 's/\([A-Za-z0-9_]*\)\.lo/\1.o/g'` | $(AWK) '{ if ((($$2 == "T") || ($$2 == "D") || ($$2 == "B")) && (substr($$3,1,1) != ".")) { print $$3 } }' | sort -u >> php.sym && $(LIBTOOL) --mode=link $(CC) -export-dynamic $(CFLAGS_CLEAN) $(EXTRA_CFLAGS) $(EXTRA_LDFLAGS_PROGRAM) $(LDFLAGS) -Wl,-brtl -Wl,-bE:php.sym $(PHP_RPATHS) $(PHP_GLOBAL_OBJS) $(PHP_CLI_OBJS) $(EXTRA_LIBS) $(ZEND_EXTRA_LIBS) -o $(SAPI_CLI_PATH)".

So, the "make install" is OK.
that's all.
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 15 03:01:28 2024 UTC