Tuesday, August 16, 2022

Re: Update py-qt5 and friends

Le Tue, Aug 16, 2022 at 09:53:01PM +0200, Landry Breuil a écrit :
> Le Tue, Aug 16, 2022 at 05:16:58PM +0100, Stuart Henderson a écrit :
> > I hit this on a test build I'm doing on i386. It has updated py-setuptools
> > but I don't think that will affect this (I can run a clean one to make sure
> > when the machines are free)
> >
> > Errors are like this:
> >
> > ld: error: /usr/local/lib/libqscintilla2_qt5.so.1.0: undefined reference to Scintilla::RunStyles<long, int>::~RunStyles() [--no-allow-shlib-undefined]
> >
> > Build log first, cxxfilt'd symbol names from libqscintilla2_qt5.so.1.0
> > below, here's the matching one from the first error above
> >
> > U Scintilla::RunStyles<long, int>::~RunStyles()
> >
> > missing inter-library link? is this working on amd64?
>
> i can reproduce the issue on an i386 vm, same symptoms. Works on amd64,
> Qsci binary links fine.
>
> interestingly nm -g on libscintilla2_qt5.so.1.0 yields no RunStyle
> symbols, defined or not.

maybe the right fix or not, but smth is definitely fishy.

patching the bottom of scintilla/src/RunStyles.cpp this way:
--- scintilla/src/RunStyles.cpp.orig Fri May 13 17:07:38 2022
+++ scintilla/src/RunStyles.cpp Tue Aug 16 22:23:39 2022
@@ -308,7 +308,7 @@

template class Scintilla::RunStyles<int, int>;
template class Scintilla::RunStyles<int, char>;
-#if (PTRDIFF_MAX != INT_MAX) || PLAT_HAIKU
+#if 1
template class Scintilla::RunStyles<ptrdiff_t, int>;
template class Scintilla::RunStyles<ptrdiff_t, char>;

No comments:

Post a Comment