problem compiling 5.0.1

Roman Deimann rdeimann at GMX.DE
Fri Jan 25 02:39:01 PST 2008


Hallo list,

I have the same problem. It looks like a problem with flex version 2.5.4a and previous.

Flex 2.5.4 does not have the ‘—nounistd’ parameter.

Thanks,

Roman



-------- Original-Nachricht --------
> Datum: Fri, 25 Jan 2008 08:46:01 +0100
> Von: frequens <frequens at GMAIL.COM>
> An: MAPSERVER-USERS at LISTS.UMN.EDU
> Betreff: [UMN_MAPSERVER-USERS] problem compiling 5.0.1

> Hi list,
> 
> I have problems compiling 5.0.1 on two separate machines. Absolutely
> nothing
> changed on the machines and on both the 5.0.0 version compiled with
> identical configure (and still does) and worked just fine.
> 
> The first one complains:
> 
> "/usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning:
> 'span1' may be used uninitialized in this function
> /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning:
> 'span2'
> may be used uninitialized in this function
> /usr/local/include/agg2/agg_scanline_boolean_algebra.h: In function 'void
> agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&,
> AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 =
> agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline =
> agg::scanline_p8,
> AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8,
> agg::scanline_p8>, AddSpanFunctor2 =
> agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>,
> CombineSpansFunctor = agg::sbool_xor_spans_aa<agg::scanline_p8,
> agg::scanline_p8, agg::scanline_p8, agg::sbool_xor_formula_abs_diff,
> 8u>]':
> /usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning:
> 'span1'
> may be used uninitialized in this function
> /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning:
> 'span2'
> may be used uninitialized in this function
> /usr/local/include/agg2/agg_scanline_boolean_algebra.h: In function 'void
> agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&,
> AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 =
> agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline =
> agg::scanline_p8,
> AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8,
> agg::scanline_p8>, AddSpanFunctor2 =
> agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>,
> CombineSpansFunctor = agg::sbool_xor_spans_aa<agg::scanline_p8,
> agg::scanline_p8, agg::scanline_p8, agg::sbool_xor_formula_saddle<8u>,
> 8u>]':
> /usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning:
> 'span1'
> may be used uninitialized in this function
> /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning:
> 'span2'
> may be used uninitialized in this function
> /usr/local/include/agg2/agg_scanline_boolean_algebra.h: In function 'void
> agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&,
> AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 =
> agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline =
> agg::scanline_p8,
> AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8,
> agg::scanline_p8>, AddSpanFunctor2 =
> agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>,
> CombineSpansFunctor = agg::sbool_xor_spans_aa<agg::scanline_p8,
> agg::scanline_p8, agg::scanline_p8, agg::sbool_xor_formula_linear<8u>,
> 8u>]':
> /usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning:
> 'span1'
> may be used uninitialized in this function
> /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning:
> 'span2'
> may be used uninitialized in this function
> /usr/local/include/agg2/agg_scanline_boolean_algebra.h: In function 'void
> agg::sbool_unite_scanlines(const Scanline1&, const Scanline2&, Scanline&,
> AddSpanFunctor1, AddSpanFunctor2, CombineSpansFunctor) [with Scanline1 =
> agg::scanline_p8, Scanline2 = agg::scanline_p8, Scanline =
> agg::scanline_p8,
> AddSpanFunctor1 = agg::sbool_add_span_aa<agg::scanline_p8,
> agg::scanline_p8>, AddSpanFunctor2 =
> agg::sbool_add_span_aa<agg::scanline_p8, agg::scanline_p8>,
> CombineSpansFunctor = agg::sbool_unite_spans_aa<agg::scanline_p8,
> agg::scanline_p8, agg::scanline_p8, 8u>]':
> /usr/local/include/agg2/agg_scanline_boolean_algebra.h:862: warning:
> 'span1'
> may be used uninitialized in this function
> /usr/local/include/agg2/agg_scanline_boolean_algebra.h:863: warning:
> 'span2'
> may be used uninitialized in this function
> /usr/local/include/agg2/agg_path_storage.h: In function 'void
> drawPolylineMarkers(imageObj*, shapeObj*, symbolSetObj*, styleObj*,
> double)':
> /usr/local/include/agg2/agg_path_storage.h:732: warning: 'x' may be used
> uninitialized in this function
> /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used
> uninitialized in this function
> /usr/local/include/agg2/agg_path_storage.h:732: warning: 'x' may be used
> uninitialized in this function
> /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used
> uninitialized in this function
> /usr/local/include/agg2/agg_path_storage.h: In function 'void
> msDrawMarkerSymbolAGG(symbolSetObj*, imageObj*, pointObj*, styleObj*,
> double)':
> /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used
> uninitialized in this function
> /usr/local/include/agg2/agg_path_storage.h:732: warning: 'x' may be used
> uninitialized in this function
> /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used
> uninitialized in this function
> /usr/local/include/agg2/agg_path_storage.h:732: warning: 'x' may be used
> uninitialized in this function
> /usr/local/include/agg2/agg_path_storage.h:732: warning: 'y' may be used
> uninitialized in this function!
> 
> and then dies with:
> 
> "./libmapserver.a(mapfile.o): In function `getSymbol':
> mapfile.c:(.text+0x2dc): undefined reference to `msyylineno'
> ./libmapserver.a(mapfile.o): In function `getString':
> mapfile.c:(.text+0x3bd): undefined reference to `msyylineno'
> ./libmapserver.a(mapfile.o): In function `getDouble':
> mapfile.c:(.text+0x42e): undefined reference to `msyylineno'
> ./libmapserver.a(mapfile.o): In function `getInteger':
> mapfile.c:(.text+0x4a3): undefined reference to `msyylineno'
> ./libmapserver.a(mapfile.o): In function `getCharacter':
> mapfile.c:(.text+0x516): undefined reference to `msyylineno'
> ./libmapserver.a(mapfile.o):mapfile.c:(.text+0x700): more undefined
> references to `msyylineno' follow
> collect2: ld returned 1 exit status
> make: *** [shp2img] Error 1".
> 
> 
> The second machine does not complain at all and simply dies:
> 
> "flex --nounistd -Pmsyy -i -omaplexer.c maplexer.l
> flex: unknown flag '-'.  For usage, try
>         flex --help
> make: *** [maplexer.c] Error 1"
> 
> 
> Any help would be much appreciated.
> 
> Regards,
> 
> frequens



More information about the MapServer-users mailing list