Emerging gnuplot gives the following error. Note that, before emerging gnuplot, I updated to the new modular xorg! So I think it has something to do with it. >>> Emerging (1 of 1) sci-visualization/gnuplot-4.0-r1 to / ... ... Making all in tutorial make[2]: Entering directory `/var/tmp/portage/gnuplot-4.0-r1/work/gnuplot-4.0.0/tutorial' ../src/gnuplot: error while loading shared libraries: libXaw.so.8: cannot open shared object file: No such file or directory make[2]: *** [eg1.tex] Error 127 make[2]: Leaving directory `/var/tmp/portage/gnuplot-4.0-r1/work/gnuplot-4.0.0/tutorial' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/gnuplot-4.0-r1/work/gnuplot-4.0.0' make: *** [all] Error 2 !!! ERROR: sci-visualization/gnuplot-4.0-r1 failed. Call stack: ebuild.sh, line 1526: Called dyn_compile ebuild.sh, line 923: Called src_compile gnuplot-4.0-r1.ebuild, line 68: Called die emerge --info Portage 2.1_pre7-r2 (default-linux/amd64/2005.1, gcc-3.4.5, glibc-2.3.5-r2, 2.6.15-gentoo-r7 x86_64) ================================================================= System uname: 2.6.15-gentoo-r7 x86_64 AMD Athlon(tm) 64 Processor 3200+ Gentoo Base System version 1.12.0_pre16 distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] dev-lang/python: 2.3.5-r2, 2.4.2 sys-apps/sandbox: 1.2.12 sys-devel/autoconf: 2.13, 2.59-r7 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1 sys-devel/binutils: 2.16.1 sys-devel/libtool: 1.5.22 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -march=k8 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -march=k8 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.nl.gentoo.org/gentoo-portage" USE="amd64 X acpi alsa arts artswrappersuid avi berkdb bitmap-fonts browserplugin bzip2 crypt cups doc dri dvd dvdread eds emacs emboss encode fbcon flac foomaticdb fortran gif gimpprint gpm graphviz gstreamer gtk gtk2 hal imagemagick imlib java javascript jpeg kde logitech-mouse lzw lzw-tiff mad mng mp3 mpeg mplayer musicbrainz ncurses nls nptl nptlonly nsplugin nvidia ogg openal opengl pam pdflib perl plotutils png python qt quicktime readline real samba sdl spell ssl subversion svg tcltk tcpd tetex theora tiff truetype truetype-fonts type1 type1-fonts unicode usb video_cards_nvidia visualization vnc vorbis wma wmf wxwindows x264 xanim xcomposite xft xine xinerama xpm xv xvid xvmc zip zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux userland_GNU video_cards_-nv video_cards_-nvidia%" Unset: ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, MAKEOPTS
Next time I will search better for an existing bug ;-) *** This bug has been marked as a duplicate of 127185 ***
Actually it may be not a duplicate of that bug. I have just also encountered this bug and if you look for previous error messages you shall find: i686-pc-linux-gnu-gcc -Os -march=athlon-xp -mfpmath=sse -mmmx -msse -m3dnow -funroll-loops -pipe -L/usr/lib -Wl,-rpath,/usr/lib -o gnuplot alloc.o axis.o binary.o bitmap.o color.o command.o contour.o datafile.o dynarray.o eval.o fit.o gadgets.o getcolor.o graph3d.o graphics.o help.o hidden3d.o history.o internal.o interpol.o matrix.o misc.o mouse.o parse.o plot.o plot2d.o plot3d.o pm3d.o readline.o save.o scanner.o set.o show.o specfun.o standard.o stdfn.o tables.o term.o time.o unset.o util.o util3d.o variable.o version.o -lplot -lreadline -lncurses -lz -lgd -lXpm -lX11 -ljpeg -lfreetype -lpng12 -lz -lm -lXaw -lXmu -lXt -lXext -lX11 -lm /usr/lib/gcc/i686-pc-linux-gnu/3.4.6/../../../../i686-pc-linux-gnu/bin/ld: warning: libXaw.so.8, needed by /usr/lib/libplot.so, not found (try using -rpath or -rpath-link) It means that the problem is missing dependency for libplot.so, not gnuplot itself. After re-emerging plotutils the problem with gnuplot was gone in my case.
I confirm Jaroslaw Kalinowski's analysis. Re-emerging plotutils allows gnuplot to emerge successfully (~amd64).