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

pkishor_98 pkishor at geoanalytics.com
Sun Aug 24 21:11:36 PDT 2003


--- In mapserver-users at yahoogroups.com, Sean Gillies <sgillies at f...> wrote:
> 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 --
> >
> > ...
..
> > 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
> 


Thanks Sean. That did the trick. For those facing the same error, edit your Makefile by 
finding the line that says 

THREAD=-DUSE_THREAD

and changing it to

THREAD=-DUSE_THREAD -Dunix

Puneet.




More information about the MapServer-users mailing list