Ask a Question related to PHP Development, Design and Development.
-
Thomas Lassak #1
win32 build problem php 4.3.9 - unresolved symbol _executor_globals_id
Hi,
i am trying to build a custom extension for PHP in a win32 environment
(W2K, MSVC 6.0, german, all service packs).
I am trying to set a global variable in the MINIT function.
I basically just cut&pasted the stuff from the API docs.
PHP_MINIT_FUNCTION(myext)
{
zval *new_var1, *new_var2;
// If you have INI entries, uncomment these lines
ZEND_INIT_MODULE_GLOBALS(myext, php_myext_init_globals, NULL);
REGISTER_INI_ENTRIES();
// TSRMLS_FETCH();
MAKE_STD_ZVAL(new_var1);
ZVAL_LONG(new_var1, 10);
ZEND_SET_SYMBOL(&EG(symbol_table), "MYLONG", new_var1);
return SUCCESS;
}
When doing the compile/link, i get the following output from MSVC:
Linker-Vorgang läuft...
Bibliothek Release_TS/php_myext.lib und Objekt
Release_TS/php_myext.exp wird erstellt
php_myext.obj : error LNK2001: Nichtaufgeloestes externes Symbol
_executor_globals_id
php_myext.dll : fatal error LNK1120: 1 unaufgeloeste externe Verweise
Fehler beim Ausführen von link.exe.
php_myext.dll - 2 Fehler, 1 Warnung(en)
I downloaded the PHP 4.39 source tarball and recompiled most
pieces before.
I suspect it has to do with ZTS thing, but i didn't find any
information if this is set on Windows (i assume so) or where
it is configured (and why) ?
Does anyone have bullet-proof instrcutions how to build a custom
extension under win32 ?
Any other pointers to resolve this task are appreciated !
Thanks
Hi,
i am trying to build a custom extension for PHP in a win32 environment
(W2K, MSVC 6.0, german, all service packs).
I am trying to set a global variable in the MINIT function.
I basically just cut&pasted the stuff from the API docs.
PHP_MINIT_FUNCTION(myext)
{
zval *new_var1, *new_var2;
// If you have INI entries, uncomment these lines
ZEND_INIT_MODULE_GLOBALS(myext, php_myext_init_globals, NULL);
REGISTER_INI_ENTRIES();
// TSRMLS_FETCH();
MAKE_STD_ZVAL(new_var1);
ZVAL_LONG(new_var1, 10);
ZEND_SET_SYMBOL(&EG(symbol_table), "MYLONG", new_var1);
return SUCCESS;
}
When doing the compile/link, i get the following output from MSVC:
Linker-Vorgang läuft...
Bibliothek Release_TS/php_myext.lib und Objekt
Release_TS/php_myext.exp wird erstellt
php_myext.obj : error LNK2001: Nichtaufgeloestes externes Symbol
_executor_globals_id
php_myext.dll : fatal error LNK1120: 1 unaufgeloeste externe Verweise
Fehler beim Ausführen von link.exe.
php_myext.dll - 2 Fehler, 1 Warnung(en)
I downloaded the PHP 4.39 source tarball and recompiled most
pieces before.
I suspect it has to do with ZTS thing, but i didn't find any
information if this is set on Windows (i assume so) or where
it is configured (and why) ?
Does anyone have bullet-proof instrcutions how to build a custom
extension under win32 ?
Any other pointers to resolve this task are appreciated !
Thanks
Thomas Lassak Guest
-
Unresolved symbol, 'NameSymbol', required by__Packages.com.myComponent
I have the SimpleSquare.as, I am trying to embed a symbol it is there in a component. I get this error message: Unresolved symbol,... -
Looking for a Win32 module ==> build a top-like utility
Hi Is there a (Win32) module that would help me creating a utility that works like the UNIX tool 'top'? (provides the list of processes and their... -
[PHP-DEV] ext/gd build broken on Win32
> e:\home\php\php5\ext\gd\gd.c(479): error C2065: Which version of freetype2 are you using? Moriyoshi -- PHP Internals - PHP Runtime... -
unresolved symbol U_TRAP_STACK_TRACE ???
Hi all, I'm trying to dynamically load a shared library using dlopen() but I get this error Unresolved symbol: U_TRAP_STACK_TRACE (code) from... -
Unresolved symbol erros, just compiled 2.4.21
On Mon, Jun 23, 2003 at 05:37:58PM +0200, Z_God wrote: I can't say I've read the above guide (and I'm offline now), but here's the quick'n'nasty...



Reply With Quote

