# Closures - Windows build failure

- Thread: https://externals.io/message/38872
- Original archive: https://news-web.php.net/php.internals/38872
- Started by Matt Wilmas on 2008-07-09T10:25:45+00:00
- Messages: 3
- 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

---

## #38872 — Matt Wilmas — 2008-07-09T10:25:45+00:00

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

Hi all,

Noticed that PHP 6 snapshots aren't working and got these errors when trying
to build:

zend_API.obj : error LNK2019: unresolved external symbol _zend_get_closure
referenced in function _zend_is_callable_ex
zend_execute.obj : error LNK2001: unresolved external symbol
_zend_get_closure
zend_execute_API.obj : error LNK2001: unresolved external symbol
_zend_get_closure
zend_default_classes.obj : error LNK2019: unresolved external symbol
_zend_register_closure_ce referenced in function
_zend_register_default_classes
zend_execute.obj : error LNK2019: unresolved external symbol
_zend_create_closure referenced in function
@ZEND_DECLARE_LAMBDA_FUNCTION_SPEC_CONST_CONST_HANDLER@8
php_reflection.obj : error LNK2001: unresolved external symbol
_zend_create_closure
Release_TS\php6ts.dll : fatal error LNK1120: 3 unresolved externals

I haven't taken a look at what might be missing yet, though I probably can't
figure it out anyway. :-P


Thanks,
Matt

---

## #38873 — Scott MacVicar — 2008-07-09T10:39:32+00:00

URL: https://externals.io/message/38872#38873 · In reply to: #38872

Sorted now, the new file was missing from the build files.

Scott

Matt Wilmas wrote:
> Hi all,
> 
> Noticed that PHP 6 snapshots aren't working and got these errors when trying
> to build:
> 
> zend_API.obj : error LNK2019: unresolved external symbol _zend_get_closure
> referenced in function _zend_is_callable_ex
> zend_execute.obj : error LNK2001: unresolved external symbol
> _zend_get_closure
> zend_execute_API.obj : error LNK2001: unresolved external symbol
> _zend_get_closure
> zend_default_classes.obj : error LNK2019: unresolved external symbol
> _zend_register_closure_ce referenced in function
> _zend_register_default_classes
> zend_execute.obj : error LNK2019: unresolved external symbol
> _zend_create_closure referenced in function
> @ZEND_DECLARE_LAMBDA_FUNCTION_SPEC_CONST_CONST_HANDLER@8
> php_reflection.obj : error LNK2001: unresolved external symbol
> _zend_create_closure
> Release_TS\php6ts.dll : fatal error LNK1120: 3 unresolved externals
> 
> I haven't taken a look at what might be missing yet, though I probably can't
> figure it out anyway. :-P
> 
> 
> Thanks,
> Matt

---

## #38874 — Matt Wilmas — 2008-07-09T10:54:15+00:00

URL: https://externals.io/message/38872#38874 · In reply to: #38873

Hi Scott,

Ah thanks, so simple! :-O  I should've investigated first since I figured it
was probably a Windows-specific file, and not a missing #include, etc.


----- Original Message -----
From: "Scott MacVicar"
Sent: Wednesday, July 09, 2008

> Sorted now, the new file was missing from the build files.
>
> Scott
