#28930 [NEW]: PHP sources assume you're using Bison
From: eggert at gnu dot org
Operating system: Debian GNU/Linux 3.0r1
PHP version: 4.3.7
PHP Bug Type: Compile Failure
Bug description: PHP sources assume you're using Bison
Description:
------------
"make install" fails as described under "actual result".
The problem is that the source files are picking up the wrong include
files: they should be including the new files generated by Bison 1.875,
but they are including the prebuilt files generated by Bison 1.35. Here is
a patch. This patch should fix PHP bug 21802.
diff -prU2 php-4.3.7/Zend/zend_compile.c
php-4.3.7-fix/Zend/zend_compile.c
--- php-4.3.7/Zend/zend_compile.c 2003-08-28 09:08:11 -0700
+++ php-4.3.7-fix/Zend/zend_compile.c 2004-06-25 13:11:23 -0700
@@ -19,5 +19,5 @@
-#include "zend_language_parser.h"
+#include <zend_language_parser.h>
#include "zend.h"
#include "zend_compile.h"
diff -prU2 php-4.3.7/Zend/zend_highlight.c
php-4.3.7-fix/Zend/zend_highlight.c
--- php-4.3.7/Zend/zend_highlight.c 2003-12-25 10:57:28 -0800
+++ php-4.3.7-fix/Zend/zend_highlight.c 2004-06-25 13:10:57 -0700
@@ -20,5 +20,5 @@
#include "zend.h"
-#include "zend_language_parser.h"
+#include <zend_language_parser.h>
#include "zend_compile.h"
#include "zend_highlight.h"
diff -prU2 php-4.3.7/Zend/zend_indent.c php-4.3.7-fix/Zend/zend_indent.c
--- php-4.3.7/Zend/zend_indent.c 2002-12-31 08:23:03 -0800
+++ php-4.3.7-fix/Zend/zend_indent.c 2004-06-25 13:11:02 -0700
@@ -23,5 +23,5 @@
#include "zend.h"
-#include "zend_language_parser.h"
+#include <zend_language_parser.h>
#include "zend_compile.h"
#include "zend_indent.h"
diff -prU2 php-4.3.7/Zend/zend_ini_scanner.l
php-4.3.7-fix/Zend/zend_ini_scanner.l
--- php-4.3.7/Zend/zend_ini_scanner.l 2003-07-24 01:44:28 -0700
+++ php-4.3.7-fix/Zend/zend_ini_scanner.l 2004-06-25 13:10:34 -0700
@@ -31,5 +31,5 @@
#include "zend.h"
#include "zend_globals.h"
-#include "zend_ini_parser.h"
+#include <zend_ini_parser.h>
#include "zend_ini_scanner.h"
diff -prU2 php-4.3.7/Zend/zend_language_scanner.l
php-4.3.7-fix/Zend/zend_language_scanner.l
--- php-4.3.7/Zend/zend_language_scanner.l 2004-02-03 06:31:19 -0800
+++ php-4.3.7-fix/Zend/zend_language_scanner.l 2004-06-25 13:11:16 -0700
@@ -48,5 +48,5 @@
#include "zend.h"
#include "zend_alloc.h"
-#include "zend_language_parser.h"
+#include <zend_language_parser.h>
#include "zend_compile.h"
#include "zend_language_scanner.h"
Reproduce code:
---------------
To reproduce the problem, install Bison 1.875 and
build PHP 4.3.7 with the following commands:
mkdir obj
cd obj
sh ../php-4.3.7/configure
make
make install
Expected result:
----------------
Expected a clean make install.
Actual result:
--------------
$ make install
Installing PHP SAPI module: cgi
Installing PHP CGI into: /tmp/prefix/bin/
Installing PEAR environment: /tmp/prefix/lib/php/
Parse error: syntax error, unexpected T_WHITESPACE in
/home/eggert/src/php/php-4.3.7/pear/install-pear.php on line 3
make[1]: *** [install-pear-installer] Error 255
make: *** [install-pear] Error 2
--
Edit bug report at http://bugs.php.net/?id=28930&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=28930&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=28930&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=28930&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=28930&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=28930&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=28930&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=28930&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=28930&r=support
Expected behavior: http://bugs.php.net/fix.php?id=28930&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=28930&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=28930&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=28930&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=28930&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=28930&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=28930&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=28930&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=28930&r=float
Thread (10 messages)
- eggert at gnu dot org