gnuplot-5.1.9999 fails to build: x86_64-pc-linux-gnu-g++ -mtune=native -O2 -msse3 -pipe -I/usr/lib64/wx/include/gtk2-unicode-3.0 -I/usr/include/wx-3.0 -D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXGTK__ -pthread -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/cairo -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/pixman-1 -I/usr/include/freetype2 -I/usr/include/libdrm -I/usr/include/libpng16 -pthread -I/usr/include/gtk-2.0 -I/usr/lib64/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/atk-1.0 -I/usr/include/cairo -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/libpng16 -I/usr/include/pango-1.0 -I/usr/include/harfbuzz -I/usr/include/pango-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/freetype2 -Wl,-O1 -Wl,--as-needed -Wl,-O1 -Wl,--as-needed -o gnuplot_qt qtterminal/gnuplot_qt.o qtterminal/QtGnuplotWindow.o qtterminal/QtGnuplotApplication.o qtterminal/QtGnuplotWidget.o qtterminal/QtGnuplotScene.o qtterminal/QtGnuplotItems.o qtterminal/QtGnuplotEvent.o qtterminal/moc_QtGnuplotWindow.o qtterminal/moc_QtGnuplotApplication.o qtterminal/moc_QtGnuplotWidget.o qtterminal/moc_QtGnuplotScene.o qtterminal/moc_QtGnuplotEvent.o qtterminal/qrc_QtGnuplotResource.o -L/usr/lib64/qt4 -lQtNetwork -lQtSvg -lQtGui -lQtCore -ldl -lm -lz -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lcairo -lglib-2.0 /usr/lib/gcc/x86_64-pc-linux-gnu/5.3.0/../../../../x86_64-pc-linux-gnu/bin/ld: wxterminal/wxt_gui.o: undefined reference to symbol 'XInitThreads' /usr/lib64/libX11.so.6: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make[4]: *** [Makefile:787: gnuplot] Error 1 make[4]: Leaving directory '/var/tmp/portage/sci-visualization/gnuplot-5.1.9999/work/gnuplot/src' Unfortunately I am not accustomed to the autoconf business. Adding -lX11 in src/Makefile like LIBS = -ldl -lm -lz -lpangocairo-1.0 -lpango-1.0 -lgobject-2.0 -lcairo -lglib-2.0 -lX11 or might be a better solution: Adding -lX11 in src/Makefile.in like LIBS = @LIBS@ -lX11 fixes the problem but most probably is not the best fix.
Created attachment 439076 [details, diff] patched ebuild which works fine here
Patching CVS sources is very fragile, so could you please report this problem upstream!
Is this still an issue with gnuplot-5.2.2?
No reply. Closing.