|
From: Petr M. <mi...@ph...> - 2017-07-05 22:08:25
|
>>>>> 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? > > Actually, I think this is gnuplot's responsibility. If I do >Anyway, I think gnuplot configure is obligated to add -lX11, given the >situation. I think that ./configure is the place for tests of compile conditions. There can be some simple case testing whether "-lX11" is needed or not. Is such a workaround possible? --- Petr |