RE: [INTERNALS-WIN] Re: Unresolved symbol _zend_ini_scanner_get_lineno

[email protected] ("David M. Patterson")
Newsgroups php.internals.win
Organization DPLH Enterprises
Message-ID <[email protected]>
Scrap that. Looking at the wrong function.
Yep. zend_ini_scanner_get_lineno() is just declared as a function returning
an int.
D.

> -----Original Message-----
> From: David M. Patterson
> Sent: Monday, March 02, 2009 3:28 PM
> To: Elizabeth M Smith
> Cc: [email protected]
> Subject: RE: [INTERNALS-WIN] Re: Unresolved symbol
> _zend_ini_scanner_get_lineno
> 
> Hmmm.
> Actually, zend_ini.h has a prototype for zend_parse_ini_file() that uses
> the ZEND_API macro.
> What I can't find is the actual implementation of the function. I'm
> guessing that it's generated by bison.
> 
> > -----Original Message-----
> > From: Elizabeth M Smith [mailto:[email protected]]
> > Sent: Thursday, February 26, 2009 6:08 AM
> > To: David M. Patterson
> > Cc: [email protected]
> > Subject: Re: [INTERNALS-WIN] Re: Unresolved symbol
> > _zend_ini_scanner_get_lineno
> >
> >
> > >> 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
> >
> >
> > --
> > Windows Internals Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.