# php 5.4.9 and solr extension

- Thread: https://externals.io/message/64279
- Original archive: https://news-web.php.net/php.internals/64279
- Started by Lokrain on 2012-12-13T16:27:02+00:00
- Messages: 2
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #64279 — Lokrain — 2012-12-13T16:27:02+00:00

URL: https://externals.io/message/64279#64279

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

---

## #64280 — Jan Ehrhardt — 2012-12-14T11:44:06+00:00

URL: https://externals.io/message/64279#64280 · In reply to: #64279

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
