<HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">G'day all,<DIV><BR class="khtml-block-placeholder"></DIV><DIV>I have successfully built MapServer 4.10 on FreeBSD 6.2 (my first attempt at UNIX building, so very excited although it didn't like the flash support so I dropped it)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I realised however that I hadn't built the php-mapscript module, which is my main interface for development, so back I went, and added it to my config file (using Howard Butler's suggestion) to be :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>./configure     --with-freetype=/usr/local/bin \</DIV><DIV>                --with-png=/usr/local/lib \</DIV><DIV>                --with-jpeg=/usr/local \</DIV><DIV>                --with-libiconv=/usr/local \</DIV><DIV>                --with-geos=/usr/local/bin/geos-config \</DIV><DIV>                --with-ogr=/usr/local/bin/gdal-config \</DIV><DIV>                --with-gdal=/usr/local/bin/gdal-config \</DIV><DIV>                --with-httpd=/usr/local/sbin/httpd \</DIV><DIV>                --with-wfsclient \</DIV><DIV>                --with-wmsclient \</DIV><DIV>                --enable-debug \</DIV><DIV>                --with-curl-config=/usr/local/bin/curl-config \</DIV><DIV>                --with-proj=/usr/local \</DIV><DIV>                --with-pdf=/usr/local \</DIV><DIV>                --with-tiff=/usr/local \</DIV><DIV>                --with-threads \</DIV><DIV>                --with-fastcgi \</DIV><DIV>                --with-wcs \</DIV><DIV>                --with-postgis=/usr/local/database/bin/pg_config \</DIV><DIV>                --with-php=/usr/local/include/php/ \</DIV><DIV>                --with-xml2-config=/usr/bin/xml2-config  # new in 4.10</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So configure worked, a quick make clean and then off we go again, until this... (I'm afraid I don't really understand what most of it means)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>g++ -g -O2 -fPIC -Wall  -DENABLE_STDERR_DEBUG -DNEED_NONBLOCKING_STDERR    -DHAVE_VSNPRINTF -DUSE_EPPL -DUSE_PROJ  -DUSE_WMS_SVR -DUSE_WMS_LYR  -DUSE_WFS_LYR -DUSE_WCS_SVR   -DUSE_TIFF  -DUSE_GD_GIF -DUSE_GD_PNG -DUSE_GD_JPEG -DUSE_GD_WBMP -DUSE_GD_FT -DGD_HAS_FTEX_XSHOW -DGD_HAS_GDIMAGEGIFPTR -DGD_HAS_GETBITMAPFONTS -DUSE_PDF    -DUSE_OGR -DUSE_GDAL -DUSE_GEOS -DUSE_ICONV     -DUSE_POSTGIS  -DUSE_THREAD -DUSE_ZLIB  -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include -I/usr/local/include    -I/usr/local/include -I   -I/usr/local/include   -I/usr/local/include -I/usr/local/include     shp2img.o  -L. -lmap -lgd -L/usr/local/lib -lgd -L/usr/local/lib -ljpeg -L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -lfreetype -lz -L/usr/local/lib -lpng -lz -L/usr/local/lib -lpdf -L/usr/local/lib64 -ltiff -L/usr/local/lib -ljpeg -L/usr/local/lib -Wl,--rpath -Wl,/usr/local/lib -lfreetype -lz -L/usr/local/lib -lpng -lz -L/usr/local/lib -lproj  -L/usr/local/lib -ljpeg  -L/usr/local/lib -lgdal -L/usr/local/lib -lgeos -L/usr/local -L/usr/local/lib -ljasper -lungif -lgeotiff -L/usr/local/lib -ltiff -L/usr/local -L/usr/local/lib -lpng -L/usr/local/lib -lpq -lz -L/usr -L/usr/lib -lm  -L -lpq   -L/usr/local/lib -lcurl -rpath=/usr/lib:/usr/local/lib -lssl -lcrypto -lz  -L/usr/local/lib -lgeos_c  -lpthread -L/usr/local/lib -liconv -lfcgi  -lz  -lm -lstdc++  -o shp2img</DIV><DIV>/usr/bin/ld: cannot find -lfcgi</DIV><DIV>*** Error code 1</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Stop in /usr/local/mapserver-4.10.1.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>So now it doesn't work. I don't understand the significance of -lfcgi, or why it has become a problem now with the  inclusion of the --with-php flag.</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>My system includes :</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Apache/2.2.4 (FreeBSD) Server built:   Apr 10 2007 22:15:11</DIV><DIV>PHP 5.2.1 with Suhosin-Patch 0.9.6.2 (cli) (built: Apr 11 2007 09:33:50) (DEBUG) Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies</DIV><DIV>GD 2.0.34</DIV><DIV>GDAL 1.3.1</DIV><DIV>PROJ 4.5.0</DIV><DIV>JPEG 6b</DIV><DIV>PNG 1.2.14</DIV><DIV>GEOS 2.2.3</DIV><DIV>PostGIS 1.2.1</DIV><DIV>freebsd# /usr/local/www/apache22/cgi-bin/mapserv -v</DIV><DIV>MapServer version 4.10.1 OUTPUT=GIF OUTPUT=PNG OUTPUT=JPEG OUTPUT=WBMP OUTPUT=PDF OUTPUT=SVG SUPPORTS=PROJ SUPPORTS=FREETYPE SUPPORTS=WMS_SERVER SUPPORTS=WMS_CLIENT SUPPORTS=WFS_CLIENT SUPPORTS=GEOS INPUT=TIFF INPUT=EPPL7 INPUT=OGR INPUT=GDAL INPUT=SHAPEFILE DEBUG=MSDEBUG</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>and my build directory is /usr/local/mapserver-4.10.1</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>I guess my first question has to be will php_mapscript work with php 5?</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>and then ... what is -lfcgi? (and how can I get it?)</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>cheers</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Ben</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR><DIV> <SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><SPAN class="Apple-style-span" style="border-collapse: separate; border-spacing: 0px 0px; color: rgb(0, 0, 0); font-family: Helvetica; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; text-align: auto; -khtml-text-decorations-in-effect: none; text-indent: 0px; -apple-text-size-adjust: auto; text-transform: none; orphans: 2; white-space: normal; widows: 2; word-spacing: 0px; "><DIV>-- </DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>Ben Madin</DIV><DIV>REMOTE INFORMATION</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV>t : +61 8 9192 5455</DIV><DIV>f : +61<SPAN class="Apple-converted-space"> </SPAN>8 9192 5535</DIV><DIV>m : 0448 887 220</DIV><DIV>Broome   WA   6725</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><A href="mailto:ben@remoteinformation.com.au">ben@remoteinformation.com.au</A></DIV><BR class="Apple-interchange-newline"></SPAN><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><SPAN class="Apple-tab-span" style="white-space:pre"><SPAN class="Apple-style-span" style="white-space: pre; ">                                        </SPAN></SPAN>Out here, it pays to know...</DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><DIV><BR class="khtml-block-placeholder"></DIV><BR class="Apple-interchange-newline"></SPAN> </DIV><BR></DIV></BODY></HTML>