[mapserver-dev] RFC 24 Changes to mapscript/perl/plmodule.i

Yewondwossen Assefa yassefa at dmsolutions.ca
Thu Mar 20 11:23:48 EDT 2008


I am checking the build now. It builds ok with the following config

gcc -c -g -O2 -fPIC -Wall    -DHAVE_VSNPRINTF -DNEED_STRLCAT 
-DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR -DUSE_LIBXML2 -DUSE_CURL 
-DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR    -DUSE_POSTGIS  -DUSE_GDAL 
-DUSE_OGR   -DUSE_PROJ -DUSE_EPPL  -DUSE_AGG   -DUSE_GD_GIF -DUSE_GD_PNG 
-DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW 
-DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB

Later,

Steve Lime wrote:
> Not sure on the build problems (not my fault for a change), so I won't update my
> source files for a while. I'll try your patch though, seems like an easy fix. Is the
> module name (as defined in mapscript.i) available as an env variable? Or perhaps
> we could set it there for all subsequent .i files to use?
> 
> Steve
> 
>>>> On 3/20/2008 at 3:42 AM, in message
> <75b4b93e0803200142m57e1892l6c3d1f2aaa7a93a0 at mail.gmail.com>, "Umberto
> Nicoletti" <umberto.nicoletti at gmail.com> wrote:
>> I was trying to help you out on this one (see attached patch), but I
>> can't compile mapserver:
>>
>> unicoletti at ziggy ~/Workspace/eclipse/subversion/sandox/mapserver $make
>> gcc -c -O2 -fPIC -Wall     -DHAVE_VSNPRINTF -DNEED_STRLCAT
>>  -DUSE_WMS_SVR      -DUSE_GDAL  -DUSE_GEOS  -DUSE_THREAD -DUSE_PROJ
>> -DUSE_EPPL     -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP
>> -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR
>> -DGD_HAS_GETBITMAPFONTS -DUSE_ICONV -DUSE_ZLIB     -I/usr/include
>>   -I/usr/include/gdal      -I/usr/include      mapwfs11.c -o
>> mapwfs11.o
>> In file included from mapwfs11.c:32:
>> mapows.h:31: error: expected specifier-qualifier-list before 'rectObj'
>> mapows.h:97: error: expected specifier-qualifier-list before 'hashTableObj'
>> mapows.h:116: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'int'
>> mapows.h:120: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'int'
>> mapows.h:121: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'int'
>> mapows.h:122: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'char'
>> mapows.h:123: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'char'
>> mapows.h:124: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'const'
>> mapows.h:125: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'const'
>> mapows.h:143: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'int'
>> mapows.h:144: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'const'
>> mapows.h:156: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'const'
>> mapows.h:158: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'int'
>> mapows.h:162: error: expected ')' before '*' token
>> mapows.h:166: error: expected ')' before '*' token
>> mapows.h:170: error: expected ')' before '*' token
>> mapows.h:174: error: expected ')' before '*' token
>> mapows.h:178: error: expected ')' before '*' token
>> mapows.h:190: error: expected ')' before '*' token
>> mapows.h:193: error: expected ')' before '*' token
>> mapows.h:196: error: expected ')' before '*' token
>> mapows.h:201: error: expected ')' before '*' token
>> mapows.h:206: error: expected ')' before '*' token
>> mapows.h:211: error: expected ')' before '*' token
>> mapows.h:214: error: expected ')' before '*' token
>> mapows.h:219: error: expected ')' before '*' token
>> mapows.h:222: error: expected ')' before '*' token
>> mapows.h:224: error: expected declaration specifiers or '...' before 
>> 'mapObj'
>> mapows.h:225: error: expected ')' before '*' token
>> mapows.h:229: error: expected ')' before '*' token
>> mapows.h:230: error: expected ')' before '*' token
>> mapows.h:232: error: expected ')' before '*' token
>> mapows.h:321: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'int'
>> mapows.h:322: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'gmlItemListObj'
>> mapows.h:323: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'void'
>> mapows.h:324: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'gmlConstantListObj'
>> mapows.h:325: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'void'
>> mapows.h:326: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'gmlGeometryListObj'
>> mapows.h:327: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'void'
>> mapows.h:328: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'gmlGroupListObj'
>> mapows.h:329: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'void'
>> mapows.h:330: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'gmlNamespaceListObj'
>> mapows.h:331: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'void'
>> mapows.h:335: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'int'
>> mapows.h:346: error: expected ')' before '*' token
>> mapows.h:347: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'int'
>> mapows.h:358: error: expected declaration specifiers or '...' before 
>> 'mapObj'
>> mapows.h:358: error: expected declaration specifiers or '...' before 
>> 'layerObj'
>> mapows.h:361: warning: 'enum MS_CONNECTION_TYPE' declared inside parameter 
>> list
>> mapows.h:361: warning: its scope is only this definition or
>> declaration, which is probably not what you want
>> mapows.h:363: error: expected declaration specifiers or '...' before 
>> 'mapObj'
>> mapows.h:363: error: expected declaration specifiers or '...' before 
>> 'layerObj'
>> mapows.h:364: error: expected declaration specifiers or '...' before 
>> 'imageObj'
>> mapows.h:365: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'char'
>> mapows.h:380: error: expected ')' before '*' token
>> mapows.h:381: error: expected ')' before '*' token
>> mapows.h:384: error: expected ')' before '*' token
>> mapows.h:385: error: expected ')' before '*' token
>> mapows.h:401: error: expected declaration specifiers or '...' before 
>> 'mapObj'
>> mapows.h:401: error: expected declaration specifiers or '...' before 
>> 'layerObj'
>> mapows.h:403: error: expected ')' before '*' token
>> mapows.h:404: error: expected ')' before '*' token
>> mapows.h:406: error: expected ')' before '*' token
>> mapows.h:407: error: expected ')' before '*' token
>> mapows.h:408: error: expected ')' before '*' token
>> mapows.h:409: error: expected ')' before '*' token
>> mapows.h:410: error: expected ')' before '*' token
>> mapows.h:411: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'char'
>> mapows.h:417: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'int'
>> mapows.h:418: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'int'
>> mapows.h:419: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'int'
>> mapows.h:420: error: expected '=', ',', ';', 'asm' or '__attribute__'
>> before 'int'
>> mapows.h:427: error: expected ')' before '*' token
>> mapows.h:435: error: expected ')' before '*' token
>> mapwfs11.c:35: error: expected declaration specifiers or '...' before
>> string constant
>> mapwfs11.c:35: warning: return type defaults to 'int'
>> mapwfs11.c: In function 'MS_CVSID':
>> mapwfs11.c:35: error: expected '{' at end of input
>> make: *** [mapwfs11.o] Error 1
>>
>>
>>
>> On Wed, Mar 19, 2008 at 10:34 PM, Steve Lime <Steve.Lime at dnr.state.mn.us> 
>> wrote:
>>> Hi all: I've been beating my head against a configuration problem with Perl 
>> MapScript today that stems from changes
>>>  made for RFC 24. I have multiple version of mapscript installed and it's 
>> fairly straight forward with Perl to do so, change
>>>  1 line in mapscript.i and one in Makefile.PL. Until now that is. In 
>> plmodule.i there are references to mapscriptc and mapscript
>>>  that must also be changed. I can do that and will also update the Perl 
>> README to reflect that additional step. Before I do
>>>  so I was wondering if there were a more portable way to write plmodule.i so 
>> that it could automatically pick up on name
>>>  change for the whole module. I don't how big a problem this is for other 
>> languages. Thoughts?
>>>  Steve
>>>
>>>  _______________________________________________
>>>  mapserver-dev mailing list
>>>  mapserver-dev at lists.osgeo.org 
>>>  http://lists.osgeo.org/mailman/listinfo/mapserver-dev 
>>>
> _______________________________________________
> mapserver-dev mailing list
> mapserver-dev at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-dev
> 
> 


-- 
----------------------------------------------------------------
Assefa Yewondwossen
Software Analyst

Email: assefa at dmsolutions.ca
http://www.dmsolutions.ca/

Phone: (613) 565-5056 (ext 14)
Fax:   (613) 565-0925
----------------------------------------------------------------



More information about the mapserver-dev mailing list