gnuplot should depend on libXaw when linking against Modular X, since libXaw is not installed when emerging xorg-x11-7.0-r1 package.
Stefano, please only assign bugs to the dev-portage team when you have found a bug in sys-apps/portage itself. I'll reassign this one to the proper maintainer as this appears to not be related to sys-apps/portage in any such way.
oops sorry, I'm not very good at english, so I got confused :)
Ok... gnuplot actually looks for libXaw.so.8 when compiling, but Modular X just installs the libXaw.so.6 and libXaw.so.7. I got it running making a symlink. However this doesn't look like the way to go according to me, and, since I'm not very skilled with autotools, I can't give you any more suggestion.
*** Bug 127764 has been marked as a duplicate of this bug. ***
This still happens now that modular X went stable for x86: ../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]: *** Waiting for unfinished jobs.... ../src/gnuplot: error while loading shared libraries: libXaw.so.8: cannot open shared object file: No such file or directory make[2]: *** [eg2.tex] Error 127 make[2]: Leaving directory `/tmp/portage/gnuplot-4.0-r1/work/gnuplot-4.0.0/tutorial' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/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 1539: Called dyn_compile ebuild.sh, line 939: Called src_compile gnuplot-4.0-r1.ebuild, line 68: Called die !!! (no error message) !!! If you need support, post the topmost build error, and the call stack if relevant. Any plans for fixing it (apart from the symlink kludge suggested by Stefano?)
libXaw is now a dep, so that problem should be fixed. As for linking to the wrong version of libXaw.so, I can't reproduce it. Is it possible that there's crufty libXaw stuff on your system still?
Here's how it works for me: Zanga stefano # emerge --search libXaw Searching... [ Results for search key : libXaw ] [ Applications found : 1 ] * x11-libs/libXaw Latest version available: 1.0.2 Latest version installed: 1.0.2 Size of files: 511 kB Homepage: http://xorg.freedesktop.org/ Description: X.Org Xaw library License: libXaw Zanga stefano # ls /usr/lib/libXaw* -l -rw-r--r-- 1 root root 583566 19 mag 16:47 /usr/lib/libXaw6.a -rw-r--r-- 1 root root 961 19 mag 16:47 /usr/lib/libXaw6.la lrwxrwxrwx 1 root root 16 19 mag 16:47 /usr/lib/libXaw6.so -> libXaw6.so.6.0.1 lrwxrwxrwx 1 root root 16 19 mag 16:47 /usr/lib/libXaw6.so.6 -> libXaw6.so.6.0.1 -rwxr-xr-x 1 root root 360016 19 mag 16:47 /usr/lib/libXaw6.so.6.0.1 -rw-r--r-- 1 root root 802476 19 mag 16:47 /usr/lib/libXaw7.a -rw-r--r-- 1 root root 982 19 mag 16:47 /usr/lib/libXaw7.la lrwxrwxrwx 1 root root 16 19 mag 16:47 /usr/lib/libXaw7.so -> libXaw7.so.7.0.0 lrwxrwxrwx 1 root root 16 19 mag 16:47 /usr/lib/libXaw7.so.7 -> libXaw7.so.7.0.0 -rwxr-xr-x 1 root root 498648 19 mag 16:47 /usr/lib/libXaw7.so.7.0.0 lrwxrwxrwx 1 root root 10 19 mag 16:47 /usr/lib/libXaw.so -> libXaw7.so lrwxrwxrwx 1 root root 12 19 mag 16:47 /usr/lib/libXaw.so.6 -> libXaw6.so.6 lrwxrwxrwx 1 root root 12 19 mag 16:47 /usr/lib/libXaw.so.7 -> libXaw7.so.7 lrwxrwxrwx 1 root root 16 22 mar 16:02 /usr/lib/libXaw.so.8 -> libXaw7.so.7.0.0 Zanga stefano # rm /usr/lib/libXaw.so.8 Zanga stefano # gnuplot gnuplot: error while loading shared libraries: libXaw.so.8: cannot open shared object file: No such file or directory Zanga stefano # ln -sf /usr/lib/libXaw.so.7 /usr/lib/libXaw.so.8 Zanga stefano # gnuplot G N U P L O T Version 4.0 patchlevel 0 last modified Thu Apr 15 14:44:22 CEST 2004 System: Linux 2.6.16-gentoo-r9 [...] (the symlink that I remove is the one I once created)
It works for me now (after re-emerging gnuplot): tjgq@trillian:~$ gnuplot G N U P L O T Version 4.0 patchlevel 0 last modified Thu Apr 15 14:44:22 CEST 2004 System: Linux 2.6.16-gentoo-r12 (...) and it does link to the "right" libXaw version: tjgq@trillian:~$ ldd /usr/bin/gnuplot | grep Xaw libXaw.so.7 => /usr/lib/libXaw.so.7 (0xb7926000) So for me, problem is solved :) Thanks.
config.log:/usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../../i686-pc-linux-gnu/bin/ld: warning: libXaw.so.8, needed by /usr/lib/gcc-lib/i686-pc-linux-gnu/3.3.6/../../../libplot.so, not found (try using -rpath or -rpath-link) emerge plotutils emerge gnuplot
*** Bug 156919 has been marked as a duplicate of this bug. ***