diff -urdb libxml2-2.4.22-orig/Makefile.am libxml2-2.4.22/Makefile.am
--- libxml2-2.4.22-orig/Makefile.am	2002-05-24 04:35:13.000000000 +0200
+++ libxml2-2.4.22/Makefile.am	2002-06-16 11:42:04.000000000 +0200
@@ -15,7 +15,7 @@
 lib_LTLIBRARIES = libxml2.la
 libxml2_la_LIBADD = @Z_LIBS@ $(ICONV_LIBS) -lm
 
-libxml2_la_LDFLAGS = -version-info @LIBXML_VERSION_INFO@
+libxml2_la_LDFLAGS = -no-undefined -version-info @LIBXML_VERSION_INFO@
 
 if WITH_TRIO_SOURCES
 libxml2_la_SOURCES = SAX.c entities.c encoding.c error.c parserInternals.c  \
diff -urdb libxml2-2.4.22-orig/configure.in libxml2-2.4.22/configure.in
--- libxml2-2.4.22-orig/configure.in	2002-05-27 23:19:44.000000000 +0200
+++ libxml2-2.4.22/configure.in	2002-06-16 11:44:36.000000000 +0200
@@ -1,6 +1,6 @@
 dnl Process this file with autoconf to produce a configure script.
-AC_PREREQ(2.2)
-AC_INIT(entities.c)
+AC_INIT
+AC_CONFIG_SRCDIR([entities.c])
 AM_CONFIG_HEADER(config.h)
 AC_CANONICAL_HOST
 
@@ -37,6 +37,7 @@
 AM_C_PROTOTYPES
 test "x$U" != "x" && AC_MSG_ERROR(Compiler not ANSI compliant)
 
+AC_LIBTOOL_WIN32_DLL
 AM_PROG_LIBTOOL
 
 AM_MAINTAINER_MODE
@@ -571,6 +572,7 @@
 rm -f rm COPYING.LIB COPYING
 ln -s Copyright COPYING
 
-AC_OUTPUT(libxml.spec Makefile include/Makefile include/libxml/Makefile doc/Makefile example/Makefile python/Makefile python/tests/Makefile include/libxml/xmlversion.h include/libxml/xmlwin32version.h xml2-config libxml-2.0.pc xml2Conf.sh python/setup.py)
+AC_CONFIG_FILES([libxml.spec Makefile include/Makefile include/libxml/Makefile doc/Makefile example/Makefile python/Makefile python/tests/Makefile include/libxml/xmlversion.h include/libxml/xmlwin32version.h xml2-config libxml-2.0.pc xml2Conf.sh python/setup.py])
+AC_OUTPUT
 
 chmod +x xml2-config xml2Conf.sh python/setup.py
diff -urdb libxml2-2.4.22-orig/python/Makefile.am libxml2-2.4.22/python/Makefile.am
--- libxml2-2.4.22-orig/python/Makefile.am	2002-04-15 19:16:54.000000000 +0200
+++ libxml2-2.4.22/python/Makefile.am	2002-06-16 12:55:41.000000000 +0200
@@ -22,11 +22,12 @@
 	libxml2-python-api.xml	\
 	$(DOCS)
 
-libxml2mod_la_LDFLAGS = -module -avoid-version -L$(top_builddir)/.libs
+libxml2mod_la_LDFLAGS = -module -avoid-version -no-undefined -L$(top_builddir)/.libs
 
 if WITH_PYTHON
 mylibs = \
-	$(top_builddir)/libxml2.la
+	$(top_builddir)/libxml2.la	\
+	-L/usr/lib/python2.2/config -lpython2.2
 
 all: libxml2.py libxml2mod.la
 
