php-windows Digest 16 Aug 2007 05:59:40 -0000 Issue 3310

Topics (messages 28367 through 28369):

Re: building php 5.2.1 on windows
        28367 by: Rashmi Badan
        28368 by: Rob
        28369 by: Rashmi Badan

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
>
> >> 2) Build libxml2 2.6.29 from source (must compile with a MS compiler)
> >> and have PHP link against the libxml2_a_dll.lib file. I added that to
> >> the default libxml2 MSVC build but still need to commit the additon to
> >> the PHP build system (will be post 5.2.4). Once done, then the official
> >> libxml2 binaries (2.6.29+) will be able to be used.
> >> all you need to do is change the config.w32 file in ext/libxml to:
> >>
> >> if (CHECK_LIB("libxml2_a_dll.lib;libxml2_a.lib", "libxml") &&
> >> *AND* add the LIBXML_STATIC_FOR_DLL flag
> >> ADD_FLAG("CFLAGS_LIBXML", "/D LIBXML_STATIC /D LIBXML_STATIC_FOR_DLL
> ");
> >
> >
> >
> > I tried #2 but it didn't seem to help. I'm working with libxml2 2.6.27and
> > so I had to build libxml2_a_dll.lib by referring to the makefiles in
> 2.6.29.
> > But now I get some additional warnings, old problem persists :(
>
> It won't work with un-modified 2.6.27 code. I had also made a few
> modifications to threads.c and threads.h, which were committed for
> 2.6.29. Is there any reason you need .27 and can't use the .26 (or build
> against .29)?


I was using .27 on linux and had to get the same working on windows as well,
so am using that version.
Will using .29 solve my problem of not being able to build on windows? Is
that a recommended version anyway? Then I could probably upgrade to .29 -
although it would save me some effort in being able to work with .27 itself.

Thanks,
Rashmi


Rob
>

--- End Message ---
--- Begin Message ---
Rashmi Badan wrote:
<snip />

I was using .27 on linux and had to get the same working on windows as well,
so am using that version.
Will using .29 solve my problem of not being able to build on windows? Is
that a recommended version anyway? Then I could probably upgrade to .29 -
although it would save me some effort in being able to work with .27 itself.

.29 will solve your problem and contains the latest bug fixes so always recommended. As in my last message, if you want to use .27 on windows, you need to patch threads.c and threads.h with the changes that are in .29 to get the symbol properly exposed and exported.

Rob

--- End Message ---
--- Begin Message ---
>
> <snip />
>
> > I was using .27 on linux and had to get the same working on windows as
> well,
> > so am using that version.
> > Will using .29 solve my problem of not being able to build on windows?
> Is
> > that a recommended version anyway? Then I could probably upgrade to .29
> -
> > although it would save me some effort in being able to work with .27
> itself.
>
> .29 will solve your problem and contains the latest bug fixes so always
> recommended. As in my last message, if you want to use .27 on windows,
> you need to patch threads.c and threads.h with the changes that are in
> .29 to get the symbol properly exposed and exported.



Thanks Rob. I'll go with the patching for now.

Rgds,
Rashmi

Rob
>

--- End Message ---

Reply via email to