[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lmi] libxslt no longer builds
From: |
Greg Chicares |
Subject: |
Re: [lmi] libxslt no longer builds |
Date: |
Sun, 27 Sep 2020 18:30:34 +0000 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 |
[written before I saw your reply]
On 2020-09-27 17:38, Greg Chicares wrote:
[...]
> /usr/bin/i686-w64-mingw32-ld: .libs/functions.o: in function
> `xsltGenerateIdFunction':
> /opt/lmi/local/gcc_i686-w64-mingw32/xml-ad_hoc/libxslt-1.1.29/libxslt/functions.c:707:
> undefined reference to `_imp___snprintf.constprop.0'
> /usr/bin/i686-w64-mingw32-ld:
> /opt/lmi/local/gcc_i686-w64-mingw32/xml-ad_hoc/libxslt-1.1.29/libxslt/functions.c:709:
> undefined reference to `_imp___snprintf.constprop.0'
> /usr/bin/i686-w64-mingw32-ld: .libs/namespaces.o: in function
> `xsltGetSpecialNamespace':
> /opt/lmi/local/gcc_i686-w64-mingw32/xml-ad_hoc/libxslt-1.1.29/libxslt/namespaces.c:592:
> undefined reference to `_imp___snprintf.constprop.0'
[...]
> Might this be a 'wine' regression, since I suppose the CRT that
> MinGW-w64 uses is provided by 'wine'? This might be relevant:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=948598
It still fails, the same way, with the changes below (inspired by
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=948598#15
):
diff --git a/install_libxml2_libxslt.make b/install_libxml2_libxslt.make
index 8923adc6..4b098a5f 100644
--- a/install_libxml2_libxslt.make
+++ b/install_libxml2_libxslt.make
@@ -102,9 +102,9 @@ xmlsoft_common_options := \
--enable-shared \
--with-debug \
--without-python \
- LDFLAGS='-lws2_32' \
- CPPFLAGS="-w" \
- CFLAGS="-g -O2 $(xmlsoft_common_cflags)" \
+ LDFLAGS='-posix -lws2_32' \
+ CPPFLAGS="-D__USE_MINGW_ANSI_STDIO=1 -w" \
+ CFLAGS="-posix -g -O2 $(xmlsoft_common_cflags)" \
$(libxml2_version)_options := \
--prefix=$(prefix) \