|
From: sfeam <sf...@us...> - 2017-07-04 23:24:11
|
On Wednesday, 05 July 2017 01:08:35 Petr Mikulik wrote: > >> I have troubles compiling rc2 on Linux (OpenSUSE 42.2, and some Ubuntu) - > >> linking fails. > >> > >> It is this problem: > >> https://sourceforge.net/p/gnuplot/support-requests/196/ > >> > >> The workaround > >> configure --with-X11 > >> described above does not help, while > >> TERMLIBS="-lX11" ./configure > >> let me gnuplot compile. > >> > >> Can this be fixed? > > > > No. It is a bug in the configuration files distributed for libwxgtk. > > Unfortunately it seems to be a wide-spread bug. It is quite embarassing that a > compile needs googling to fix it locally. > > Cannot "./configure" take care of this? I.e. add the "-lX11" flag if > "something"? That "something" is exactly the problem. Only some versions of wxWidgets need this, and only for some configurations. The wx-config tool is supposed to tell us what libraries are needed so we can link them. But it doesn't mention X11. So how are we to know? I'll go further and say it is a wxgtk bug that this should be visible to the calling program at all. The calling program doesn't use or need to know about libX11. If wxgtk wants to call into it, fine, but why expose this to the calling program? FWIW wxgtk 2.8 still works and doesn't have this problem. It is only versions >= 2.9 that are broken. Ethan |