- From: Ian Abbott <abbotti_at_mev.co.uk>
- Date: Thu, 14 Jun 2007 11:15:18 +0100
On 14/06/2007 00:23, Aref Taidi wrote: > Hello all, > > I am getting the following error when I try to build comedilib on my FC5 > machine? > > My flex is version 2.5.4. I just updated it using flex.i386 > 0:2.5.4a-41.fc5 package. I would be most grateful if you could tell me > what the solution is please? > > [root_at_localhost comedilib]# make > make all-recursive > make[1]: Entering directory `/usr/local/src/comedilib' > Making all in lib > make[2]: Entering directory `/usr/local/src/comedilib/lib' > flex --header-file=./calib_lex.h -Pcalib_yy -o./calib_lex.c calib_lex.l > flex: unknown flag '-'. For usage, try > flex --help > make[2]: *** [calib_lex.c] Error 1 > make[2]: Leaving directory `/usr/local/src/comedilib/lib' > make[1]: *** [all-recursive] Error 1 > make[1]: Leaving directory `/usr/local/src/comedilib' > make: *** [all] Error 2 > > > Many thanks in advance. Fedora and RHEL ship with an ancient version of flex for some strange reason (fixed in Fedora 7). It's not a problem for the released versions of comedilib as they ship with pre-yacc'ed and pre-lex'ed C sources, but it is a problem with the CVS snapshots. If you can generate calib_lex.c and calib_lex.h from calib_lex.l on a machine with a more modern version of flex, you can just copy those to your comedilib sources on your FC5 machine. They only need to be rebuilt when calib_lex.l is updated. Alternatively, try installing a more modern version of flex locally on your FC5 machine. -- -=( Ian Abbott _at_ MEV Ltd. E-mail: <abbotti_at_mev.co.uk> )=- -=( Tel: +44 (0)161 477 1898 FAX: +44 (0)161 718 3587 )=-
Received on 2007-06-14Z09:15:18