>Answer is: a broken flex 2.5.4. There were some commits to NetBSD flex to
>use bounded strings. Using 13th July flex source builds a happy PostgreSQL.
>Now to track down which bit broke - anyway, not a PostgreSQL problem :-)
could you try usr.bin/lex/initscan.c revision 1.16?
itojun