From: Thomas Dickey <dickey@saltmine.radix.net>
Subject: Re: Is DEC alpha pre-POSIX?
Date: 4 Feb 2001 16:43:43 GMT [thread overview]
Message-ID: <95k0rv$o8h$2@news1.Radix.Net> (raw)
In-Reply-To: Pine.A41.4.21.0102022110360.51554-100000@dante16.u.washington.edu
M. Monacelli <tailor@u.washington.edu> wrote:
> Trying to install CFengine 1.6.2 on a OSF1 V4.0 878 alpha machine and the
> 'configure' script works fine, but 'make' dies with an error about cflex.l
> having an illegal character.
> I believe that flex is the program thats causeing the trouble. Here are
> the last few lines of the 'make' output:
> -----------------
> flex cflex.l && mv lex.yy.c cflex.c
> "cflex.l", line 66: illegal character
> "cflex.l", line 68: unknown error processing section 1
> "cflex.l", line 406: undeclared start condition IDENT
> *** Exit 1
> Stop.
> -----------------
> Here are lines 66, 68 and 406 of cflex.l:
> %option noyywrap <- line 66
> %o 30000 <- line 68
> <IDENT>{id} { <- line 406
> Could some lex-master enlighten enlighten me? I believe that I am using
> GNU flex-2.5.4, but not positive.
OSF1/.../Tru64 has a rather old version of flex. The %option is a flex
extension (2.5.4's manpage indicates that it is not a POSIX feature),
and probably does not appear in that version of flex. Notwithstanding
the limitations of this version of flex, CFengine is not POSIX:
If you do not supply your own version of yywrap(), then
you must either use %option noyywrap (in which case the
scanner behaves as though yywrap() returned 1), or you
must link with -lfl to obtain the default version of the
routine, which always returns 1.
--
Thomas E. Dickey <dickey@radix.net> <dickey@herndon4.his.com>
http://dickey.his.com
ftp://dickey.his.com
next prev parent reply other threads:[~2001-02-04 16:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-02-03 5:33 Is DEC alpha pre-POSIX? M. Monacelli
2001-02-04 16:43 ` Thomas Dickey [this message]
2001-02-05 19:51 ` Graham Allan
2001-02-04 19:51 ` Ric Werme
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox