SVN broken was: Re: [UMN_MAPSERVER-DEV] New DEBUG/MS_ERRORFILE mechanism (RFC-28) committed to SVN

Stephen Woodbridge woodbri at SWOODBRIDGE.COM
Sat Jul 7 00:35:15 EDT 2007


Daniel Morissette wrote:
> FYI the new DEBUG/MS_ERRORFILE mechanism (RFC-28) has been committed to 
> SVN. It's really cool to finally get better control on the location of 
> debug output!
> 
> I didn't test on Windows yet (see 
> http://trac.osgeo.org/mapserver/ticket/2124), I just made sure that the 
> Windows build passes using the buildbot, so more testers are welcome on 
> that platform.
> 
> Daniel

Daniel,

On mapserver SVN, I just did:

svn update
make clean
make

[lots of output]


g++ -g -O2 -fPIC -Wall  -DENABLE_STDERR_DEBUG -DIGNORE_MISSING_DATA 
-DHAVE_VSNPRINTF -DNEED_STRLCAT  -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR 
-DUSE_WMS_LYR -DUSE_WFS_SVR        -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_AGG    -DUSE_OGR 
-DUSE_GDAL  -DUSE_ICONV   -DUSE_POSTGIS   -DUSE_ZLIB  -I/usr/include 
-I/u/software/agg-2.5/include  -I/usr/include     -I/usr/include 
-I/usr/include/postgresql            -c -o mapagg.o mapagg.cpp
mapagg.cpp: In constructor `CMapServerLine::CMapServerLine(shapeObj*, int)':
mapagg.cpp:514: warning: `CMapServerLine::m_pShape' will be initialized 
after
mapagg.cpp:513: warning:   `int CMapServerLine::m_lineIndex'
mapagg.cpp:488: warning:   when initialized here
mapagg.cpp:513: warning: `CMapServerLine::m_lineIndex' will be initialized
    after
mapagg.cpp:512: warning:   `int CMapServerLine::m_index'
mapagg.cpp:488: warning:   when initialized here
mapagg.cpp: In constructor `CMapServerPolygon::CMapServerPolygon(shapeObj*,
    int)':
mapagg.cpp:548: warning: `CMapServerPolygon::m_pShape' will be initialized
    after
mapagg.cpp:547: warning:   `int CMapServerPolygon::m_lineIndex'
mapagg.cpp:522: warning:   when initialized here
mapagg.cpp:547: warning: `CMapServerPolygon::m_lineIndex' will be 
initialized
    after
mapagg.cpp:546: warning:   `int CMapServerPolygon::m_index'
mapagg.cpp:522: warning:   when initialized here
mapagg.cpp: In function `void imagePolyline(imageObj*, shapeObj*, colorObj*,
    int, int, int, int, int*)':
mapagg.cpp:560: warning: unused variable `gdImage*img'
mapagg.cpp: In function `void msDrawMarkerSymbolAGGEllipse(symbolObj*, 
double,
    double, double, char, styleObj*, int, int, int, int, gdImage*, 
pointObj*)':
mapagg.cpp:874: warning: converting to `int' from `double'
mapagg.cpp:875: warning: converting to `int' from `double'
mapagg.cpp:879: warning: converting to `int' from `double'
mapagg.cpp: In function `void msDrawMarkerSymbolAGGVector(symbolObj*, 
double,
    double, double, char, styleObj*, int, int, int, int, gdImage*, 
pointObj*,
    imageObj*)':
mapagg.cpp:897: warning: `int width' might be used uninitialized in this
    function
mapagg.cpp: In function `void msDrawMarkerSymbolAGG(symbolSetObj*, 
imageObj*,
    pointObj*, styleObj*, double)':
mapagg.cpp:1028: warning: `int offset_x' might be used uninitialized in this
    function
mapagg.cpp:1028: warning: `int offset_y' might be used uninitialized in this
    function
mapagg.cpp:1030: warning: `double d' might be used uninitialized in this
    function
