Re: windows build with libxml and iconv

php.internals

Frank M. Kromann

22 years ago
Hi Rob, I'm using iconv 1.9.1 and I get problems with _libiconv_version it does'nt seam to be in the lib file. If I remove this from the exports I can build and link php4dllts.lib and php_xls.dll without problems but not php_iconv.dll. I'll try to resolve this. I also move the @echo off to the top of the builddef.bat file to avoid echo's in the def file - Frank
> Can someone with a clean windows build test the changes for the
libxml/iconv
> linking. I believe it is working, but have so many copies of
libxml/libxslt
> on my system I cant be 100% sure that it is. > > A few things. It currently is exporting all libxml symbols. It looks
like
> there may be about 200K difference if we only export those we need, so
any
> opinions on full or partial export? > Also still trying to libxml to include all iconv symbols so that iconv
is
> not needed in php4dllts.dsp to export its symbols. Not sure if this is > necessary as compiler may be optimizing out the redundant functions. > > For Edin's builds we are going to need to seperate libs for the branches
as
> these wont work with php 4 - libxml may, but libxslt wont as its static > build is now linked dynamically against libxml. > > www.ctindustries.net/patches/winphplibxml.zip > contains the libxml, libxslt as well as iconv files for building. iconv
is
> the stock version, but is included for versioning. libxml.dll and > libxslt/libexslt dlls are not needed, as we only need the static libs,
but
> are included. > php_libxml2.def needs to be placed in the ext/libxml directory. > libxml is version 2.5.11, libxslt is version 1.0.33 and iconv is version
1.8

Rob Richards

22 years ago
From: Frank M. Kromann
> I'm using iconv 1.9.1 and I get problems with _libiconv_version it does'nt > seam to be in the lib file. > > If I remove this from the exports I can build and link php4dllts.lib and > php_xls.dll without problems but not php_iconv.dll.
Following up on this as it turned out to be version and lib issues with iconv in PHP-GTK. If not using the iconv lib supplied in the zip, make sure the static lib is used as the gnu iconv build seems to name libs differently than the ones from www.zlatkovic.com. Rob