On Mon, Oct 2, 2017 at 8:56 PM, Tim Rühsen <[email protected]> wrote: > On 10/02/2017 10:00 AM, [email protected] wrote: >> Hi! >> >> I get the following error when compiling wget 1.19.1 on AIX 7.1: >> >> make all-am >> CC connect.o >> CC convert.o >> CC cookies.o >> CC ftp.o >> lex -ocss.c >> 0: Warning: 1285-300 The o flag is not valid. >> 0: Warning: 1285-300 The s flag is not valid. >> 0: Warning: 1285-300 The s flag is not valid. >> 0: Warning: 1285-300 The . flag is not valid. >> >> Seems the LEX arguments are not valid? >> >> Any suggestions? > > Hi, > > some 'lex' versions *must have* a space after -o, some others *must not > have* a space there. We decided not to use a space since this covers > most build environments.
I am concerned about the `-o` option itself. As per the POSIX.1-2008 [0], lex only supports -t, -n and -v. Though agreed flex is the de facto implementation of lex which supports `-o`, I think we should stick to the POSIX standard and shouldn't use `-o`. I see 2 possible approaches: 1. use lex.yy.c, default file generated or 2. use `-t >` to have the desired custom filename. [0] http://pubs.opengroup.org/onlinepubs/9699919799/utilities/lex.html Regards, Avinash Sonawane (rootKea) PICT, Pune https://rootkea.wordpress.com
