[Mapserver-users] make: *** [shp2img] Error 1

Sean Gillies sgillies at frii.com
Sun Aug 24 15:47:56 EDT 2003


On Sunday, August 24, 2003, at 08:20  AM, pkishor_98 wrote:

> OS: MacOS X 10.2.6
> gcc: 2.95
> MapServer: 4.0
> gd: 2.0.12
> Freetype: 2.0.14
>
> Configured MapServer with --
>
> ../configure --without-tiff --without-eppl --without-jpeg 
> --with-threads --with-
> php=/Users/pkishor/darwinports/dports/www/php4/work/php-4.3.2 
> --with-gd=/
> opt/local --with-freetype=/opt/local/bin
>
> I get the following --
>
> ...
> pdf.c -o mappdf.o
> gcc -c -O2  -Wall -DIGNORE_MISSING_DATA         -DUSE_GD_PNG 
> -DUSE_GD_JPEG -
> DUSE_GD_WBMP -DUSE_GD_FT        -DUSE_THREAD -I/opt/local/include
> mapjoin.c -o mapjoin.o
> gcc -c -O2  -Wall -DIGNORE_MISSING_DATA         -DUSE_GD_PNG 
> -DUSE_GD_JPEG -
> DUSE_GD_WBMP -DUSE_GD_FT        -DUSE_THREAD -I/opt/local/include
> mapgraticule.c -o mapgraticule.o
> gcc -c -O2  -Wall -DIGNORE_MISSING_DATA         -DUSE_GD_PNG 
> -DUSE_GD_JPEG -
> DUSE_GD_WBMP -DUSE_GD_FT        -DUSE_THREAD -I/opt/local/include
> mapcopy.c -o mapcopy.o
> ar rc libmap.a maptemplate.o mapbits.o maphash.o mapshape.o mapxbase.o
> mapparser.o maplexer.o maptree.o mapsearch.o mapstring.o mapsymbol.o 
> mapfile.o
> maplegend.o maputil.o mapscale.o mapquery.o maplabel.o maperror.o
> mapprimitive.o mapproject.o mapraster.o mapsde.o mapogr.o mappostgis.o
> mapmygis.o maplayer.o mapresample.o mapwms.o mapwmslayer.o
> maporaclespatial.o mapgml.o mapprojhack.o mapthread.o mapdraw.o mapgd.o
> mapoutput.o mapgdal.o mapswf.o mapimagemap.o mapows.o mapwfs.o
> mapwfslayer.o mapcontext.o maphttp.o mapdrawgdal.o mappdf.o mapjoin.o
> mapgraticule.o mapcopy.o
> ranlib libmap.a
> ranlib: file: libmap.a(mapswf.o) has no symbols
> ranlib: file: libmap.a(mapows.o) has no symbols
> ranlib: file: libmap.a(maphttp.o) has no symbols
> ranlib: file: libmap.a(mapdrawgdal.o) has no symbols
> ranlib: file: libmap.a(mappdf.o) has no symbols
> gcc -c -O2  -Wall -DIGNORE_MISSING_DATA         -DUSE_GD_PNG 
> -DUSE_GD_JPEG -
> DUSE_GD_WBMP -DUSE_GD_FT        -DUSE_THREAD -I/opt/local/include
> shp2img.c -o shp2img.o
> gcc -O2  -Wall -DIGNORE_MISSING_DATA         -DUSE_GD_PNG 
> -DUSE_GD_JPEG -
> DUSE_GD_WBMP -DUSE_GD_FT        -DUSE_THREAD -I/opt/local/include
> shp2img.o  -L. -lmap -L/opt/local/lib -lgd -ljpeg -L/opt/local/lib 
> -lfreetype -lz -
> lpng -lz    -ljpeg -L/opt/local/lib -lfreetype -lz -lpng -lz    -ljpeg 
>          -lpthread -
> lm   -o shp2img
> /usr/bin/ld: Undefined symbols:
> _msAcquireLock
> _msReleaseLock
> _msGetThreadId
> make: *** [shp2img] Error 1
>
>
> Found many instances of this error in the archives, but since each 
> reason seemed to
> be different, didn't find a definitive answer.
>
> Any leads would be appreciated. Thanks,
>
> Puneet.
>
>
Hey Puneet,

The threading support in mapthread.c is enabled only if -Dunix is
defined as well as -DUSE_THREAD.  For OS X, you'll need to edit
your mapfile to add this to THREADS.

Now that there is a Win32 pthreads library, I think it is about
time that we think about removing the the #ifdef unix entirely.

cheers,
Sean




--
Sean Gillies
sgillies at frii dot com
http://www.frii.com/~sgillies




More information about the mapserver-users mailing list