# flex version

- Thread: https://externals.io/message/937
- Original archive: https://news-web.php.net/php.internals/937
- Started by Per Lundberg on 2003-04-17T09:10:31+00:00
- Messages: 12
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #937 — Per Lundberg — 2003-04-17T09:10:31+00:00

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

Hello PHP hackers,

What version of flex is needed to compile PHP5 from CVS?  My version
bails out like this:

[Thu Apr 17 10:58:15] per@salem:/usr/local/src/php-cvs/php5> make
Zend/zend_language_scanner.c
flex -Pzend -S/usr/local/src/php-cvs/php5/Zend/flex.skl
-oZend/zend_language_scanner.c -i
/usr/local/src/php-cvs/php5/Zend/zend_language_scanner.l
flex: fatal internal error, bad line in skeleton file
make: *** [Zend/zend_language_scanner.c] Error 1

[Thu Apr 17 11:09:44] per@salem:/usr/local/src/php-cvs/php5> flex -V
flex 2.5.31

[Thu Apr 17 11:10:04] per@salem:/usr/local/src/php-cvs/php5> dpkg -l
flex
[...]
ii  flex                                              
2.5.31-3                                           A fast lexical
analyzer generator.

--
Best regards,

Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.nobolt.com

---

## #938 — Derick Rethans — 2003-04-17T09:11:35+00:00

URL: https://externals.io/message/937#938 · In reply to: #937

> What version of flex is needed to compile PHP5 from CVS?  My version
> bails out like this:

You need 2.5.4 (configure warns about this btw)

Derick

-- 
                                        "my other box is your windows PC"
-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals       http://php-mag.net/

---

## #939 — Per Lundberg — 2003-04-17T09:15:29+00:00

URL: https://externals.io/message/937#939 · In reply to: #938

> > […]
> You need 2.5.4 (configure warns about this btw)

It doesn't warn me, and obviously, 2.5.31 > 2.5.4 so it should not... 
Still, this version does not seem good.
--
Best regards,

Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.nobolt.com

---

## #940 — Derick Rethans — 2003-04-17T09:17:03+00:00

URL: https://externals.io/message/937#940 · In reply to: #939

> 
> > […]
> 
> It doesn't warn me, and obviously, 2.5.31 > 2.5.4 so it should not... 

I should warn you, as 2.5.31 is borked. And I'm pretty sure the check is 
in (perhaps when you run ./buildconf though).

Derick

-- 
                                        "my other box is your windows PC"
-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals       http://php-mag.net/

---

## #941 — Per Lundberg — 2003-04-17T09:42:34+00:00

URL: https://externals.io/message/937#941 · In reply to: #940

> 
> > […]
> I should warn you, as 2.5.31 is borked.

Yes, I agree.  But if it just checks whether the flex version is
>=2.5.4, it obviously "should not" fail on this flex version.

> And I'm pretty sure the check is in (perhaps when you run
> ./buildconf though).
--
Best regards,

Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.nobolt.com

---

## #942 — Derick Rethans — 2003-04-17T09:43:42+00:00

URL: https://externals.io/message/937#942 · In reply to: #941

> 
> > […]
> 
> Yes, I agree.  But if it just checks whether the flex version is
> > […]

again, it checks wheter the version is >=2.5.4 and NOT 2.5.31

Derick

-- 
                                        "my other box is your windows PC"
-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals       http://php-mag.net/

---

## #943 — Sebastian Bergmann — 2003-04-17T09:45:15+00:00

URL: https://externals.io/message/937#943 · In reply to: #940

Derick Rethans wrote:
> I should warn you, as 2.5.31 is borked. And I'm pretty sure the check
> is in (perhaps when you run ./buildconf though).

  The check is in but doesn't abort ./configure as it IMHO should.

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

---

## #944 — Sebastian Bergmann — 2003-04-17T09:46:20+00:00

URL: https://externals.io/message/937#944 · In reply to: #939

Per Lundberg wrote:
> It doesn't warn me, and obviously, 2.5.31 > 2.5.4 so it should not...

  The only supported version of flex at the moment is 2.5.4 (or 2.5.4a).
  The only supported versions of bison are 1.28, 1.35 and 1.75.

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

  Did I help you? Consider a gift: http://wishlist.sebastian-bergmann.de/

---

## #945 — Per Lundberg — 2003-04-17T09:59:52+00:00

URL: https://externals.io/message/937#945 · In reply to: #942

> again, it checks wheter the version is >=2.5.4 and NOT 2.5.31

Actually, it checks whether the version is == 2.5.4.  Maybe that was
what you were trying to communicate.

Anyway, I think a warning is not enough; it should bail out if the flex
version is wrong (since it will not compile otherwise).
--
Best regards,

Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.nobolt.com

---

## #946 — Per Lundberg — 2003-04-17T10:03:06+00:00

URL: https://externals.io/message/937#946

>   The only supported version of flex at the moment is 2.5.4 (or 2.5.4a).
>   The only supported versions of bison are 1.28, 1.35 and 1.75.

Thank you, I will try again with these versions.
--
Best regards,

Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.nobolt.com

---

## #947 — Derick Rethans — 2003-04-17T10:04:33+00:00

URL: https://externals.io/message/937#947 · In reply to: #945

> 
> > […]
> 
> Actually, it checks whether the version is == 2.5.4.  Maybe that was
> what you were trying to communicate.
> 
> Anyway, I think a warning is not enough; it should bail out if the flex
> version is wrong (since it will not compile otherwise).

If you'd been paying attention you'll notice that this was suggested a 
few days ago already.

Derick

-- 
                                        "my other box is your windows PC"
-------------------------------------------------------------------------
 Derick Rethans                                 http://derickrethans.nl/ 
 PHP Magazine - PHP Magazine for Professionals       http://php-mag.net/

---

## #948 — Per Lundberg — 2003-04-17T10:10:55+00:00

URL: https://externals.io/message/937#948 · In reply to: #947

> 
> > […]
> If you'd been paying attention you'll notice that this was suggested a 
> few days ago already.

So why is it not done yet?
--
Best regards,

Per Lundberg / Capio ApS
Phone: +46-18-4186040
Fax: +46-18-4186049
Web: http://www.nobolt.com
