I'm trying to compile PHP from cvs, but it barfs while trying to generate
zend_language_scanner.c from zend_language_scanner.l. The problem is in the
specified skeleton file: flex.skl, and it seems to be dying near the beginning
on the first '%-' line. I can't find any reference in the flex grammar
documentation that even discusses such a line, so I don't know what it's
supposed to do.
I'm using flex version 2.5.31
Suggestions?
Thanks,
Derrell
I'm trying to compile PHP from cvs, but it barfs while trying to generate
zend_language_scanner.c from zend_language_scanner.l. The problem is in the
specified skeleton file: flex.skl, and it seems to be dying near the beginning
on the first '%-' line. I can't find any reference in the flex grammar
documentation that even discusses such a line, so I don't know what it's
supposed to do.I'm using flex version 2.5.31
Don't do that, we only support 2.5.4 (the flex people modified some
internal stuff which is incompatible with our skeleton file).
regards,
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org
Derick Rethans derick@php.net writes:
I'm trying to compile PHP from cvs, but it barfs while trying to generate
zend_language_scanner.c from zend_language_scanner.l. The problem is in the
specified skeleton file: flex.skl, and it seems to be dying near the beginning
on the first '%-' line. I can't find any reference in the flex grammar
documentation that even discusses such a line, so I don't know what it's
supposed to do.I'm using flex version 2.5.31
Don't do that, we only support 2.5.4 (the flex people modified some
internal stuff which is incompatible with our skeleton file).
Yuck! That seems kind of nasty to have to downgrade an application. (I'm
tracking Debian unstable.) Any chance that the flex-generated C files could
be distributed in cvs and the Makefile modified to not try to generate them
from the flex input? Better yet, what's involved in modifying the skeleton
file to work with an up-to-date flex? I might give it a go if it's not
something requiring a total rewrite...
Derrell
Yuck! That seems kind of nasty to have to downgrade an application. (I'm
tracking Debian unstable.)
apt-get install flex-old
Any chance that the flex-generated C files could
be distributed in cvs and the Makefile modified to not try to generate them
from the flex input?
Those files are in the snapshots, you can use those just fine. If you
want to compile from CVS you need a good flex.
Better yet, what's involved in modifying the skeleton
file to work with an up-to-date flex? I might give it a go if it's not
something requiring a total rewrite...
No idea, you'll have to find our for yourself.
Derick
--
Derick Rethans
http://derickrethans.nl | http://ez.no | http://xdebug.org