# Building on Win32

- Thread: https://externals.io/message/2321
- Original archive: https://news-web.php.net/php.internals/2321
- Started by Andi Gutmans on 2003-06-13T22:41:27+00:00
- Messages: 4
- Reply by email to internals@lists.php.net
- More for agents: search with https://externals.io/search.md?q={query} · JSON API at https://externals.io/api · documentation at https://externals.io/llms.txt

---

## #2321 — Andi Gutmans — 2003-06-13T22:41:27+00:00

URL: https://externals.io/message/2321#2321

Hey,

I can't get Win32 to build anymore. Sebastian sent me some patched libxml2 
include files and now the build complains about missing iconv.h and not 
about the missing libxml2 includes anymore.
We need to get this whole build going again in a pretty straightforward 
manner. I understand that the libxml2 version which is needed is a patched 
version which isn't too good.
So can someone tell me where the build stands, what the instructions are 
and how we can get rid of the need of using a patched version of libxml2?

Thanks,

Andi

---

## #2323 — Rob Richards — 2003-06-13T23:22:19+00:00

URL: https://externals.io/message/2321#2323 · In reply to: #2321

From: Andi Gutmans

> So can someone tell me where the build stands, what the instructions are
> and how we can get rid of the need of using a patched version of libxml2?

On windows, you really dont need that giant patch.

Currently it does need xmlInitThreads in the libxml2.def.src/libxml2.def
(depending if you want to run configure again or not), if you want to use
libxml as a shared dll. If you compile it statically (add LIBXML_STATIC=1 to
the preprocessor definitions) you dont have to worry about adding the export
declaration or recompiling libxml.

If we dump the call the xmlInitThreads in xml extension, then a patched
version is no longer needed. Currently this is an empty function, but
supposedly will be used in the near future.

Also for php4dllts project make sure HAVE_XML is in the preprocessor
definitions.
If this still doesnt work, send the errors you get compiling.

Rob

---

## #2324 — Sebastian Bergmann — 2003-06-14T04:30:00+00:00

URL: https://externals.io/message/2321#2324 · In reply to: #2321

Andi Gutmans wrote:
> now the build complains about missing iconv.h

  iconv is a libxml2 dependency :)

-- 
  Sebastian Bergmann
  http://sebastian-bergmann.de/                 http://phpOpenTracker.de/

         http://www.professionelle-softwareentwicklung-mit-php5.de/

---

## #2325 — Andi Gutmans — 2003-06-14T07:48:15+00:00

URL: https://externals.io/message/2321#2325 · In reply to: #2321

At 07:22 PM 6/13/2003 -0400, Rob Richards wrote:
>From: Andi Gutmans
>
> > […]
>
>On windows, you really dont need that giant patch.
>
>Currently it does need xmlInitThreads in the libxml2.def.src/libxml2.def
>(depending if you want to run configure again or not), if you want to use
>libxml as a shared dll. If you compile it statically (add LIBXML_STATIC=1 to
>the preprocessor definitions) you dont have to worry about adding the export
>declaration or recompiling libxml.
>
>If we dump the call the xmlInitThreads in xml extension, then a patched
>version is no longer needed. Currently this is an empty function, but
>supposedly will be used in the near future.
>
>Also for php4dllts project make sure HAVE_XML is in the preprocessor
>definitions.
>If this still doesnt work, send the errors you get compiling.

Thanks for the instructions. I'll try them out later on.

Andi
