<div class="gmail_extra">I just built it on Ubuntu 10.04 x86, perhaps you should try this build process:</div><div class="gmail_extra"><br></div><div class="gmail_extra">./configure [your options] --enable-python-mapscript</div>
<div class="gmail_extra">make</div><div class="gmail_extra">sudo make install</div><div class="gmail_extra"><br></div><div class="gmail_extra">make/make install will also build and install python mapscript, no need to cd, swig, etc.</div>
<div class="gmail_extra"><br>Umberto<br><br><div class="gmail_quote">On Fri, Apr 27, 2012 at 3:04 PM, Peter Hopfgartner <span dir="ltr">&lt;<a href="mailto:peter.hopfgartner@r3-gis.com" target="_blank">peter.hopfgartner@r3-gis.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">I&#39;m on a CentOS 6.2, x86_64 bit system:<br>
<br>
/configure --with-gd --with-zlib --with-tiff --with-agg --with-experimental-png --with-freetype=/usr/bin/<u></u>freetype-config --with-gdal=/usr/bin/gdal-<u></u>config --with-ogr=/usr/bin/gdal-<u></u>config --with-geos=/usr/bin/geos-<u></u>config --with-cairo=yes --with-proj --with-wfs --with-wcs --with-sos --with-wmsclient --with-wfsclient --with-xpm --with-postgis=/usr/bin/pg_<u></u>config --with-mygis=/usr/bin/mysql_<u></u>config --with-curl-config=/usr/bin/<u></u>curl-config --with-xml2-config=/usr/bin/<u></u>xml2-config --with-php=/usr/bin/php-config --with-fribidi-config=/usr/<u></u>lib64/pkgconfig/fribidi.pc --with-fastcgi=/usr --without-pdf --without-eppl --with-threads --enable-debug --disable-runpath<br>

<br>
cd mapscript/python<br>
swig -python -shadow -modern -o mapscript_wrap.c ../mapscript.i<br>
cd ../..<br>
make<br>
cd mapscript/python<br>
python setup.py build<br>
<br>
The build fails with:<br>
<br>
gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -DUSE_FASTCGI=1 -DUSE_CAIRO=1 -DUSE_FRIBIDI=1 -DUSE_FRIBIDI2=1 -DUSE_WMS_LYR=1 -DUSE_WFS_LYR=1 -DUSE_SOS_SVR=1 -DUSE_LIBXML2=1 -DUSE_CURL=1 -DUSE_CURLOPT_PROXYAUTH=1 -DUSE_WCS_SVR=1 -DUSE_WFS_SVR=1 -DUSE_WMS_SVR=1 -DUSE_POSTGIS=1 -DPOSTGIS_HAS_SERVER_VERSION=1 -DUSE_GDAL=1 -DUSE_OGR=1 -DUSE_GEOS=1 -DUSE_THREAD=1 -DUSE_PROJ=1 -DUSE_GD=1 -DUSE_GD_GIF=1 -DUSE_GD_PNG=1 -DUSE_GD_JPEG=1 -DUSE_GD_WBMP=1 -DUSE_GD_FT=1 -DGD_HAS_FTEX_XSHOW=1 -DGD_HAS_GDIMAGEGIFPTR=1 -DGD_HAS_GETBITMAPFONTS=1 -DGD_HAS_GET_TRUE_COLOR_PIXEL=<u></u>1 -DUSE_ICONV=1 -DUSE_JPEG=1 -DUSE_GIF=1 -DUSE_PNG=1 -DUSE_ZLIB=1 -DUSE_FREETYPE=1 -DHAVE_VSNPRINTF=1 -DNEED_STRLCPY=1 -DNEED_STRLCAT=1 -DNEED_STRRSTR=1 -DDISABLE_CVSID=1 -I../.. -I/usr/include/freetype2 -Irenderers/agg/include -I/usr/include/gdal -I/usr/include -I/usr/include/fastcgi -I/usr/include/libxml2 -I/usr/include/fribidi -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libpng12 -I/usr/include/python2.6 -I/home/rpmbuild/tmp/<u></u>mapserver-6.1.20120426 -c pygdioctx/pygdioctx.c -o build/temp.linux-x86_64-2.6/<u></u>pygdioctx/pygdioctx.o<br>

pygdioctx/pygdioctx.c: In function ‘PyFileIfaceObj_IOCtx_GetBuf’:<br>
pygdioctx/pygdioctx.c:84: warning: passing argument 3 of ‘PyString_AsStringAndSize’ from incompatible pointer type<br>
/usr/include/python2.6/<u></u>stringobject.h:172: note: expected ‘Py_ssize_t *’ but argument is of type ‘int *’<br>
gcc -pthread -shared build/temp.linux-x86_64-2.6/<u></u>mapscript_wrap.o build/temp.linux-x86_64-2.6/<u></u>pygdioctx/pygdioctx.o -L../../ -L/usr/lib64 -L/usr/lib64 -L/usr/lib -L/usr/lib64 -L/home/rpmbuild/tmp/<u></u>mapserver-6.1.20120426 -lpython2.6 -lmapserver -lfreetype -lgd -ljpeg -lpng -lz -lXpm -lX11 -lproj -lgif -lgdal -lpq -lcurl -lgeos_c -lpthread -lc -lfcgi -lxml2 -lm -lfribidi -lstdc++ -lfontconfig -lcairo -lpng12 -lmapserver -o build/lib.linux-x86_64-2.6/_<u></u>mapscript.so<br>

/usr/bin/ld: cannot find -lmapserver<br>
collect2: ld returned 1 exit status<br>
error: command &#39;gcc&#39; failed with exit status 1<br>
<br>
Anyway, there is a file <a href="http://libmapserver.la" target="_blank">libmapserver.la</a> in the source directory.<br>
<br>
What is it, that I&#39;m mising?<br>
<br>
Thanks,<br>
<br>
Peter<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Peter Hopfgartner<br>
web  : <a href="http://www.r3-gis.com" target="_blank">http://www.r3-gis.com</a><br>
<br>
______________________________<u></u>_________________<br>
mapserver-users mailing list<br>
<a href="mailto:mapserver-users@lists.osgeo.org" target="_blank">mapserver-users@lists.osgeo.<u></u>org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/mapserver-users" target="_blank">http://lists.osgeo.org/<u></u>mailman/listinfo/mapserver-<u></u>users</a><br>
</font></span></blockquote></div><br></div>