Earnie wrote:
I'm having the following issue related to pthread-win32 which implements
pthread_t as a structure.

/usr/src/libxslt-1.1.26/xsltproc/testThreads.c: In function 'main':
/usr/src/libxslt-1.1.26/xsltproc/testThreads.c:203:6: error: conversion
to non-scalar type requested
[SNIP]
yes and no
1) libxml does not support pthread woe emulation and right configure option is --with-threads=win32 2) according to discussion on mingw.org pthread-win32 will be used only internally for gcc and will not be exposed to users
3) attached 0001-minimal-mingw-support.patch
a) ignore pthread.h detection for mingw* hosts (my build environment contain installed pthread-win32 package) b) local fix to my build environment where I use build against sources where I use --with-libxml-src. this part is not finished

so 3.a) will depend from 2.

As project manager please could you confirm that mingw.org project will provide pthread-win32 package for public use ?

Next step is to port libxslt therad test to native implementation and in future to port libxml&libxslt to pthread-win32 as alternative implementation.

Could you confirm that libxml work for you with pthread-win32 ?

Regards,
Roumen

>From 9035060134b7ad026190b2ba5cc4932f1f027321 Mon Sep 17 00:00:00 2001
From: Roumen Petrov <ru...@master.example.net>
Date: Sat, 23 Jan 2010 19:01:41 +0200
Subject: [PATCH 1/4] minimal mingw support

---
 configure.in |   11 +++++++++--
 1 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/configure.in b/configure.in
index d63a23b..f217e24 100644
--- a/configure.in
+++ b/configure.in
@@ -141,12 +141,17 @@ AC_SUBST(VERSION_SCRIPT_FLAGS)
 AM_CONDITIONAL([USE_VERSION_SCRIPT], [test -n "$VERSION_SCRIPT_FLAGS"])
 
 dnl Look for pthread.h, needed for testThreads
+case $host in
+  *-mingw*) ;;
+  *)
 THREAD_LIBS=""
 AC_CHECK_HEADER(pthread.h,
     AC_CHECK_LIB(pthread, pthread_join,[
        AC_DEFINE([HAVE_LIBPTHREAD], [], [Define if pthread library is there (-lpthread)])
        AC_DEFINE([HAVE_PTHREAD_H], [], [Define if <pthread.h> is there])
        THREAD_LIBS="-lpthread"]))
+  ;;
+esac
 
 AC_SUBST(THREAD_LIBS)
 
@@ -546,12 +551,14 @@ then
 	XMLVERS=`$XML_CONFIG --version`
 	if test VERSION_TO_NUMBER(echo $XMLVERS) -ge VERSION_TO_NUMBER(echo $LIBXML_REQUIRED_VERSION)
 	then
-		LIBXML_LIBS="$LIBXML_LIBS `$XML_CONFIG --libs`"
-		LIBXML_CFLAGS="$LIBXML_CFLAGS `$XML_CONFIG --cflags`"
 		AC_MSG_RESULT($XMLVERS found)
 	else
 		AC_MSG_ERROR(Version $XMLVERS found. You need at least libxml2 $LIBXML_REQUIRED_VERSION for this version of libxslt)
 	fi
+	LIBXML_LIBS="$LIBXML_LIBS `$XML_CONFIG --libs`"
+	if test "x$LIBXML_SRC" = "x"; then
+		LIBXML_CFLAGS="$LIBXML_CFLAGS `$XML_CONFIG --cflags`"
+	fi
 else
 	AC_MSG_ERROR([Could not find libxml2 anywhere, check ftp://xmlsoft.org/.])
 fi
-- 
1.7.1


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

Reply via email to