LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 06-08-2010, 01:38 AM   #1
clubbing80s
LQ Newbie
 
Registered: Jun 2010
Distribution: Fedora 2 - 12
Posts: 8

Rep: Reputation: 0
Unhappy php compile errors - found not - flex , bison , re2c


Hi
I'm trying to compile php and I keep getting the following errors ..

configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 (found: none).
configure: warning: flex versions supported for regeneration of the Zend/PHP parsers: 2.5.4 (found: )
configure: warning: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 (found: none)

I have installed

[root@ns1 php-5.2.13]# yum list "flex*" "bison*" "re2c*"
Loaded plugins: changelog, fastestmirror, fs-snapshot, presto, priorities, protect-packages, rpm-warm-cache
Loading mirror speeds from cached hostfile
* fedora: fedora.mirrors.tds.net
* updates: mirror.seas.harvard.edu
Installed Packages
bison.x86_64 2.4.1-4.fc12
bison-devel.x86_64 2.4.1-4.fc12
bison-runtime.x86_64 2.4.1-4.fc12
flex.x86_64 2.5.35-7.fc12
re2c.x86_64 0.13.5-1
installed

I have recompiled re2c to the latest version.

the current version of flex on sourceforge.net is on
flex-2.5.35.tar.gz 2008-02-26
but there is another version
flex-2.5.4a.tar.gz 2006-02-15
the version is correct (for the compile) but the date is way to old....
bison is on the correct version.

Yet I keep getting the errors.
I can find a solution on google so I'm asking here.


Thanks
G
 
Old 06-08-2010, 02:22 AM   #2
timmeke
Senior Member
 
Registered: Nov 2005
Location: Belgium
Distribution: Red Hat, Fedora
Posts: 1,515

Rep: Reputation: 61
1/ They are warnings, not errors. So you can overlook them, unless you want the "regeneration of the Zend/PHP parsers".
Does the PhP work afterwards?
2/ Configure doesn't find the installed packages, like bison - which it should find, you seem to have the proper version
at first sight. This may be related to the "_64" - the use of 64bit packages. Did you set configure up to compile PhP for 64-bit too (and to use 64-bit packages)?

Or in other words, could you post the ./configure options you used?
 
Old 06-08-2010, 05:56 AM   #3
clubbing80s
LQ Newbie
 
Registered: Jun 2010
Distribution: Fedora 2 - 12
Posts: 8

Original Poster
Rep: Reputation: 0
Red face

Thanks for the reply

Yes I am using --with-libdir=lib64 this resolved all my other issues.

My current configure is below.

[root@ns1 php-5.2.13]# cat compile.sh
#!/bin/bash

INCLUDEZ='/usr/include/'

./configure --prefix=/opt/php-5.2.13 --exec-prefix=/opt/php-5.2.13 --with-config-file-path=/opt/php-5.2.13/etc --with-libdir=lib64 --enable-cgi --enable-fastcgi --enable-discard-path --enable-force-cgi-redirect --enable-pcntl --enable-exif --enable-ftp --enable-magic-quotes --enable-sockets --enable-sysvsem --enable-sysvshm --enable-sysvmsg --enable-gd-native-ttf --enable-ucd-snmp-hack --enable-shmop --enable-calendar --enable-mbstring --enable-mbregex --enable-bcmath --enable-dba=shared --enable-xml --enable-xmlreader --enable-xmlwriter --enable-dom --enable-wddx --enable-soap --enable-json --enable-zip --enable-posix --enable-inline-optimization --enable-ctype --enable-pcntl --enable-gd-native-ttf --enable-gd-jis-conv --disable-debug --disable-rpath --with-libmbfl --with-bz2=shared --with-exec-dir --with-t1lib=shared --with-ttf=/usr/include/freetype2 --with-gettext=shared --with-gmp=shared --with-iconv=shared --with-pcre-regex --with-t1lib --with-layout=GNU --with-kerberos --with-imap=shared --with-imap-ssl=shared --with-ldap --with-ldap-sasl --with-mysql=static --with-mysql-sock=/var/lib/mysql --with-mysqli=static --with-mysqli=/usr/bin/mysql_config --with-pgsql=shared --with-snmp=shared --with-xsl=shared --with-libedit=shared --with-pspell=shared --with-mcrypt=shared --with-mhash=shared --with-tidy=shared --with-ncurses=shared --with-mm=shared --with-pgsql --with-readline=shared --with-openssl --without-gdbm --with-curl=shared --with-pear=shared --with-pic=shared --with-mime-magic=shared --with-gd=shared --with-zlib=shared --with-db4=shared --with-apxs2 --enable-mod-charset --with-regex=php --with-tidy=shared --enable-wddx --with-xmlrpc=shared
#> debugging.log

I have just run make test

and I get the following

EXPECTED FAILED TEST SUMMARY
---------------------------------------------------------------------
output buffering - fatalism [tests/output/ob_011.phpt]
ob_start(): Ensure unerasable buffer cannot be flushed by ob_flush() [tests/output/ob_start_basic_unerasable_005.phpt]
SPL: ArrayObject::exchangeArray() basic usage with object as underlying data store. [ext/spl/tests/arrayObject_exchangeArray_basic3.phpt]
=====================================================================

Yes it does seem to work but

I would like a clean compile with out errors or warnings .

Thanks
 
Old 06-09-2010, 09:23 PM   #4
clubbing80s
LQ Newbie
 
Registered: Jun 2010
Distribution: Fedora 2 - 12
Posts: 8

Original Poster
Rep: Reputation: 0
Wink Resolved - php compile errors - found not - flex , bison , re2c

I deleted the source and re-extracted and recompiled on clean source.

Running make clean does not do a proper clean up.
 
Old 04-30-2011, 12:16 AM   #5
anurodh78
LQ Newbie
 
Registered: Apr 2011
Posts: 1

Rep: Reputation: 0
Angry RHEL5.6: PHP 5.3.5 configure warning BISON version

Hi All,

I am in need of your expert opinion. I need to compile, install PHP 5.3.5 on RHEL 5.6 with the following options. I have resolved many warning but the few of them (Bison version & Re2c) is really hard to crack so I thought of taking your opinion.

Compile php-5.3.5 from source with following options gd, pear, zlib, bcmath, sqlite-utf8, apxs2, png-dir, jpeg-dir, enable-sockets, gd-native-ttf, freetype-dir, xpm-dir, mbstring, gettext, session, json, ttf, xsl

Everytime I get :

configure: warning: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers.
configure: warning: bison versions supported for regeneration of the Zend/PHP parsers: 1.28 1.35 1.75 1.875 2.0 2.1 2.2 2.3 2.4 2.4.1 2.4.2 2.4.3 (found: none).

Note: I have installed latest Bison & Flex for this. Even I can see result of which Bison.

Any input or suggestion will be a great help.

Thanks in advance.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Do flex and bison support C++? ankit4u1 Programming 7 08-08-2011 04:56 PM
installing bison and flex rameshsena Linux - Software 10 06-21-2010 11:33 AM
flex and bison saurav.nith Linux - General 1 04-06-2010 06:38 AM
LXer: Handle Your Errors Using Flex and Bison LXer Syndicated Linux News 0 08-02-2006 09:33 AM
bison / flex zaman Programming 1 08-16-2005 10:19 AM


All times are GMT -5. The time now is 06:30 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration