Thank you for answering Alan and Steve.....<br><br>I will follow your recommendations.. After, I will write you an email and I will tell you what happened, <br><br><br>Steve: I'm using this Flex version 2.5.4a.-41. is it fine this version for MapServer 5.2.1? . Anyway I will try with the more recent version possible in <a href="http://flex.sourceforge.net/">http://flex.sourceforge.net/</a> like you told me <br>
<br><br><br>Additional information<br>
<br>
Mapserver 5.2.1<br> S.O. CentOS 5<br>
Bison 2.3.2.1<br><br><br><br>see ya!<br><br>Mauricio<br><br><br><br><br><br><br><div class="gmail_quote">2009/5/23 Steve Lime <span dir="ltr"><<a href="mailto:Steve.Lime@dnr.state.mn.us">Steve.Lime@dnr.state.mn.us</a>></span><br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Although running flex independently shouldn't harm anything. The steps seem fine<br>
and the error suggests a flex version problem. What are you using?<br>
<br>
I'd suggest upgrading flex and trying again.<br>
<br>
Steve<br>
<br>
>>> Alan Boudreault <<a href="mailto:aboudreault@mapgears.com">aboudreault@mapgears.com</a>> 05/23/09 9:35 AM >>><br>
<div><div></div><div class="h5">Hi Mauricio,<br>
<br>
You should not have to run flex by yourself. The MapServer Makefile will<br>
do it. Make sure you did a "make clean" and a "make" to regenerate<br>
everything.<br>
<br>
Thanks,<br>
Alan<br>
<br>
Mauricio Herrera wrote:<br>
> Hi developer community<br>
><br>
> Could you help me??<br>
><br>
><br>
> I am trying to add a new keyword in MapServer (Only for experimental<br>
> purpose).. but I could not do it. I just want that my keyword is<br>
> detected (recognized) by the MapServer (mapserv) when I write the<br>
> keyword in the mapfile (.map)<br>
><br>
> Until now I have modified the next files:<br>
><br>
> * *maplexer.l *: I added this declaration<br>
> <INITIAL,URL_VARIABLE>start { return(START); } */ I am<br>
> using this syntax: flex -Pmsyy -i -omaplexer.c maplexer.l for<br>
> compiling maplexer.l<br>
><br>
> * *mapfile.h* : I added new keyword and id # Define START 1300<br>
> * *mapfile.c*: only I added the new keyword in a SWITCH of<br>
> loadclass function CASE START: printf ("Keyword is<br>
> here");break; */<br>
><br>
><br>
> After I did MAKE in the command line for compiling these<br>
> files. And inmediatly these errors appear:<br>
><br>
><br>
> ./libmapserver.a(mapfile.o): In function `msUpdateQueryMapFromString':<br>
> mapfile.c:(.text+0x65af): undefined reference to `msyylex_destroy'<br>
> ./libmapserver.a(mapfile.o): In function `msUpdateReferenceMapFromString':<br>
> mapfile.c:(.text+0x69f2): undefined reference to `msyylex_destroy'<br>
> ./libmapserver.a(mapfile.o): In function `msUpdateStyleFromString':<br>
> mapfile.c:(.text+0x705f): undefined reference to `msyylex_destroy'<br>
> ./libmapserver.a(mapfile.o): In function `msUpdateScalebarFromString':<br>
> mapfile.c:(.text+0x7daf): undefined reference to `msyylex_destroy'<br>
> ./libmapserver.a(mapfile.o): In function `msUpdateLegendFromString':<br>
> mapfile.c:(.text+0x81d5): undefined reference to `msyylex_destroy'<br>
> ./libmapserver.a(mapfile.o):mapfile.c:(.text+0x8258): more undefined<br>
> references to `msyylex_destroy' follow<br>
> collect2: ld returned 1 exit status<br>
> make: *** [shp2img] Error 1<br>
><br>
><br>
><br>
> *My questions are:*<br>
><br>
> Should I modify other files for adding a new keyword? or Should I need<br>
> to do another thing ( maybe write "special command" or declaration)?<br>
><br>
><br>
> *Additional information*<br>
><br>
> I have installed on my pc<br>
><br>
> Mapserver 5.2.1<br>
> Flex 2.5.4a.-41<br>
> S.O. CentOS 5<br>
> Bison 2.3.2.1<br>
><br>
><br>
><br>
> Thank you so much!<br>
><br>
> Mauricio<br>
><br>
> ------------------------------------------------------------------------<br>
><br>
> _______________________________________________<br>
> mapserver-dev mailing list<br>
> <a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
> <a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
><br>
<br>
<br>
--<br>
Alan Boudreault<br>
Mapgears<br>
<a href="http://www.mapgears.com/" target="_blank">http://www.mapgears.com/</a><br>
<br>
_______________________________________________<br>
mapserver-dev mailing list<br>
<a href="mailto:mapserver-dev@lists.osgeo.org">mapserver-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-dev" target="_blank">http://lists.osgeo.org/mailman/listinfo/mapserver-dev</a><br>
<br>
</div></div></blockquote></div><br>