# flex.skl problem?

- Thread: https://externals.io/message/12226
- Original archive: https://news-web.php.net/php.internals/12226
- Started by Derrell.Lipman@UnwiredUniverse.com on 2004-08-18T21:45:12+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · RFCs at https://externals.io/rfc.md · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #12226 — Derrell.Lipman@UnwiredUniverse.com — 2004-08-18T21:45:12+00:00

URL: https://externals.io/message/12226#12226

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

---

## #12254 — Derick Rethans — 2004-08-19T07:21:02+00:00

URL: https://externals.io/message/12226#12254 · In reply to: #12226

> 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

---

## #12265 — Derrell.Lipman@UnwiredUniverse.com — 2004-08-19T13:20:02+00:00

URL: https://externals.io/message/12226#12265 · In reply to: #12254

Derick Rethans <derick@php.net> writes:

> 
>
> > […]
>
> 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

---

## #12266 — Derick Rethans — 2004-08-19T13:31:45+00:00

URL: https://externals.io/message/12226#12266 · In reply to: #12265

> 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
