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-04 08:43:44 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.tele.dk!209.50.235.254!europa.netcrusader.net!192.148.253.68!netnews.com!newspeer1.nac.net!news1.radix.net!not-for-mail From: Thomas Dickey Newsgroups: comp.sys.dec Subject: Re: Is DEC alpha pre-POSIX? Date: 4 Feb 2001 16:43:43 GMT Organization: RadixNet Internet Services Message-ID: <95k0rv$o8h$2@news1.Radix.Net> References: NNTP-Posting-Host: saltmine.radix.net User-Agent: tin/1.4.4-20000803 ("Vet for the Insane") (UNIX) (SunOS/5.5.1 (sun4m)) Xref: supernews.google.com comp.sys.dec:2714 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. -- Thomas E. Dickey http://dickey.his.com ftp://dickey.his.com