[postgis-devel] flex problems on RHEL 5.1

Jorgen Austvik - Sun Norway Jorgen.Austvik at Sun.COM
Fri Jul 25 01:50:57 PDT 2008


Hi, on RHEL 5.1 I see this problem during make:

-------8<---------------8<---------------8<---------------8<--------
flex -Plwg_parse_yy -i -f -o 'lex.yy.c' wktparse.lex
"lex.yy.c", line 1: bad character: #
"lex.yy.c", line 1: unknown error processing section 1
"lex.yy.c", line 2: bad character: #
"lex.yy.c", line 3: bad character: #
"lex.yy.c", line 4: bad character: #
"lex.yy.c", line 5: bad character: #
<snip>
flex: could not create
-------8<---------------8<---------------8<---------------8<--------

The following patch seems to fix the issue for me:

-------8<---------------8<---------------8<---------------8<--------
Index: liblwgeom/Makefile.in
===================================================================
--- liblwgeom/Makefile.in       (revision 2883)
+++ liblwgeom/Makefile.in       (working copy)
@@ -59,5 +59,5 @@
          mv -f y.tab.h wktparse.tab.h

   lex.yy.c: wktparse.lex wktparse.tab.c
-       $(LEX) -Plwg_parse_yy -i -f -o 'lex.yy.c' wktparse.lex
+       $(LEX) -Plwg_parse_yy -i -f -o'lex.yy.c' wktparse.lex

-------8<---------------8<---------------8<---------------8<--------

I think this is a pretty standard RHEL 5.1:
-------8<---------------8<---------------8<---------------8<--------
gcc -v
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man
--infodir=/usr/share/info --enable-shared --enable-threads=posix
--enable-checking=release --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-libgcj-multifile
--enable-languages=c,c++,objc,obj-c++,java,fortran,ada
--enable-java-awt=gtk --disable-dssi --enable-plugin
--with-java-home=/usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/jre
--with-cpu=generic --host=x86_64-redhat-linux
Thread model: posix
gcc version 4.1.2 20070626 (Red Hat 4.1.2-14)

uname -a
Linux xxxxxxxx 2.6.18-53.1.14.el5 #1 SMP Tue Feb 19 07:18:46 EST 2008
x86_64 x86_64 x86_64 GNU/Linux

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/



More information about the postgis-devel mailing list