[Mapserver-users] Re: PHP 4.3.0

Daniel Morissette morissette at dmsolutions.ca
Mon Jan 20 20:05:05 EST 2003


Configure detected 'cc' as the linker, that's why you get this.  

Try adding --enable-internal-ld-detect to your configure parameters,
this uses a new macro to figure the LD comand that has been made the
default in MapServer 3.7.  That should work, but if it doesn't then edit
mapserver/mapscript/php3/Makefile to set the value of LD to one of
  LD =  ld -G
or
  LD =  gcc -shared

Daniel


"pkishor_98 " wrote:
> 
> Hi Daniel,
> 
> Thanks for replying. Now that I know it works, here are the gory
> details -- gcc 2.95 on OS X 10.2.3, PHP 4.3.0 built as CGI "--with-xml
> --with-zlib --with-mysql --with-gd --with-png --with-jpeg --with-xml
> --enable-wddx --enable-dbase --with-regex=system" and working fine.
> Any idea why I am getting the following errors (reproducing only the
> last bit) during make-ing Mapserver --
> 
> -I/Users/pkishor/Projects/mapserver/php-4.3.0/TSRM  -c -o
> mapscript_i.o mapscript_i.c
> /Users/pkishor/Projects/mapserver/mapserver-3.6.4/maptemplate.h:16:
> warning: `inchesPerUnit' defined but not used
> cc: -flat_namespace: linker input file unused since linking not done
> cc: -flat_namespace: linker input file unused since linking not done
> cc   -o php_mapscript.so php_mapscript_util.o php_mapscript.o
> mapscript_i.o  -L/Users/pkishor/Projects/mapserver/mapserver-3.6.4
> -lmap          -ljpeg  -L/usr/local/lib -lpng -lz
> -L/Users/pkishor/Projects/mapserver/mapserver-3.6.4/../gd-1.8.4 -lgd
> -ljpeg  -L/usr/local/lib -lpng -lz -ljpeg   -lm
> /usr/bin/ld: Undefined symbols:
> _main
> __convert_to_string
> __efree
> __emalloc
> __estrdup
> __object_init_ex
> __zend_list_find
> __zval_copy_ctor
> _add_property_resource_ex
> _add_property_zval_ex
> _convert_to_double
> _convert_to_long
> _zend_error
> _zend_hash_find
> _zend_hash_get_current_data_ex
> _zend_hash_get_current_key_ex
> _zend_hash_internal_pointer_reset_ex
> _zend_hash_move_forward_ex
> __array_init
> __estrndup
> __object_init
> __zend_list_addref
> __zend_list_delete
> _add_assoc_string_ex
> _add_next_index_long
> _add_next_index_string
> _add_property_double_ex
> _add_property_long_ex
> _add_property_string_ex
> _php_header
> _php_printf
> _php_write
> _sapi_module
> _zend_get_parameters
> _zend_hash_index_find
> _zend_hash_num_elements
> _zend_list_insert
> _zend_register_internal_class
> _zend_register_list_destructors
> _zend_register_list_destructors_ex
> _zend_register_long_constant
> _zend_wrong_param_count
> make[1]: *** [php_mapscript.so] Error 1
> 
> --- Daniel Morissette <morissette at d...> wrote:
> > "pkishor_98 " wrote:
> > >
> > > I am getting a bunch of errors compiling ms3.6.4 (all related to
> > > php_mapscript.so), and before I get any further, I would like to
> find
> > > out if the current PHP/Mapscript module work with PHP 4.3.0. Does
> it?
> > >
> >
> > Yes it does work with PHP 4.3.0.  I haven't used it myself yet, but
> > Assefa has built it with PHP 4.3.0 and I haven't heard of anything
> > special.  This windows DLL for PHP 4.3.0 is on our download site.
> >



More information about the mapserver-users mailing list