[mapserver-users] Building MapScript 5.4: linker errors

Gregor at HostGIS gregor at hostgis.com
Thu Feb 3 16:03:50 EST 2011


On 2/3/2011 12:59 PM, Daniel Morissette wrote:
> are you sure there you didn't trim any warning/errors in-between
 > the two that could provide a hint?

Positive.
Following, instead of my signature, is the whole output from
"cd mapscript/php3 ; make"

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/ccd1i9xn.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/ccd1i9xn.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/ccd1i9xn.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'
/tmp/ccd1i9xn.o: In function `_phpms_fetch_property_string':
php_mapscript_util.c:(.text+0x1f8): undefined reference to `zend_error'
php_mapscript_util.c:(.text+0x247): undefined reference to `zend_hash_find'
php_mapscript_util.c:(.text+0x25e): undefined reference to 
`_convert_to_string'
php_mapscript_util.c:(.text+0x28b): undefined reference to `zend_error'
/tmp/ccd1i9xn.o: In function `_phpms_set_property_null':
php_mapscript_util.c:(.text+0x2f6): undefined reference to `zend_hash_find'
php_mapscript_util.c:(.text+0x320): undefined reference to `_emalloc'
php_mapscript_util.c:(.text+0x398): undefined reference to `_zval_dtor_func'
php_mapscript_util.c:(.text+0x3a4): undefined reference to 
`_zval_copy_ctor_func'
php_mapscript_util.c:(.text+0x3b6): undefined reference to `zend_error'
php_mapscript_util.c:(.text+0x3d6): undefined reference to `zend_error'
/tmp/ccd1i9xn.o: In function `_phpms_fetch_property_double':
php_mapscript_util.c:(.text+0x418): undefined reference to `zend_error'
php_mapscript_util.c:(.text+0x46d): undefined reference to `zend_hash_find'
php_mapscript_util.c:(.text+0x47e): undefined reference to 
`convert_to_double'
php_mapscript_util.c:(.text+0x4a9): undefined reference to `zend_error'
/tmp/ccd1i9xn.o: In function `_phpms_fetch_property_long':
php_mapscript_util.c:(.text+0x4f8): undefined reference to `zend_error'
php_mapscript_util.c:(.text+0x546): undefined reference to `zend_hash_find'
php_mapscript_util.c:(.text+0x55d): undefined reference to `convert_to_long'
php_mapscript_util.c:(.text+0x57e): undefined reference to `zend_error'
php_mapscript_util.c:(.text+0x5a2): undefined reference to `zend_error'
/tmp/ccd1i9xn.o: In function `_phpms_fetch_property_handle2':
php_mapscript_util.c:(.text+0x612): undefined reference to `zend_hash_find'
php_mapscript_util.c:(.text+0x670): undefined reference to `zend_error'
php_mapscript_util.c:(.text+0x685): undefined reference to `zend_error'
php_mapscript_util.c:(.text+0x699): undefined reference to `_zend_list_find'
php_mapscript_util.c:(.text+0x6d8): undefined reference to `zend_error'
/tmp/ccd1i9xn.o: In function `_phpms_fetch_handle2':
php_mapscript_util.c:(.text+0x738): undefined reference to `zend_hash_find'
php_mapscript_util.c:(.text+0x750): undefined reference to `_zend_list_find'
php_mapscript_util.c:(.text+0x775): undefined reference to `zend_error'
php_mapscript_util.c:(.text+0x79f): undefined reference to `zend_error'
php_mapscript_util.c:(.text+0x7b6): undefined reference to `zend_error'
/tmp/ccd1i9xn.o: In function `_phpms_report_mapserver_error':
php_mapscript_util.c:(.text+0x7d9): undefined reference to `msGetErrorObj'
php_mapscript_util.c:(.text+0x7fb): undefined reference to `zend_error'
/tmp/ccd1i9xn.o: In function `_phpms_set_property_string':
php_mapscript_util.c:(.text+0x87e): undefined reference to `zend_hash_find'
php_mapscript_util.c:(.text+0x8a9): undefined reference to `_emalloc'
php_mapscript_util.c:(.text+0x918): undefined reference to `_estrndup'
php_mapscript_util.c:(.text+0x951): undefined reference to `_zval_dtor_func'
php_mapscript_util.c:(.text+0x961): undefined reference to 
`_zval_copy_ctor_func'
php_mapscript_util.c:(.text+0x976): undefined reference to `zend_error'
php_mapscript_util.c:(.text+0x996): undefined reference to `zend_error'
/tmp/ccd1i9xn.o: In function `_php_extract_associative_array':
php_mapscript_util.c:(.text+0x9c8): undefined reference to 
`zend_hash_internal_pointer_reset_ex'
php_mapscript_util.c:(.text+0x9e8): undefined reference to 
`zend_hash_move_forward_ex'
php_mapscript_util.c:(.text+0x9f5): undefined reference to 
`zend_hash_get_current_data_ex'
php_mapscript_util.c:(.text+0xa1d): undefined reference to `_emalloc'
php_mapscript_util.c:(.text+0xa8b): undefined reference to `_emalloc'
php_mapscript_util.c:(.text+0xae4): undefined reference to 
`_convert_to_string'
php_mapscript_util.c:(.text+0xb01): undefined reference to 
`zend_hash_get_current_key_ex'
php_mapscript_util.c:(.text+0xb41): undefined reference to 
`_zval_copy_ctor_func'
php_mapscript_util.c:(.text+0xb6b): undefined reference to 
`_zval_copy_ctor_func'
/tmp/ccd1i9xn.o: In function `_phpms_set_property_double':
php_mapscript_util.c:(.text+0xbe4): undefined reference to `zend_hash_find'
php_mapscript_util.c:(.text+0xc0e): undefined reference to `_emalloc'
php_mapscript_util.c:(.text+0xc91): undefined reference to `_zval_dtor_func'
php_mapscript_util.c:(.text+0xca1): undefined reference to 
`_zval_copy_ctor_func'
php_mapscript_util.c:(.text+0xcb3): undefined reference to `zend_error'
php_mapscript_util.c:(.text+0xcd3): undefined reference to `zend_error'
/tmp/ccd1i9xn.o: In function `_phpms_set_property_long':
php_mapscript_util.c:(.text+0xd3e): undefined reference to `zend_hash_find'
php_mapscript_util.c:(.text+0xd68): undefined reference to `_emalloc'
php_mapscript_util.c:(.text+0xdf1): undefined reference to `_zval_dtor_func'
php_mapscript_util.c:(.text+0xe01): undefined reference to 
`_zval_copy_ctor_func'
php_mapscript_util.c:(.text+0xe13): undefined reference to `zend_error'
php_mapscript_util.c:(.text+0xe33): undefined reference to `zend_error'
collect2: ld returned 1 exit status
make[1]: *** [php_mapscript_util.o] Error 1
make[1]: Leaving directory `/tmp/mapserver-5.4.2/mapscript/php3'


More information about the mapserver-users mailing list