LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   php compile errors - found not - flex , bison , re2c (https://www.linuxquestions.org/questions/linux-software-2/php-compile-errors-found-not-flex-bison-re2c-812818/)

clubbing80s 06-08-2010 01:38 AM

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

timmeke 06-08-2010 02:22 AM

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?

clubbing80s 06-08-2010 05:56 AM

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

clubbing80s 06-09-2010 09:23 PM

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.

anurodh78 04-30-2011 12:16 AM

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.


All times are GMT -5. The time now is 04:22 PM.