Opened 16 years ago

Closed 16 years ago

#2556 closed defect (fixed)

Build failure

Reported by: unicoletti Owned by: assefa
Priority: normal Milestone:
Component: Build Problems Version: svn-trunk (development)
Severity: normal Keywords:
Cc:

Description

revision 7470 does not build successfully with both:

./configure --with-threads --without-pdf --without-tiff --with-gdal --with-proj --with-geos --without-wms

./configure --with-threads --without-pdf --without-tiff --with-gdal --with-proj --with-geos

The error is: unicoletti@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

The attached patch fixes the problem.

Attachments (1)

mapwfs11.c.patch (804 bytes ) - added by unicoletti 16 years ago.
patch

Download all attachments as: .zip

Change History (6)

by unicoletti, 16 years ago

Attachment: mapwfs11.c.patch added

patch

comment:1 by unicoletti, 16 years ago

Oooops, please ignore the CVS_ID in the patch I tried a cut and paste from another file...

comment:2 by assefa, 16 years ago

oops committed changes without seeing this bug. I actually included properly mapserver.h in mapogcfilter.h. Both ways should work. I have tested it with the same config as yours and It build properly. Please give it a try from svn and we can close this bug.

Thanks

comment:3 by unicoletti, 16 years ago

They both work for me, but one could argue that the includes in mapwfs11.c before the #if at line 35 are useless since they will be needed only if the #if evals to true and having them inside the #if branch *could* speed up compilation. On the other hand one then needs to add

#include "mapserver.h"

before the #if to allow for successful resolution of the MS_CVSID macro. Other than that I'm fine with both solutions, with a slight bias towards mine ;-).

comment:4 by assefa, 16 years ago

Owner: changed from mapserverbugs to assefa

agreed. I have changes in mapwfs11.c, so when I commit I will apply the patch.

comment:5 by assefa, 16 years ago

Resolution: fixed
Status: newclosed

fixed in trunk.

Note: See TracTickets for help on using tickets.