Re: PHP_YAZ

Cindy Harper <[email protected]>
Newsgroups gmane.comp.php.windows
Message-ID <[email protected]>
OK - so I 'm using VC9.  I thought I might as well get everything working,
so I turned on configre --enable-one-shot.  Now it's giving errors in trying
to link zlib. I got zlib.1.2.5, and I'm following the README there to try to
compile the dll / library - I'm afriad I don't know the difference and don't
know which I need.  But I get this:

---------------------------------------------------
C:\php\php_sdk\php_53_dev\vc9\x86\deps\zlib-1.2.5>nmake -f
win32/makefile.msc

Microsoft (R) Program Maintenance Utility Version 9.00.30729.01
Copyright (C) Microsoft Corporation.  All rights reserved.

        cl -c -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -nologo
-MD
 -W3 -O2 -Oy- -Zi -Fd"zlib"  adler32.c
adler32.c
        cl -c -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -nologo
-MD
 -W3 -O2 -Oy- -Zi -Fd"zlib"  compress.c
compress.c
        cl -c -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -nologo
-MD
 -W3 -O2 -Oy- -Zi -Fd"zlib"  crc32.c
crc32.c
        cl -c -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -nologo
-MD
 -W3 -O2 -Oy- -Zi -Fd"zlib"  deflate.c
deflate.c
        cl -c -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -nologo
-MD
 -W3 -O2 -Oy- -Zi -Fd"zlib"  gzclose.c
gzclose.c
        cl -c -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -nologo
-MD
 -W3 -O2 -Oy- -Zi -Fd"zlib"  gzlib.c
gzlib.c
        cl -c -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -nologo
-MD
 -W3 -O2 -Oy- -Zi -Fd"zlib"  gzread.c
gzread.c
        cl -c -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -nologo
-MD
 -W3 -O2 -Oy- -Zi -Fd"zlib"  gzwrite.c
gzwrite.c
        cl -c -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -nologo
-MD
 -W3 -O2 -Oy- -Zi -Fd"zlib"  infback.c
infback.c
        cl -c -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -nologo
-MD
 -W3 -O2 -Oy- -Zi -Fd"zlib"  inflate.c
inflate.c
        cl -c -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -nologo
-MD
 -W3 -O2 -Oy- -Zi -Fd"zlib"  inftrees.c
inftrees.c
        cl -c -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -nologo
-MD
 -W3 -O2 -Oy- -Zi -Fd"zlib"  trees.c
trees.c
        cl -c -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -nologo
-MD
 -W3 -O2 -Oy- -Zi -Fd"zlib"  uncompr.c
uncompr.c
        cl -c -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE -nologo
-MD
 -W3 -O2 -Oy- -Zi -Fd"zlib"  zutil.c
zutil.c
        lib -nologo -out:zlib.lib adler32.obj compress.obj crc32.obj
deflate.obj
 gzclose.obj gzlib.obj gzread.obj  gzwrite.obj infback.obj inflate.obj
inftrees.
obj trees.obj uncompr.obj zutil.obj
        rc /dWIN32 /r /fozlib1.res win32/zlib1.rc
Microsoft (R) Windows (R) Resource Compiler Version 6.1.7600.16385
Copyright (C) Microsoft Corporation.  All rights reserved.

        link -nologo -debug -incremental:no -opt:ref -def:win32/zlib.def
-dll -i
mplib:zdll.lib  -out:zlib1.dll -base:0x5A4C0000 adler32.obj compress.obj
crc32.o
bj deflate.obj gzclose.obj gzlib.obj gzread.obj  gzwrite.obj infback.obj
inflate
.obj inftrees.obj trees.obj uncompr.obj zutil.obj  zlib1.res
   Creating library zdll.lib and object zdll.exp
infback.obj : error LNK2019: unresolved external symbol _inflate_fast
referenced
 in function _inflateBack
inflate.obj : error LNK2001: unresolved external symbol _inflate_fast
zlib1.dll : fatal error LNK1120: 1 unresolved externals
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft Visual Studio
9.0\VC\Bin
\link.EXE"' : return code '0x460'
Stop.

C:\php\php_sdk\php_53_dev\vc9\x86\deps\zlib-1.2.5>

--------------------------------------
Is this zdll.lib the actual library I need, rather than zlib1.lib????


Cindy Harper, Systems Librarian
Colgate University Libraries
[email protected]
315-228-7363



On Sun, Mar 13, 2011 at 5:39 AM, Richard Quadling <[email protected]>wrote:

> On 13 March 2011 09:36, Richard Quadling <[email protected]> wrote:
> >> I don't know much about compiling PECL modules, and after I've compiled,
> >> when I test, I get a Fatal error: Call to undefined function
> yaz_connect()
> >> in C:\Inetpub\wwwroot\aftergoogle2\aftergoogle.php on line 28
>
> To compile a PHP extension on Windows, you need MS Visual C++ 2008
> (aka VC9). I use the Express Edition (which is free).
>
> You can see the relevant notes at http://wiki.php.net/internals/windows
>
> --
> Richard Quadling
> Twitter : EE : Zend
> @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY
>
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.