[mapserver-users] Building MapScript 5.4: linker errors
Daniel Morissette
dmorissette at mapgears.com
Thu Feb 3 12:59:18 PST 2011
No good advice to provide other than start looking at the errors from
the top. The command that you quote is a .c -> .o compilation (gcc -c
...) but the errors look like linker errors... are you sure there you
didn't trim any warning/errors in-between the two that could provide a hint?
On 11-02-03 03:45 PM, Gregor at HostGIS wrote:
> I am unable to compile PHP MapScript 5.4 The build of mapserv and other
> binaries works A-OK, but not PHP MapScript. It bails with a bunch of
> linker errors, as if PHP couldn't be found or couldn't be loaded...
>
> I can compile PHP MapScript on 5.2 and 5.0 and 5.6 just fine, if that's
> a clue. Just not 5.4 And for compatibility with GeoMoose and p.Mapper we
> would prefer to use 5.4
>
> The OS is Slamd64 aka 64-bit Slackware Linux.
>
> MapServer configure line:
>
> ./configure --with-php=/usr/include/php --with-threads \
> --with-geos --with-proj \
> --with-pdf=/usr --with-gd=/usr --with-ogr --with-gdal \
> --without-tiff --with-postgis --with-mygis \
> --with-agg --with-freetype --with-experimental-png \
> --with-wms --with-wmsclient --with-wfs --with-wfsclient \
> --with-wcs --with-sos
>
> The error is rather lengthy, but starts off with this:
>
> gcc -fPIC -O2 -fPIC -Wall -DCOMPILE_DL=1 -DPHP4
> -DNEED_NONBLOCKING_STDERR -DUSE_WMS_LYR -DUSE_WFS_LYR -DUSE_SOS_SVR
> -DUSE_LIBXML2 -DUSE_CURL -DUSE_WCS_SVR -DUSE_WFS_SVR -DUSE_WMS_SVR
> -DUSE_MYGIS -DUSE_POSTGIS -DUSE_GDAL -DUSE_OGR -DUSE_GEOS -DUSE_THREAD
> -DUSE_PROJ -DUSE_EPPL -DUSE_RGBA_PNG -DUSE_AGG -DUSE_PDF -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_ICONV -DUSE_ZLIB
> -I/tmp/mapserver-5.4.2 -I/usr/include/libxml2 -I/usr/include/mysql
> -I/usr/include -I/usr/include -I/usr/include -I/usr/include/agg2
> -I/usr/include/freetype2 -I/usr/include -I/usr/include
> -I/usr/include/php -I/usr/include/php/dl -I/usr/include/php/main
> -I/usr/include/php/Zend -I/usr/include/php/include
> -I/usr/include/php/TSRM -I -c -o php_mapscript_util.o
>
> php_mapscript_util.c
> /usr/lib64/gcc/x86_64-slamd64-linux/4.1.2/../../../../lib64/crt1.o: In
> function `_start':
> (.text+0x20): undefined reference to `main'
> /tmp/cc7Nlz8C.o: In function `_phpms_object_init':
> php_mapscript_util.c:(.text+0x17): undefined reference to `_object_init_ex'
> php_mapscript_util.c:(.text+0x2e): undefined reference to
> `add_property_resource_ex'
> /tmp/cc7Nlz8C.o: In function `_phpms_add_property_object':
> php_mapscript_util.c:(.text+0x89): undefined reference to
> `add_property_zval_ex'
> php_mapscript_util.c:(.text+0xc7): undefined reference to `zend_error'
> /tmp/cc7Nlz8C.o: In function `_phpms_fetch_property_resource':
> php_mapscript_util.c:(.text+0x108): undefined reference to `zend_error'
> php_mapscript_util.c:(.text+0x156): undefined reference to `zend_hash_find'
> php_mapscript_util.c:(.text+0x185): undefined reference to `zend_error'
> php_mapscript_util.c:(.text+0x1aa): undefined reference to `zend_error'
>
>
--
Daniel Morissette
http://www.mapgears.com/
More information about the MapServer-users
mailing list