From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1164f8,365d12f0d8d77d76 X-Google-Attributes: gid1164f8,public X-Google-ArrivalTime: 2001-02-05 11:51:45 PST Path: supernews.google.com!sn-xit-02!supernews.com!isdnet!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!upp1.onvoy!msc1.onvoy!onvoy.com!hardy.tc.umn.edu!laurel.tc.umn.edu!not-for-mail From: Graham Allan Newsgroups: comp.sys.dec Subject: Re: Is DEC alpha pre-POSIX? Date: 05 Feb 2001 13:51:30 -0600 Organization: University of Minnesota, Twin Cities Campus Sender: allan@lanark.spa.umn.edu Message-ID: References: <95k0rv$o8h$2@news1.Radix.Net> X-Trace: laurel.tc.umn.edu 981402692 18071 128.101.220.29 (5 Feb 2001 19:51:32 GMT) X-Complaints-To: usenet@laurel.tc.umn.edu X-Newsreader: Gnus v5.6.45/XEmacs 21.1 - "Biscayne" Xref: supernews.google.com comp.sys.dec:2737 Thomas Dickey writes: > M. Monacelli 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 > > {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 -------------------------------------------------------------------------