Re: Re: 9.5 / Re: base_yylex undefined in src/interface/ecpg/preproc/parser.c
Tom Lane <tgl@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Дилян Палаузов <dilyan.palauzov@aegee.org>
Cc: pgsql-bugs@postgresql.org
Date: 2016-12-11T22:18:24Z
Lists: pgsql-bugs
=?UTF-8?B?0JTQuNC70Y/QvSDQn9Cw0LvQsNGD0LfQvtCy?= <dilyan.palauzov@aegee.org> writes: > On 12/11/2016 09:50 PM, Tom Lane wrote: >> I wondered about that --- but the code is rather different in 9.5, >> and I'm hesitant to try to fix it blind. Where can I find the version >> of flex you're using? > here: https://github.com/westes/flex Thanks. After some experimentation, HEAD now seems fine with development-tip flex, but in our back branches I see symbol-redefinition warnings in the main parser and ecpg, along with the link failure you showed in ecpg. I believe the reason those warnings aren't there in HEAD/9.6 is commit 72b1e3a21, which undid our ancient hack of compiling the scanner files as part of the grammar files. What I'm inclined to do to make this better is to back-patch 72b1e3a21 along with today's fix. We've had enough buildfarm and field testing now to be pretty confident that that change didn't break anything, and these results show that our old hacks aren't going to survive contact with newer versions of flex. regards, tom lane
Commits
-
Use "%option prefix" to set API names in ecpg's lexer.
- fb12471ebec1 9.4.11 landed
- 2d48131ed144 9.2.20 landed
- 2bdee07abefe 9.3.16 landed
- 15b3722700ca 9.5.6 landed
- 92fb649837e3 10.0 landed
- 89d1dfa49aaf 9.6.2 landed
-
Build backend/parser/scan.l and interfaces/ecpg/preproc/pgc.l standalone.
- 329361cfa320 9.2.20 landed
- 73ae395d8419 9.3.16 landed
- 7192865bdc48 9.4.11 landed
- 4262c5b1eecc 9.5.6 landed
- 72b1e3a21f05 9.6.0 cited