[postgis-devel] [PostGIS] #636: Compile error (lwin_wkt.c)

PostGIS trac at osgeo.org
Sat Oct 23 09:08:25 PDT 2010


#636: Compile error (lwin_wkt.c)
---------------------------+------------------------------------------------
  Reporter:  jorgearevalo  |       Owner:  pramsey      
      Type:  defect        |      Status:  reopened     
  Priority:  blocker       |   Milestone:  PostGIS 2.0.0
 Component:  postgis       |     Version:  trunk        
Resolution:                |    Keywords:               
---------------------------+------------------------------------------------

Comment(by robe):

 Nope nope,

 but this works:
 flex -olwin_wkt_lex.c lwin_wkt_lex.l

 which gets me a bit further - I wonder if the other errors are similar
 issue.

 {{{
 flex -i -olwin_wkt_lex.c lwin_wkt_lex.l
 gcc -g -O2  -DDLL_EXPORT -DPIC  -Wall -Wmissing-prototypes  -c -o
 lwin_wkt_lex.o lwin_wkt_lex.c
 lwin_wkt_lex.c:681: warning: no previous prototype for 'wkt_yylex'
 lwin_wkt_lex.c: In function `wkt_yylex':
 lwin_wkt_lex.c:773: error: `yylineno' undeclared (first use in this
 function)
 lwin_wkt_lex.c:773: error: (Each undeclared identifier is reported only
 once
 lwin_wkt_lex.c:773: error: for each function it appears in.)
 make[1]: *** [lwin_wkt_lex.o] Error 1
 make[1]: Leaving directory `/c/projects/PostGIS/trunk/liblwgeom'
 make: *** [liblwgeom] Error 2
 make -C liblwgeom
 make[1]: Entering directory `/c/projects/PostGIS/trunk/liblwgeom'
 gcc -g -O2  -DDLL_EXPORT -DPIC  -Wall -Wmissing-prototypes  -c -o
 lwin_wkt_lex.o lwin_wkt_lex.c
 lwin_wkt_lex.c:681: warning: no previous prototype for 'wkt_yylex'
 lwin_wkt_lex.c: In function `wkt_yylex':
 lwin_wkt_lex.c:773: error: `yylineno' undeclared (first use in this
 function)
 lwin_wkt_lex.c:773: error: (Each undeclared identifier is reported only
 once
 lwin_wkt_lex.c:773: error: for each function it appears in.)
 make[1]: *** [lwin_wkt_lex.o] Error 1
 make[1]: Leaving directory `/c/projects/PostGIS/trunk/liblwgeom'

 }}}

-- 
Ticket URL: <http://trac.osgeo.org/postgis/ticket/636#comment:13>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-devel mailing list