|
From: Allin C. <cot...@wf...> - 2017-07-06 19:36:34
|
On Thu, 6 Jul 2017, Daniel J Sebald wrote:
> It isn't the wxgtk library that wants X11, it's gnuplot's use of
> XInitThreads() that requires X11. wxgtk configure can't
> anticipate our use of an X function. wx_gui shouldn't be using
> XInitThreads().
I'd just like to underscore Daniel's last point here. Surely it's a
dangerous hack for the gnuplot code to call XInitThreads() "on
behalf of" wxWidgets (in wxt_gui.h). I suspect this may be related
to the segfault I reported earlier today.
<danger-will-robinson>
#if defined(WXT_MULTITHREADED) && defined(WX_NEEDS_XINITTHREADS) &&
defined(X11)
/* Magic fix needed by wxgtk3.0 */
wxtApp() : wxApp() { XInitThreads(); }
#endif
</danger-will-robinson>
Allin Cottrell
|