Re: [xml] error compiling libxml2-2.5.8 on mingw with MSYS



and one more

in examples/Makefile.am

LDADD = ... @WIN32_EXTRA_LIBADD@


----- Original Message ----- 
From: "Mikhail Grushinskiy" <mgrushinskiy comcast net>
To: <veillard redhat com>
Cc: <xml gnome org>
Sent: Sunday, August 10, 2003 4:03 PM
Subject: Re: [xml] error compiling libxml2-2.5.8 on mingw with MSYS


This is for 2.5.9 now

in configure.in add

WIN32_EXTRA_LIBADD=
WIN32_EXTRA_LDFLAGS=
case "$host" in
 *-*-mingw*)
 WIN32_EXTRA_LIBADD="-lwsock32"
 WIN32_EXTRA_LDFLAGS="-no-undefined"
 AC_DEFINE([_WINSOCKAPI_],1,[Using the Win32 Socket implementation])
 AC_DEFINE([snprintf],[_snprintf],[Win32 Std C name mangling work-around])
 AC_DEFINE([vsnprintf],[_vsnprintf],[Win32 Std C name mangling
work-around])
 ;;
esac
AC_SUBST(WIN32_EXTRA_LIBADD)
AC_SUBST(WIN32_EXTRA_LDFLAGS)


in Makefile.am (add @WIN32_EXTRA_LIBADD@ for LDADDS)

LDADDS = ... @WIN32_EXTRA_LIBADD@

in libxml.h

#if defined(WIN32) && !defined(__CYGWIN__)
#include "win32config.h"
#elif defined(macintosh)
#include "config-mac.h"
#else
#include "config.h"
#include <libxml/xmlversion.h>
#endif

should be

#if defined(WIN32) && !defined(__CYGWIN__) && !defined(__MINGW32__)
#include "win32config.h"
#elif defined(macintosh)
#include "config-mac.h"
#else
#include "config.h"
#include <libxml/xmlversion.h>
#endif

in nanohttp.c, and nanoftp.c

add


#ifdef __MINGW32__
#define _WINSOCKAPI_
#include <wsockcompat.h>
#include <winsock2.h>
#undef SOCKLEN_T
#define SOCKLEN_T unsigned int
#endif



compile libxml2 2.5.9 under MINGW with MSYS without IPv6 support


----- Original Message ----- 
From: "Daniel Veillard" <veillard redhat com>
To: "Mikhail Grushinskiy" <mgrushinskiy comcast net>
Cc: <xml gnome org>
Sent: Saturday, August 09, 2003 3:43 PM
Subject: Re: [xml] error compiling libxml2-2.5.8 on mingw with MSYS


On Sat, Aug 09, 2003 at 02:22:48PM -0400, Mikhail Grushinskiy wrote:
getting an error compiling libxml2 (2.5.8) on mingw under MSYS. (FYI)


It seems config.h and include/win32config.h redefine some of the
symbols
in nanohttp.c

  There is something wrong. But I can't help finding fixes, since you
have
the special environment then please check what's happening. This is
dependant
on your setup platform/compiler .



---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.504 / Virus Database: 302 - Release Date: 7/25/2003

_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
xml gnome org
http://mail.gnome.org/mailman/listinfo/xml


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.504 / Virus Database: 302 - Release Date: 7/25/2003




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]