Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 585842 - sci-visualization/gnuplot-5.1.9999 needs an -lX11 for the loader
Summary: sci-visualization/gnuplot-5.1.9999 needs an -lX11 for the loader
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ulrich Müller
URL: https://sourceforge.net/p/gnuplot/bug...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-06-13 15:32 UTC by Helmut Jarausch
Modified: 2018-08-30 15:54 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
patched ebuild which works fine here (gnuplot_ebuild.patch,573 bytes, patch)
2016-06-28 13:12 UTC, Helmut Jarausch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Helmut Jarausch 2016-06-13 15:32:57 UTC
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.
Comment 1 Helmut Jarausch 2016-06-28 13:12:40 UTC
Created attachment 439076 [details, diff]
patched ebuild which works fine here
Comment 2 Christoph Junghans (RETIRED) gentoo-dev 2016-06-28 17:10:18 UTC
Patching CVS sources is very fragile, so could you please report this problem upstream!
Comment 3 Ulrich Müller gentoo-dev 2018-05-12 22:59:48 UTC
Is this still an issue with gnuplot-5.2.2?
Comment 4 Ulrich Müller gentoo-dev 2018-08-30 15:54:38 UTC
No reply. Closing.