[postgis-devel] flex problems on RHEL 5.1

Jorgen Austvik - Sun Norway Jorgen.Austvik at Sun.COM
Fri Jul 25 05:23:48 PDT 2008


Greg Troxel wrote:
> This might be a difference between traditional BSD flex and GNU flex.
> On my NetBSD 4 system the system flex is 2.5.4, and the man page says
> -ofile, with no space.  I also have 2.5.35 installed (the GNU version),
> and that man page says
> 
>        -o, --outfile=FILE
>               specify output filename
> 
> which implies that "-o lex.yy.c" or --outfile=lex.yy.c" are ok.
> However, testing GNU flex shows that -ofoo works.

OK, this is Linux:
------------8<------------------8<------------------8<------------------8<------
Red Hat Enterprise Linux Server release 5.1 (Tikanga)
------------8<------------------8<------------------8<------------------8<------

The man page says:
------------8<------------------8<------------------8<------------------8<------
<snip>

        -ooutput
               directs flex to write the scanner to the file output 
instead of lex.yy.c.  If you combine -o
               with  the -t option, then the scanner is written to 
stdout but its #line directives (see the
               -L option above) refer to the file output.

<snip>

Version 2.5                       April 1995 
FLEX(1)
------------8<------------------8<------------------8<------------------8<------

> Why don't we just accept the default of lex.yy.c and not put it in the
> Makefile at all?  Both traditional BSD and GNU flex document that the
> output goes to lex.yy.c.
> 
> (In case it's not totally obvious, I recently had flex compatibility
> issues in another area.)

OK, I know very little about it. Getting rid of -o would solve my 
problem on RHEL 5.1.

> What version of flex do you have?

------------8<------------------8<------------------8<------------------8<------
[autopg at frigg24]~/bld/postgis: flex -V
flex version 2.5.4
------------8<------------------8<------------------8<------------------8<------

-J
-- 

Jørgen Austvik, Software Engineering - QA
Sun Microsystems Database Group

http://blogs.sun.com/austvik/
http://www.austvik.net/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: jorgen_austvik.vcf
Type: text/x-vcard
Size: 418 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/postgis-devel/attachments/20080725/5d6a3309/attachment.vcf>


More information about the postgis-devel mailing list