From: Graham Allan <allan@mnhep1.hep.umn.edu>
Subject: Re: Is DEC alpha pre-POSIX?
Date: 05 Feb 2001 13:51:30 -0600 [thread overview]
Message-ID: <w534ry8aoxp.fsf@lanark.spa.umn.edu> (raw)
In-Reply-To: 95k0rv$o8h$2@news1.Radix.Net
Thomas Dickey <dickey@saltmine.radix.net> writes:
> 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.
Having installed cfengine 1.6.2 recently myself, I just went rhough this. As
noted, the OSF flex is too old - you need to install GNU flex. this works,
but be careful with your PATH - if you installed GNU flex under /usr/local, you
may still be picking up the OSF flex from /usr/bin before it.
cfengine 1.6.2 also had a 64-bit kind of bug in the interaction of copying files
from a cfd server. Mark Burgess had a simple patch for it...
Graham
--
-------------------------------------------------------------------------
Graham Allan - I.T. Manager - gta@umn.edu - (612) 624-5040
School of Physics and Astronomy - University of Minnesota
-------------------------------------------------------------------------
next prev parent reply other threads:[~2001-02-05 19:51 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
2001-02-05 19:51 ` Graham Allan [this message]
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