Thomas Braun
unread,Sep 30, 2014, 11:37:30 AM9/30/14Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to git-w...@googlegroups.com, Karsten Blees
Hi (CC to Karsten),
a couple of days ago I tried to recompile msys-pcre.
The compilation failed first due to a missing upstream package.
After upgrading it failed due to multiple definitions of mbstate_t.
I fixed it by
diff --git a/msys-pcre/pcre-8.32-1.msysport b/msys-pcre/pcre-8.36-1.msysport
similarity index 97%
rename from msys-pcre/pcre-8.32-1.msysport
rename to msys-pcre/pcre-8.36-1.msysport
index 2e82494..240e7f7 100644
--- a/msys-pcre/pcre-8.32-1.msysport
+++ b/msys-pcre/pcre-8.36-1.msysport
@@ -31,6 +31,8 @@ MGWCONF_ARGS="--enable-newline-is-any
--enable-unicode-properties
--enable-pcregrep-libz"
+CPPFLAGS+=" -D_GLIBCXX_HAVE_MBSTATE_T"
+
src_compile() {
cd ${B}
mgwconf
My wild guess is that because msys-gcc was not recompiled after we
patched msys, gcc does not know about how /include/wchar.h is build up.
Is my fix acceptable or is there something better not involving to
compile msys-gcc ourselves?
Thomas