[mapserver-dev] Problems for adding a new keyword in MapServer
Mauricio Herrera
georazor at gmail.com
Mon May 25 03:31:21 EDT 2009
Hi
I followed your recommendations and these are the results
Both recommendations were corrects!! thanks a lot Steve and Alan!
1.-imposible to regenerate MapServer 5.2.1 and 5.4.0 with Flex 2.5.4a.-41..
Always show me the same error
2. I needed to upgrade flex to (2.5.35)
3. I only needed to regenerate everything (MAKE CLEAN and MAKE )
thank you again
Mauricio
2009/5/23, Mauricio Herrera <georazor at gmail.com>:
> Thank you for answering Alan and Steve.....
>
> I will follow your recommendations.. After, I will write you an email and
> I
> will tell you what happened,
>
>
> 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 http://flex.sourceforge.net/ like you told me
>
>
>
> Additional information
>
> Mapserver 5.2.1
> S.O. CentOS 5
> Bison 2.3.2.1
>
>
>
> see ya!
>
> Mauricio
>
>
>
>
>
>
> 2009/5/23 Steve Lime <Steve.Lime at dnr.state.mn.us>
>
>> Although running flex independently shouldn't harm anything. The steps
>> seem
>> fine
>> and the error suggests a flex version problem. What are you using?
>>
>> I'd suggest upgrading flex and trying again.
>>
>> Steve
>>
>> >>> Alan Boudreault <aboudreault at mapgears.com> 05/23/09 9:35 AM >>>
>> Hi Mauricio,
>>
>> You should not have to run flex by yourself. The MapServer Makefile will
>> do it. Make sure you did a "make clean" and a "make" to regenerate
>> everything.
>>
>> Thanks,
>> Alan
>>
>> Mauricio Herrera wrote:
>> > Hi developer community
>> >
>> > Could you help me??
>> >
>> >
>> > I am trying to add a new keyword in MapServer (Only for experimental
>> > purpose).. but I could not do it. I just want that my keyword is
>> > detected (recognized) by the MapServer (mapserv) when I write the
>> > keyword in the mapfile (.map)
>> >
>> > Until now I have modified the next files:
>> >
>> > * *maplexer.l *: I added this declaration
>> > <INITIAL,URL_VARIABLE>start { return(START); } */ I am
>> > using this syntax: flex -Pmsyy -i -omaplexer.c maplexer.l for
>> > compiling maplexer.l
>> >
>> > * *mapfile.h* : I added new keyword and id # Define START 1300
>> > * *mapfile.c*: only I added the new keyword in a SWITCH of
>> > loadclass function CASE START: printf ("Keyword is
>> > here");break; */
>> >
>> >
>> > After I did MAKE in the command line for compiling these
>> > files. And inmediatly these errors appear:
>> >
>> >
>> > ./libmapserver.a(mapfile.o): In function `msUpdateQueryMapFromString':
>> > mapfile.c:(.text+0x65af): undefined reference to `msyylex_destroy'
>> > ./libmapserver.a(mapfile.o): In function
>> `msUpdateReferenceMapFromString':
>> > mapfile.c:(.text+0x69f2): undefined reference to `msyylex_destroy'
>> > ./libmapserver.a(mapfile.o): In function `msUpdateStyleFromString':
>> > mapfile.c:(.text+0x705f): undefined reference to `msyylex_destroy'
>> > ./libmapserver.a(mapfile.o): In function `msUpdateScalebarFromString':
>> > mapfile.c:(.text+0x7daf): undefined reference to `msyylex_destroy'
>> > ./libmapserver.a(mapfile.o): In function `msUpdateLegendFromString':
>> > mapfile.c:(.text+0x81d5): undefined reference to `msyylex_destroy'
>> > ./libmapserver.a(mapfile.o):mapfile.c:(.text+0x8258): more undefined
>> > references to `msyylex_destroy' follow
>> > collect2: ld returned 1 exit status
>> > make: *** [shp2img] Error 1
>> >
>> >
>> >
>> > *My questions are:*
>> >
>> > Should I modify other files for adding a new keyword? or Should I need
>> > to do another thing ( maybe write "special command" or declaration)?
>> >
>> >
>> > *Additional information*
>> >
>> > I have installed on my pc
>> >
>> > Mapserver 5.2.1
>> > Flex 2.5.4a.-41
>> > S.O. CentOS 5
>> > Bison 2.3.2.1
>> >
>> >
>> >
>> > Thank you so much!
>> >
>> > Mauricio
>> >
>> > ------------------------------------------------------------------------
>> >
>> > _______________________________________________
>> > mapserver-dev mailing list
>> > mapserver-dev at lists.osgeo.org
>> > http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>> >
>>
>>
>> --
>> Alan Boudreault
>> Mapgears
>> http://www.mapgears.com/
>>
>> _______________________________________________
>> mapserver-dev mailing list
>> mapserver-dev at lists.osgeo.org
>> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
>>
>>
>
More information about the mapserver-dev
mailing list