[mapserver-users] building mapserver/mapscript on Mac OS/X

Chris Stuber imap at chesapeake.net
Thu May 3 13:01:13 EDT 2001


I've got a client who ask me to try to get mapserver running on a powerpc
running Max OS/X (Darwin) which smells like a BSD unix os.  Mapserver and all of
the supporting packages seem to compile OK, but it seems that swig and mapscript
are giving trouble.  The compiler is based on gcc 2.95.2 1 and it has trouble
with data type defined with 'static' which used in swig and also generated in
the
mapscript_wrap.c output...   I suspect there is a missing -D (define) or
something not right
with the swig build.   Has anyone ever run across a problem like this?   Any
ideas would be
extremely helpful.

Thanks,

Chris Stuber (mapsurfer)
Silicon Mapping Solutions
(410)257-3187 



[localhost:mapserver/mapscript/perl] root# ls
CVS                 README              mapscript.bs        mapscript_wrap.c
Makefile            blib                mapscript.i         mapscript_wrap.doc
Makefile.PL         examples            mapscript.pm        pm_to_blib
[localhost:mapserver/mapscript/perl] root# make
cc -c -I/usr/local/src/mapserver -I/usr/local/src/proj/src
-I/usr/local/src/gd-1.2 -I/usr/local/src/mapserver/gdft
-I/usr/local/src/freetype-1.2/lib -g -pipe -pipe -fno-common
-DHAS_TELLDIR_PROTOTYPE -fno-strict-aliasing -O3     -DVERSION=\"0.10\"
-DXS_VERSION=\"0.10\"  -I/System/Library/Perl/darwin/CORE -DIGNORE_MISSING_DATA
-DUSE_PROJ -DUSE_TTF -DUSE_GD_1_2 mapscript_wrap.c
mapscript_wrap.c: In function `SWIG_GetPtr':
mapscript_wrap.c:292: `sv_undef' undeclared (first use in this function)
mapscript_wrap.c:292: (Each undeclared identifier is reported only once
mapscript_wrap.c:292: for each function it appears in.)
mapscript_wrap.c: At top level:
mapscript_wrap.c:474: redefinition of `_swig_setiv'
mapscript_wrap.c:461: `_swig_setiv' previously defined here
mapscript_wrap.c:487: redefinition of `_swig_setiv'
mapscript_wrap.c:474: `_swig_setiv' previously defined here
...  (stuff deleted, more of the same)
{standard input}:2155:FATAL:Symbol __swig_setiv already defined.
mapscript_wrap.c: In function `_swig_setiv':
mapscript_wrap.c:1029: output pipe has been closed
cpp-precomp: output pipe has been closed
make: *** [mapscript_wrap.o] Error 1



More information about the mapserver-users mailing list