Bug #17647 Updated: "make" searches for /zend_language_parser.c
| From: | sniper@php.net | Date: | Tue, 18 Jun 2002 21:55:49 +0000 |
| Subject: | Bug #17647 Updated: "make" searches for /zend_language_parser.c | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-11207@lists.php.net to get a copy of this message | ||
ID: 17647
Updated by: sniper@php.net
Reported By: michael.mauch@gmx.de
-Status: Open
+Status: Feedback
Bug Type: Compile Failure
Operating System: OSF1 Tru64 4.0
PHP Version: 4.3.0-dev
New Comment:
What are the first 4 lines in the Makefile for you?
And what was the exact configure line used?
No funky defines? :)
--Jani
Previous Comments:
------------------------------------------------------------------------
[2002-06-18 16:11:45] michael.mauch@gmx.de
s/bus/bug in the comment above.
------------------------------------------------------------------------
[2002-06-18 16:09:56] michael.mauch@gmx.de
GNU bison-1.35 and flex-2.5.4 are installed, but the bus still persists
with php4-200206181200:
cc -Imain/ -I/house/elmicha/local/src/php4-200206181200/main/
-DPHP_ATOM_INC -I/house/elmicha/local/src/php4-200206181200/include
-I/house/elmicha/local/src/php4-200206181200/main
-I/house/elmicha/local/src/php4-200206181200
-I/house/elmicha/local/src/php4-200206181200/Zend
-I/house/elmicha/local/src/php4-200206181200/ext/xml/expat
-I/house/elmicha/local/src/php4-200206181200/TSRM -g -c
/house/elmicha/local/src/php4-200206181200/main/user_streams.c -o
main/user_streams.o && echo > main/user_streams.lo
Make: Don't know how to make /zend_language_parser.c. Stop.
------------------------------------------------------------------------
[2002-06-17 21:31:44] sniper@php.net
This should be fixed now..can you test the latest snapshot:
http://snaps.php.net/php4-latest.tar.gz
(it does not contain the flex/bison generated files, so you need to
have those tools installed)
------------------------------------------------------------------------
[2002-06-07 15:40:59] michael.mauch@gmx.de
This bug report is for php4-200206070600, but I couldn't choose that
value. php-4.2.1 has no problems wrt this.
"configure" produces a Makefile.objects with some faulty lines like:
/internal_functions.lo: /internal_functions.c
$(CC) -I/ -I/house/elmicha/local/php4-200206070600// $(COMMON_FLAGS)
$(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /internal_functions.c -o
/internal_functions.o && echo > $@
/internal_functions_cli.lo: /internal_functions_cli.c
$(CC) -I/ -I/house/elmicha/local/php4-200206070600// $(COMMON_FLAGS)
$(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /internal_functions_cli.c -o
/internal_functions_cli.o && echo > $@
/zend_language_parser.lo: /zend_language_parser.c
$(CC) -I/ -I/house/elmicha/local/php4-200206070600// $(COMMON_FLAGS)
$(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /zend_language_parser.c -o
/zend_language_parser.o && echo > $@
/zend_language_scanner.lo: /zend_language_scanner.c
$(CC) -I/ -I/house/elmicha/local/php4-200206070600// $(COMMON_FLAGS)
$(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /zend_language_scanner.c -o
/zend_language_scanner.o && echo > $@
/zend_ini_parser.lo: /zend_ini_parser.c
$(CC) -I/ -I/house/elmicha/local/php4-200206070600// $(COMMON_FLAGS)
$(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /zend_ini_parser.c -o
/zend_ini_parser.o && echo > $@
/zend_ini_scanner.lo: /zend_ini_scanner.c
$(CC) -I/ -I/house/elmicha/local/php4-200206070600// $(COMMON_FLAGS)
$(CFLAGS_CLEAN) $(EXTRA_CFLAGS) -c /zend_ini_scanner.c -o
/zend_ini_scanner.o && echo > $@
This makes the compile fail with this error message:
cc -Imain/ -I/house/elmicha/local/php4-200206070600/main/
-DPHP_ATOM_INC -I/house/elmicha/local/php4-200206070600/include
-I/house/elmicha/local/php4-200206070600/main
-I/house/elmicha/local/php4-200206070600
-I/house/elmicha/local/php4-200206070600/Zend
-I/house/elmicha/local/php4-200206070600/ext/xml/expat
-I/house/elmicha/local/php4-200206070600/TSRM -g -c
/house/elmicha/local/php4-200206070600/main/user_streams.c -o
main/user_streams.o && echo > main/user_streams.lo
Make: Don't know how to make /zend_language_parser.c. Stop.
Installing GNU bison and flex did not help, neither did "configure
--src-dir=/house/elmicha/local/php4-200206070600" change anything.
As a workaround, I changed the configure script:
bash-2.05$ diff -ub php4-200206070600/configure php4-200206070600.new
--- php4-200206070600/configure Fri Jun 7 09:00:23 2002
+++ php4-200206070600.new/configure Fri Jun 7 14:51:51 2002
@@ -78828,7 +78828,7 @@
case /main in
"") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I.
-I$abs_srcdir" ;;
- /*) ac_srcdir=
echo $ac_n "/main$ac_c"|cut -c 2-"/";
ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
+ /*) ac_srcdir=echo $ac_n "/main"|cut -c 2-"/";
ac_bdir=$ac_srcdir;
ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
*) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/";
ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
esac
@@ -78869,7 +78869,7 @@
case /main in
"") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I.
-I$abs_srcdir" ;;
- /*) ac_srcdir=echo $ac_n "/main$ac_c"|cut -c 2-"/";
ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
+ /*) ac_srcdir=echo $ac_n "/main"|cut -c 2-"/";
ac_bdir=$ac_srcdir;
ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
*) ac_srcdir="$abs_srcdir//main/"; ac_bdir="/main/";
ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
esac
@@ -78911,7 +78911,7 @@
case /Zend in
"") ac_srcdir="$abs_srcdir/"; unset ac_bdir; ac_inc="-I.
-I$abs_srcdir" ;;
- /*) ac_srcdir=echo $ac_n "/Zend$ac_c"|cut -c 2-"/";
ac_bdir=$ac_srcdir; ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
+ /*) ac_srcdir=echo $ac_n "/Zend"|cut -c 2-"/";
ac_bdir=$ac_srcdir;
ac_inc="-I$ac_bdir -I$abs_srcdir/$ac_bdir" ;;
*) ac_srcdir="$abs_srcdir//Zend/"; ac_bdir="/Zend/";
ac_inc="-I$ac_bdir -I$ac_srcdir" ;;
esac
This makes "make" happy, but of course this is not the correct
solution.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=17647&edit=1