mapagg.cpp: In function `void msDrawShadeSymbolAGG(symbolSetObj*, imageObj*,
    shapeObj*, styleObj*, double)':
mapagg.cpp:1188: warning: unused variable `char bRotated'
mapagg.cpp:1190: warning: unused variable `gdImage*tile'
mapagg.cpp:1192: warning: unused variable `int tile_bc'
mapagg.cpp:1192: warning: unused variable `int tile_fc'
mapagg.cpp:1199: warning: unused variable `char*font'
/u/software/agg-2.5/include/agg_rasterizer_cells_aa.h: At top level:
mapagg.cpp:107: warning: `unsigned char PNGsig[8]' defined but not used
mapagg.cpp:108: warning: `unsigned char JPEGsig[3]' defined but not used
mapagg.cpp:217: warning: `gdImage* createFuzzyBrush(int, int, int, int)'
    defined but not used
mapagg.cpp:307: warning: `gdImage* createHatch(gdImage*, int, int, rectObj*,
    styleObj*, double)' defined but not used
mapagg.cpp:402: warning: `void imageOffsetPolyline(gdImage*, shapeObj*, int,
    int, int)' defined but not used
mapagg.cpp:665: warning: `void imageFilledPolygon2(imageObj*, shapeObj*,
    colorObj*, int, int)' defined but not used
