php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #17853 byacc/yacc error while compiling
Submitted: 2002-06-19 17:00 UTC Modified: 2002-06-20 18:55 UTC
From: jeroen at vogelpoel dot dot dot com Assigned:
Status: Not a bug Package: Compile Failure
PHP Version: 4.0CVS-2002-06-19 OS: Linux Mandrake 8.1
Private report: No CVE-ID: None
 [2002-06-19 17:00 UTC] jeroen at vogelpoel dot dot dot com
Okay, so here's what happened:

I downloaded the latest CVS snapshot for use with Apache 2.0.39, which I configured with the following set of options to be compiled:

'./configure' '--with-apxs2=/usr/local/apache2/bin/apxs' '--enable-bcmath' '--enable-calendar' '--enable-ftp' '--enable-magic
-quotes' '--with-mysql=/usr/local/etc/mysql-3.23.49a-pc-linux-gnu-i686/' '--with-pear' '--enable-versioning' '--enable-exif' '--with-gd=/root/downloads/etc/gd
-1.8.4' '--with-jpeg-dir=/root/downloads/etc/jpeg-6b' '--with-png-dir=/root/downloads/etc/libpng-1.2.2' '--with-zlib-dir=/root/downloads/etc/zlib-1.1.4'

It configured fine and I expected it to operate normally like it did before with Apache 2.0.35 and PHP 4.2.1, however, after allot of compiling it messed up at zend_language_parser.c, giving me the following error.

byacc -p zend -v -d /root/downloads/etc/php4-200206191200/Zend/zend_language_parser.y -o Zend/zend_language_parser.c
usage: yacc [-dlrtv] [-b file_prefix] [-o output_filename]
            [-p symbol_prefix] filename
make: *** [Zend/zend_language_parser.c] Error 1

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-06-19 19:07 UTC] sniper@php.net
Install GNU bison and flex. Not a bug.

--Jani

 [2002-06-20 11:06 UTC] jeroen at vogelpoel dot dot dot com
Both Bison and Flex are installed and working on my system. I have compiled (older) PHP versions before and it all worked perfectly then.
 [2002-06-20 11:29 UTC] mfischer@php.net
Can you exactly tell us which versions you've installed?
 [2002-06-20 17:18 UTC] jeroen at vogelpoel dot dot dot com
php4-200206191200 (CVS snapshot, as recommended for use with Apache 2.0.39)
httpd-2.0.39

bison-1.35
flex-2.5.4

Btw, thank you in advance for any time spent working on this :)
 [2002-06-20 18:55 UTC] sniper@php.net
This is not any bug. If you really have bison installed,
the binary would be called 'bison' and for flex 'flex'.
Check your PATH..


 [2002-06-25 18:41 UTC] gary dot evans at ubizen dot com
I had the same problem discussed here, I removed byacc (rpm -e byacc)
and removed the config.cache from the php source directory.

It then complied fine.

Seems that theres some issue with byacc with this version of the PHP
code. removing byacc and deleting the config.cache file solved it by
forcing make to use bison instead of byacc.

hope that helps.
 [2003-12-20 04:33 UTC] Georgie_Kurien at usswi dot com
I was having a similar problem with PHP4.3.4 compilation.
The solution, removing byacc (rpm -e byacc)
and removed the config.cache from the php source directory worked. Thanks a lot.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 10:01:32 2024 UTC