Re: Autoconf test for incompatible version of flex

From: Greg Stark <gsstark(at)mit(dot)edu>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Greg Stark <gsstark(at)mit(dot)edu>, pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: Autoconf test for incompatible version of flex
Date: 2003-07-05 16:32:06
Message-ID: 874r213pfd.fsf@stark.dyndns.tv
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches


Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> writes:

> Greg Stark <gsstark(at)mit(dot)edu> writes:
> > This patch adds an autoconf test to check for the new incompatible version of
> > flex.
>
> It seems unlikely that we should cause configure to reject all future
> versions of flex... .31 may be broken but I think we should assume that
> they'l fix it.

I inquired about this problem elsewhere, it's not a bug, it's an API change.
Until postgres "ports" to the new API it won't work with newer versions of
Flex.

From the Debian maintainer of the flex package
(http://bugs.debian.org/199776)

> The signature of all functions has changed. flex has new
> command line options, and option parsing has changed (now also
> supports POSIX conventions optionally). Handles POSIXLY_CORRECT
> environment variable. Various i18n translations are included in the
> distribution. flex now works with recent bison versions
>
> This is not a single short lived change.
>
> I understand that this requires all packages using lex to
> massage their lexers to conform to the new behaviour of flex; but the
> gains in reduced complexity of the scanner and reentrancy and
> standards compliance are well worth it.

--
greg

In response to

Responses

Browse pgsql-patches by date

  From Date Subject
Next Message Tom Lane 2003-07-06 01:29:45 Re: Autoconf test for incompatible version of flex
Previous Message Tom Lane 2003-07-05 13:45:30 Re: Autoconf test for incompatible version of flex