- From: Ian Abbott <abbotti_at_mev.co.uk>
- Date: Mon, 08 Jan 2007 14:37:59 +0000
On 05/01/07 19:38, Tabish Mustufa wrote:
> Hello:
>
> I'm trying to set up RTAI + comedi on a newly-installed Fedora Core 6
> machine. However, I run into the following flex error when trying to
> build comedilib:
>
> make[2]: Entering directory `/usr/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
>
> This error was mentioned in a list posting back in September, but no
> solution was posted. I'm running a Fedora Core 6 system (flex version
> 2.5.4) on Linux kernel 2.6.16.37 w/RTAI patches from version 3.4-cv. My
> copies of comedi & comedilib were checked out from CVS this morning (Jan
> 5, 2007). The configure output for flex seems normal.
>
> Any ideas what the issue might be? Should I be using the comedi tarballs
> instead, or are they out of date?
I don't why Red Hat (and Mandriva, and maybe some others) ship
flex-2.5.4a, but this version does not support the --header-file option,
or the --header option as it was previously called:
* the --header option was added in flex-2.5.6
* the --header option was renamed to --header-file in flex-2.5.19, but
--header still works
Maybe --header-file could be changed to --header in libs/Makefile.am to
increase the number versions it works with, but that won't help for
flex-2.5.4.
You could either install a more modern version of flex, or build
comedilib on a system with a more modern version of flex and copy the
generated files (calib_lex.c and calib_lex.h) over to your Fedora system.
--
-=( 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-01-08Z14:37:59