Hello Internals,
Having issues compiling solr extension 1.0.2 using php 5.4.9 source for
Windows.
While compiling I get:
Creating library Release\php_solr.lib and object Release\php_solr.exp
php_solr.obj : error LNK2019: unresolved external symbol _zend_ce_iterator
refer
enced in function _zm_startup_solr
php_solr.obj : error LNK2019: unresolved external symbol
_zend_ce_serializable r
eferenced in function _zm_startup_solr
php_solr.obj : error LNK2019: unresolved external symbol
_zend_ce_arrayaccess re
ferenced in function _zm_startup_solr
php_solr.obj : error LNK2019: unresolved external symbol
_zend_new_interned_stri
ng referenced in function _zm_startup_solr
php_solr_object.obj : error LNK2019: unresolved external symbol
_executor_global
s referenced in function _solr_object_read_property
solr_functions_helpers.obj : error LNK2001: unresolved external symbol
_executor
_globals
php_solr_response.obj : error LNK2019: unresolved external symbol
_basic_globals
referenced in function _zim_SolrResponse_getResponse
php_solr_utils.obj : error LNK2001: unresolved external symbol
_basic_globals
solr_functions_helpers.obj : error LNK2001: unresolved external symbol
_basic_gl
obals
Release\php_solr.dll : fatal error LNK1120: 6 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files (x86)\Microsoft Visual Studio
10.0
\VC\BIN\cl.exe"' : return code '0x2'
Stop.
===
My guess here is that Solr extension uses obsolete symbols.
Any ideas how to resolve this?
Regards,
Dimitar Isusov
Lokrain in php.internals (Thu, 13 Dec 2012 18:27:02 +0200):
My guess here is that Solr extension uses obsolete symbols.
Any ideas how to resolve this?
Try to use ecaron's clone at github:
https://github.com/ecaron/php-pecl-solr
You will have to put this back into config.w32:
ARG_ENABLE('solr', 'Whether to enable Apache Solr support', 'no');
and move this back to directly after the second ARG_ENABLE (from
somewhere further down):
if(PHP_SOLR != 'no')
{
Then it builds fine under PHP 5.4. Maybe you could report here and to
ecaron if it works as well, after enabling the extension.
Jan