* Is DEC alpha pre-POSIX?
@ 2001-02-03 5:33 M. Monacelli
2001-02-04 16:43 ` Thomas Dickey
2001-02-04 19:51 ` Ric Werme
0 siblings, 2 replies; 4+ messages in thread
From: M. Monacelli @ 2001-02-03 5:33 UTC (permalink / raw)
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.
Taylor.
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Is DEC alpha pre-POSIX?
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
2001-02-04 19:51 ` Ric Werme
1 sibling, 1 reply; 4+ messages in thread
From: Thomas Dickey @ 2001-02-04 16:43 UTC (permalink / raw)
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
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: Is DEC alpha pre-POSIX?
2001-02-04 16:43 ` Thomas Dickey
@ 2001-02-05 19:51 ` Graham Allan
0 siblings, 0 replies; 4+ messages in thread
From: Graham Allan @ 2001-02-05 19:51 UTC (permalink / raw)
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
-------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Is DEC alpha pre-POSIX?
2001-02-03 5:33 Is DEC alpha pre-POSIX? M. Monacelli
2001-02-04 16:43 ` Thomas Dickey
@ 2001-02-04 19:51 ` Ric Werme
1 sibling, 0 replies; 4+ messages in thread
From: Ric Werme @ 2001-02-04 19:51 UTC (permalink / raw)
"M. Monacelli" <tailor@u.washington.edu> writes:
Tru64 Unix has various Posix brandings. However, your post concerns
GNU software. I don't believe that gets Posix testing or branding.
--
Ric Werme | werme@nospam.mediaone.net
http://people.ne.mediaone.net/werme | ^^^^^^^ delete
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2001-02-05 19:51 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
2001-02-04 19:51 ` Ric Werme
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox