[postgis-users] Can't Find lex.yy.c when compiling from CVS on Solaris 9

David Bitner osgis.lists at gmail.com
Wed Jan 12 09:57:42 PST 2005


I got past that by adding flex to the machine (it was not working when
I put the path to lex).  Now it appears that I am running into trouble
with YACC (do I need bison?).

Here's the error that I am getting now:

gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wendif-labels
-fno-strict-aliasing -g -fexceptions -fPIC -DUSE_VERSION=80
-DPOSTGIS_LIB_VERSION='"1.0.0"' -DPOSTGIS_SCRIPTS_VERSION='"0.1.0"'
-DPOSTGIS_BUILD_DATE='"%F 17:46:51"' -I/usr/local/include -DUSE_GEOS
-I/opt/csw/include -DUSE_PROJ  -I/opt/csw/include -DAUTOCACHE_BBOX=1 
-DUSE_STATS -fPIC
-I/export/home/pgsql/postgresql-8.0.0rc5/contrib/postgis-cvs/../../src/include
  -c -o wktparse.tab.o wktparse.tab.c
/usr/ccs/bin/yaccpar:5: warning: ignoring #pragma ident
/usr/ccs/bin/yaccpar: In function `lwg_parse_yyparse':
/usr/ccs/bin/yaccpar:374: warning: label `yyerrlab' defined but not used
/usr/ccs/bin/yaccpar:164: warning: label `yynewstate' defined but not used
/opt/csw/bin/flex -Plwg_parse_yy -i -f -o'lex.yy.c' wktparse.lex
gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wendif-labels
-fno-strict-aliasing -g -fexceptions -fPIC -DUSE_VERSION=80
-DPOSTGIS_LIB_VERSION='"1.0.0"' -DPOSTGIS_SCRIPTS_VERSION='"0.1.0"'
-DPOSTGIS_BUILD_DATE='"%F 17:46:51"' -I/usr/local/include -DUSE_GEOS
-I/opt/csw/include -DUSE_PROJ  -I/opt/csw/include -DAUTOCACHE_BBOX=1 
-DUSE_STATS -fPIC
-I/export/home/pgsql/postgresql-8.0.0rc5/contrib/postgis-cvs/../../src/include
  -c -o lex.yy.o lex.yy.c
wktparse.lex: In function `lwg_parse_yylex':
wktparse.lex:28: error: `lwg_parse_yylval' undeclared (first use in
this function)
wktparse.lex:28: error: (Each undeclared identifier is reported only once
wktparse.lex:28: error: for each function it appears in.)
wktparse.lex: At top level:
lex.yy.c:3027: warning: `yyunput' defined but not used
gmake[1]: *** [lex.yy.o] Error 1
gmake[1]: Leaving directory
`/export/home/pgsql/postgresql-8.0.0rc5/contrib/postgis-cvs/lwgeom'
gmake: *** [liblwgeom] Error 2



On Wed, 12 Jan 2005 18:32:30 +0100, strk at refractions.net
<strk at refractions.net> wrote:
> It seems that your FLEX variable is not set (actually is never
> explicitly set in the Makefile).
> 
> Try exporting a FLEX variable pointing to your lex-compatible
> lexical analyzer generator.
> 
> --strk;
> 
> 
> On Wed, Jan 12, 2005 at 11:08:36AM -0600, David Bitner wrote:
> > Here's the error that I am getting while trying to compile
> > postgis-cvs(1/12/2005) on Solaris9 against GEOS-cvs and PostgreSQL
> > 8rc5:
> > ......only bottom part of message included
> > gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wendif-labels
> > -fno-strict-aliasing -g -fexceptions -fPIC -DUSE_VERSION=80
> > -DPOSTGIS_LIB_VERSION='"1.0.0"' -DPOSTGIS_SCRIPTS_VERSION='"0.1.0"'
> > -DPOSTGIS_BUILD_DATE='"%F 17:01:27"' -I/usr/local/include -DUSE_GEOS
> > -I/opt/csw/include -DUSE_PROJ  -I/opt/csw/include -DAUTOCACHE_BBOX=1
> > -DUSE_STATS -fPIC
> > -I/export/home/pgsql/postgresql-8.0.0rc5/contrib/postgis-cvs/../../src/include
> >   -c -o wktparse.tab.o wktparse.tab.c
> > /usr/ccs/bin/yaccpar:5: warning: ignoring #pragma ident
> > /usr/ccs/bin/yaccpar: In function `lwg_parse_yyparse':
> > /usr/ccs/bin/yaccpar:374: warning: label `yyerrlab' defined but not used
> > /usr/ccs/bin/yaccpar:164: warning: label `yynewstate' defined but not used
> > Plwg_parse_yy -i -f -o'lex.yy.c' wktparse.lex
> > gmake[1]: Plwg_parse_yy: Command not found
> > gmake[1]: [lex.yy.c] Error 127 (ignored)
> > gcc -O2 -Wall -Wmissing-prototypes -Wpointer-arith -Wendif-labels
> > -fno-strict-aliasing -g -fexceptions -fPIC -DUSE_VERSION=80
> > -DPOSTGIS_LIB_VERSION='"1.0.0"' -DPOSTGIS_SCRIPTS_VERSION='"0.1.0"'
> > -DPOSTGIS_BUILD_DATE='"%F 17:01:27"' -I/usr/local/include -DUSE_GEOS
> > -I/opt/csw/include -DUSE_PROJ  -I/opt/csw/include -DAUTOCACHE_BBOX=1
> > -DUSE_STATS -fPIC
> > -I/export/home/pgsql/postgresql-8.0.0rc5/contrib/postgis-cvs/../../src/include
> >   -c -o lex.yy.o lex.yy.c
> > gcc: lex.yy.c: No such file or directory
> > gcc: no input files
> > gmake[1]: *** [lex.yy.o] Error 1
> > gmake[1]: Leaving directory
> > `/export/home/pgsql/postgresql-8.0.0rc5/contrib/postgis-cvs/lwgeom'
> > gmake: *** [liblwgeom] Error 2
> > _______________________________________________
> > postgis-users mailing list
> > postgis-users at postgis.refractions.net
> > http://postgis.refractions.net/mailman/listinfo/postgis-users
> 
> --
> 
> For standing up against patentability of software,
> 
>   Thank You, Poland!
> 
> Read the intervention:    http://kwiki.ffii.org/ConsPolon041221En
> Send your thanks:         thankyoupoland.info
> Read/do more:             http://www.noepatents.org/
>



More information about the postgis-users mailing list