win32 dev build broken
| From: | Moriyoshi Koizumi | Date: | Sat, 22 Mar 2003 23:08:47 +0000 |
| Subject: | win32 dev build broken | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-150@lists.php.net to get a copy of this message | ||
<snip>
Compiling resources...
Compiling...
php_cli.c
Linking...
php_cli.obj : error LNK2001: unresolved external symbol _zend_is_auto_global
..\Release_TS_inline\cli\php.exe : fatal error LNK1120: 1 unresolved externals
Error executing link.exe.
</snip>
The attached patch is a trivial fix for the compile failure. Could anyone
who has ZE2 karma apply this one?
Moriyoshi
Index: Zend/zend_compile.h =================================================================== RCS file: /repository/ZendEngine2/zend_compile.h,v retrieving revision 1.225 diff -u -r1.225 zend_compile.h --- Zend/zend_compile.h 19 Mar 2003 21:17:47 -0000 1.225 +++ Zend/zend_compile.h 22 Mar 2003 23:03:38 -0000 @@ -477,8 +477,8 @@ } zend_auto_global; void zend_auto_global_dtor(zend_auto_global *auto_global); -int zend_register_auto_global(char *name, uint name_len, zend_auto_global_callback auto_global_callback TSRMLS_DC); -zend_bool zend_is_auto_global(char *name, uint name_len TSRMLS_DC); +ZEND_API int zend_register_auto_global(char *name, uint name_len, zend_auto_global_callback auto_global_callback TSRMLS_DC); +ZEND_API zend_bool zend_is_auto_global(char *name, uint name_len TSRMLS_DC); int zendlex(znode *zendlval TSRMLS_DC);
Index: Zend/zend_compile.h =================================================================== RCS file: /repository/ZendEngine2/zend_compile.h,v retrieving revision 1.225 diff -u -r1.225 zend_compile.h --- Zend/zend_compile.h 19 Mar 2003 21:17:47 -0000 1.225 +++ Zend/zend_compile.h 22 Mar 2003 23:03:38 -0000 @@ -477,8 +477,8 @@ } zend_auto_global; void zend_auto_global_dtor(zend_auto_global *auto_global); -int zend_register_auto_global(char *name, uint name_len, zend_auto_global_callback auto_global_callback TSRMLS_DC); -zend_bool zend_is_auto_global(char *name, uint name_len TSRMLS_DC); +ZEND_API int zend_register_auto_global(char *name, uint name_len, zend_auto_global_callback auto_global_callback TSRMLS_DC); +ZEND_API zend_bool zend_is_auto_global(char *name, uint name_len TSRMLS_DC); int zendlex(znode *zendlval TSRMLS_DC);