mapagg.cpp:1290: warning: `double nmsTransformShapeAGG' defined but not used


[lots of output]

g++ -g -O2 -fPIC -Wall  -DENABLE_STDERR_DEBUG -DIGNORE_MISSING_DATA 
-DHAVE_VSNPRINTF -DNEED_STRLCAT  -DUSE_EPPL -DUSE_PROJ -DUSE_WMS_SVR 
-DUSE_WMS_LYR -DUSE_WFS_SVR        -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_AGG    -DUSE_OGR 
-DUSE_GDAL  -DUSE_ICONV   -DUSE_POSTGIS   -DUSE_ZLIB  -I/usr/include 
-I/u/software/agg-2.5/include  -I/usr/include     -I/usr/include 
-I/usr/include/postgresql          shp2img.o  -L. -lmapserver -lgd 
-L/usr/lib64 -lgd -ljpeg -lfreetype -lpng -lz 
-L/u/software/agg-2.5/src -lagg  -ljpeg -lfreetype -lpng -lz 
-L/usr/lib64 -lproj -ljpeg  -L/usr/lib -lgdal -L/usr/lib -lgeos -lodbc 
-L/usr/lib -lxerces-c -lpthread -ljasper -lmfhdf -ldf -lgif -ljpeg 
-ltiff -lpng -lnetcdf -lcfitsio -L/usr/lib -lpq -lz -lpthread -lm -lrt 
-ldl -lsqlite3  -L/usr/lib -lpq  -L/usr/lib -lcurl -lidn -lssl -lcrypto 
-ldl -lssl -lcrypto -ldl -lz    -lc  -lz  -lm -lstdc++  -o shp2img
shp2img.o(.text+0x7e): In function `main':
/u/software/mapserver-SVN/mapserver/shp2img.c:70: undefined reference to 
`msDebugInitFromEnv'
shp2img.o(.text+0x4d8):/u/software/mapserver-SVN/mapserver/shp2img.c:188: 
undefined reference to `msGetErrorFile'
shp2img.o(.text+0x4ed):/u/software/mapserver-SVN/mapserver/shp2img.c:189: 
undefined reference to `msSetErrorFile'
shp2img.o(.text+0x51f):/u/software/mapserver-SVN/mapserver/shp2img.c:166: 
undefined reference to `msGetErrorFile'
shp2img.o(.text+0x534):/u/software/mapserver-SVN/mapserver/shp2img.c:167: 
undefined reference to `msSetErrorFile'
shp2img.o(.text+0x591):/u/software/mapserver-SVN/mapserver/shp2img.c:154: 
undefined reference to `msSetGlobalDebugLevel'
shp2img.o(.text+0x598):/u/software/mapserver-SVN/mapserver/shp2img.c:157: 
undefined reference to `msGetErrorFile'
shp2img.o(.text+0x5ad):/u/software/mapserver-SVN/mapserver/shp2img.c:158: 
undefined reference to `msSetErrorFile'
./libmapserver.a(mapfile.o)(.text+0x4e48): In function `initLayer':
/u/software/mapserver-SVN/mapserver/mapfile.c:2453: undefined reference 
to `msGetGlobalDebugLevel'
./libmapserver.a(mapfile.o)(.text+0x9d69): In function `initMap':
/u/software/mapserver-SVN/mapserver/mapfile.c:4364: undefined reference 
to `msGetGlobalDebugLevel'
./libmapserver.a(mapfile.o)(.text+0xb01b): In function 
`msLoadMapFromString':
/u/software/mapserver-SVN/mapserver/mapfile.c:4835: undefined reference 
to `msGetGlobalDebugLevel'
./libmapserver.a(mapfile.o)(.text+0xb175):/u/software/mapserver-SVN/mapserver/mapfile.c:4892: 
undefined reference to `msDebug'
./libmapserver.a(mapfile.o)(.text+0xb208): In function `msLoadMap':
/u/software/mapserver-SVN/mapserver/mapfile.c:4912: undefined reference 
to `msGetGlobalDebugLevel'
./libmapserver.a(mapfile.o)(.text+0xb3a9):/u/software/mapserver-SVN/mapserver/mapfile.c:4987: 
undefined reference to `msDebug'
./libmapserver.a(maputil.o)(.text+0x1c27): In function `msSetup':
/u/software/mapserver-SVN/mapserver/maputil.c:1381: undefined reference 
to `msDebugInitFromEnv'
./libmapserver.a(maputil.o)(.text+0x1c98): In function `msCleanup':
/u/software/mapserver-SVN/mapserver/maputil.c:1431: undefined reference 
to `msDebugCleanup'
./libmapserver.a(maperror.o)(.text+0x32c): In function `msSetError':
/u/software/mapserver-SVN/mapserver/maperror.c:338: undefined reference 
to `msDebug'
./libmapserver.a(mapprimitive.o)(.text+0x3c): In function `msPrintShape':
/u/software/mapserver-SVN/mapserver/mapprimitive.c:51: undefined 
reference to `msDebug'
./libmapserver.a(mapprimitive.o)(.text+0x69):/u/software/mapserver-SVN/mapserver/mapprimitive.c:53: 
undefined reference to `msDebug'
./libmapserver.a(mapprimitive.o)(.text+0xa8):/u/software/mapserver-SVN/mapserver/mapprimitive.c:55: 
undefined reference to `msDebug'
./libmapserver.a(mapproject.o)(.text+0x734): In function `msProjectRect':
/u/software/mapserver-SVN/mapserver/mapproject.c:298: undefined 
reference to `msDebug'
./libmapserver.a(mapogr.o)(.text+0xab0):/u/software/mapserver-SVN/mapserver/mapogr.cpp:797: 
more undefined references to `msDebug' follow
./libmapserver.a(mapobject.o)(.text+0x305): In function `msSetConfigOption':
/u/software/mapserver-SVN/mapserver/mapobject.c:166: undefined reference 
to `msSetErrorFile'
./libmapserver.a(mapobject.o)(.text+0x448): In function 
`msApplyMapConfigOptions':
/u/software/mapserver-SVN/mapserver/mapobject.c:217: undefined reference 
to `msSetErrorFile'
./libmapserver.a(mappool.o)(.text+0x11f): In function `msConnPoolRegister':
/u/software/mapserver-SVN/mapserver/mappool.c:256: undefined reference 
to `msDebug'
./libmapserver.a(mappool.o)(.text+0x1bc):/u/software/mapserver-SVN/mapserver/mappool.c:195: 
undefined reference to `msDebug'
./libmapserver.a(mappool.o)(.text+0x1fb):/u/software/mapserver-SVN/mapserver/mappool.c:186: 
undefined reference to `msDebug'
./libmapserver.a(mappool.o)(.text+0x348): In function `msConnPoolClose':
/u/software/mapserver-SVN/mapserver/mappool.c:297: undefined reference 
to `msDebug'
./libmapserver.a(mappool.o)(.text+0x35f):/u/software/mapserver-SVN/mapserver/mappool.c:285: 
undefined reference to `msDebug'
./libmapserver.a(mappool.o)(.text+0x442):/u/software/mapserver-SVN/mapserver/mappool.c:357: 
more undefined references to `msDebug' follow
collect2: ld returned 1 exit status
make: *** [shp2img] Error 1

This is how it was configured and this did build wednesday.

./configure \
   --enable-ignore-missing-data \
   --enable-debug \
   --with-httpd=/usr/sbin/apache \
   --with-proj=/usr \
   --with-agg=/u/software/agg-2.5 \
   --with-gd \
   --with-gdal \
   --with-freetype \
   --with-postgis \
   --without-tiff \
   --with-wmsclient \
   --with-ogr \
   --with-wfs



More information about the mapserver-dev mailing list