Re: [INTERNALS-WIN] Re: Unresolved symbol _zend_ini_scanner_get_lineno
| From: | Elizabeth M Smith | Date: | Thu, 26 Feb 2009 14:07:57 +0000 |
| Subject: | Re: [INTERNALS-WIN] Re: Unresolved symbol _zend_ini_scanner_get_lineno | ||
| References: | 1 | Groups: | php.internals.win |
| Request: | Send a blank email to internals-win+get-428@lists.php.net to get a copy of this message | ||
>> Looks to me like that symbol is not exported - meaning you can't use it
>> in an extension if the extension is build shared.
>>
>> Thanks,
>> Elizabeth
>
> Ok. Related questions:
>
> 1) How did you determine that the symbol isn't exported?
Fairly easily - check out the source and there is no PHP_API or ZEND_API
macros which expand to export symbols. Also if you use dumpbin /exports
(available from visual studio environments) on php5(ts).dll you'll see
that it is not exported
> 2) Since I need to build static, I might as well build in all of the
> extensions that I need. I've almost got that with two (at the moment)
> exceptions:
> a) sockets: Build fails with:
> flock_compat.obj : error LNK2005: _inet_aton already defined in
> php_sockets_win.obj
> Debug_TS\php5ts_debug.dll : fatal error LNK1169: one or more multiply
> defined symbols found
> b) mbstring: Build fails with:
> c:\phpdev\php-5.2.8\ext\bcmath\libbcmath\src\bcmath.h(56) : fatal
> error C1083: Cannot open include file: '../../config.h': No such file or
> directory
> 3) All of my builds generate the following warnings:
> a) LINK : warning LNK4098: defaultlib "LIBC" conflicts with use of other
> libs; use /NODEFAULTLIB:library
> b) LINK : warning LNK4049: locally defined symbol
> "_php_dom_create_object" imported
These are known issues related to some of the libraries used (for the
libc) and some issues with symbols in the dom extension - neither affect
the build, just noise.
> After each cscript configure.js I do nmake clean followed by nmake.
> Assistance getting all of this straightened out will be most appreciated.
> Thanks in advance
> D.
Your life will be much easier if you use the libraries provided by
pecl2.php.net for building on windows
Also sounds like you might benefit from a clean source checkout - what
PHP version are you building?
Thanks,
Elizabeth