php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #15823 Configure fails (line 3395 unexp. 'fi')
Submitted: 2002-03-01 16:44 UTC Modified: 2002-05-13 00:00 UTC
Votes:5
Avg. Score:4.6 ± 0.8
Reproduced:5 of 5 (100.0%)
Same Version:3 (60.0%)
Same OS:3 (60.0%)
From: david at pananix dot com Assigned:
Status: No Feedback Package: *Configuration Issues
PHP Version: 4.1.2 OS: Linux-2.4.18
Private report: No CVE-ID: None
 [2002-03-01 16:44 UTC] david at pananix dot com
I d/l 4.1.2
ran configure and got an error (line 3395)
rm'd configure and ran buildconf which rebuilt configure
same error:
line 3395: syntax error near unexpected token 'fi'

line 3393 contains an else clause
line 3394 is blank
line 3395 contains fi

If I fix this (comment out else), this same error
occurs 3 more times.  Fixing each in turn, configure
finally completes, but does not create a Makefile.

system: LFS-3.2rc1 (Linux From Scratch)
automake-1.5, autoconf-2.52, libtool-1.4.2
Note: php-4.0.6 did not have this problem for me,
but 4.1.0, 4.1.1, and 4.1.2 do. I've avoided upgrading,
but now find I must.  4.0.6 still configs fine.
more info on request -

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-12 08:21 UTC] tlamy at gayforum dot net
Guess you are using autoconf 2.5[23]. Here's a small diff, it has worked for me.


diff -u ../php-4.1.2/configure.in configure.in
--- ../php-4.1.2/configure.in   Wed Feb 27 10:06:31 2002
+++ configure.in        Fri Apr 12 10:10:57 2002
@@ -122,6 +122,7 @@
 AC_PROG_LEX
 if test -n "$LEX"; then
   AC_DECL_YYTEXT
+  true
 fi

 dnl ## Make flex scanners use const if they can, even if __STDC__ is not
@@ -227,7 +228,7 @@

 unset ac_cv_func_yp_get_default_domain
 AC_CHECK_FUNC(yp_get_default_domain,
- [php_no_nsl_checks=yes],[ ])
+ [php_no_nsl_checks=yes],[])
 unset ac_cv_func_yp_get_default_domain

 if test "$php_no_nsl_checks" != "yes"; then
 [2002-04-12 10:41 UTC] sniper@php.net
Does this happen with the latest PHP 4.2.0RC from http://www.php.net/~derick/ (or with latest CVS snapshot http://snaps.php.net/)

??

 [2002-05-13 00:00 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, 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".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 22:01:27 2024 UTC