Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 147631 - media-gfx/graphviz-2.8 fails to build, gcc couldn't find " -lruby"
Summary: media-gfx/graphviz-2.8 fails to build, gcc couldn't find " -lruby"
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-09-14 17:07 UTC by dongxu li
Modified: 2006-09-22 22:16 UTC (History)
3 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description dongxu li 2006-09-14 17:07:29 UTC
emerge -uDN world, failed with:

  (cd .libs && rm -f libgv_java.so && ln -s libgv_java.so.0.0.0 libgv_java.so)
  libtool: link: warning:
`/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../..//libz.la' seems to be moved
  /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lruby
  collect2: ld returned 1 exit status

[ebuild     U ] media-gfx/graphviz-2.8 [1.16-r1] USE="X%* cairo%* -minimal% -static% -tcltk" 

#emerge --info
Portage 2.1.1 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.12.5
Last Sync: Thu, 14 Sep 2006 22:30:06 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-lang/python:     2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r5
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -pipe -mfpmath=sse -mmmx -msse -msse2 -fomit-frame-pointer -fexpensive-optimizations"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-O2 -march=pentium4 -pipe -mfpmath=sse -mmmx -msse -msse2 -fomit-frame-pointer -fexpensive-optimizations"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache digest distcc distlocks fixpackages metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo ftp://gentoo.mirrors.tds.net/gentoo http://64.50.236.52/ http://gentoo.mirrors.tds.net/gentoo"
LINGUAS="en zh_TW zh_CN"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--timeout=600 --recursive --links --safe-links --perms     --times --compress --force --whole-file --delete                 --delete-after  --stats --timeout=180 --exclude='/distfiles'            --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm berkdb bitmap-fonts cairo cjk cli crypt cups dbus dlloader dri eds elibc_glibc emboss encode esd firefox foomaticdb fortran gdbm gif glitz gnome gpm gstreamer gtk2 hal i8x0 imlib input_devices_evdev input_devices_keyboard input_devices_mouse isdnlog jpeg kde kernel_linux libg++ libwww linguas_en linguas_zh_CN linguas_zh_TW mad mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly ogg opengl oss pam pcre perl png pppd python qt3 qt4 quicktime readline reflection sdl session spell spl sse sse2 ssl tcpd truetype truetype-fonts type1-fonts udev unicode userland_GNU userlocales video_cards_i810 video_cards_v4l video_cards_vesa vorbis xml xorg xrandr xv zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 dongxu li 2006-09-15 21:21:47 UTC
graphviz-2.8 builds after " emerge -C ruby "

after graphviz-2.8 is built, I can " emerge ruby " again.
Comment 2 Perttu Luukko 2006-09-19 09:02:33 UTC
Same thing here. There seems to be a lot of warnings about

libtool: link: warning: `/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../..//whatever.la' seems to be moved

followed by

../../../../i686-pc-linux-gnu/lib -L/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/crtfastmath.o /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/crtendS.o /usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../crtn.o  -march=athlon-xp -Wl,-soname -Wl,libgv_ruby.so.0 -o .libs/libgv_ruby.so.0.0.0
/usr/lib/gcc/i686-pc-linux-gnu/4.1.1/../../../../i686-pc-linux-gnu/bin/ld: cannot find -lruby
collect2: ld returned 1 exit status
make[3]: *** [libgv_ruby.la] Error 1

By using the workaround in #1, I can install graphviz-2.8, but after I reinstall ruby, graphviz-2.8 fails to compile with the same error.

emerge --info
---------------------
Portage 2.1.1 (default-linux/x86/2006.1/desktop, gcc-4.1.1, glibc-2.4-r3, 2.6.17-gentoo-r8 i686)
=================================================================
System uname: 2.6.17-gentoo-r8 i686 AMD Athlon(tm) XP 2600+
Gentoo Base System version 1.12.5
Last Sync: Tue, 19 Sep 2006 13:20:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.3 [enabled]
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.2.11-r1
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.3
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
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-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r3
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer"
DISTDIR="/mnt/1/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict suidctl"
GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo/ http://distfiles.gentoo.org/"
LANG="en_GB.UTF-8"
LINGUAS="en fi"
MAKEOPTS="-j2"
PKGDIR="/mnt/1/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=180 --exclude-from=/etc/portage/rsync_excludes"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://trumpetti.atm.tut.fi/gentoo-portage"
USE="x86 16bit 3dnow 3dnowext 7zip X a52 aac aalib abook afm alsa anthy ao aotuv asf asm bash-completion berkdb bitmap-fonts browserplugin bzip2 cairo cap caps ccache cdda cddb cdio cdparanoia cdr cdrom cjk clamav cli clock-screen cracklib crypt crypto_openssl css cups curl curlwrappers dbus devmap dhcp directfb dlloader dri dts dvd dvdr dvdread dvi elibc_glibc emboss encode enscript exif fam fbcon fbsplash ffmpeg firefox flac fortran ftp fuse gdbm gif gimp gimpprint glep gmp gnuplot gnutls gpgme gpm gs gsl gstreamer gtk gvim gzip hal http icecast iconv ieee1394 image imagemagick imap imlib2 immqt-bc input_devices_evdev input_devices_keyboard input_devices_linuxinput input_devices_mouse input_devices_ps2mouse iproute2 ipv6 irc irssi isdnlog jabber javascript jingle john joystick jpeg jpeg2k kdeenablefinal kdehiddenvisibility kernel_linux key-screen latex libclamav libg++ linguas_en linguas_fi lj logitech-mouse lzo lzw mad maildir mailwrapper matroska mbox mccp md5sum mikmod mime mmap mmx mmxext mng mouse mozdevelop moznocompose moznoirc moznomail mozsvg mp3 mpeg mpeg2 mplayer musepack ncurses net nethack new-login nforce2 nls nntp nodrm nowin nptl nptlonly nsplugin ntfs ntlm nvidia ogg opengl openssl pam pcre pdf perl physfs pic png posix povray ppds pppd print procmail python pyx qt qt3 quicktime rar readline reflection reiserfs rss rtc sasl scenarios scp sdl search-screen session sftp sftplogging silc slang smime sndfile sockets socks5 sox speex spell spl srv sse ssl subject-rewrite subp subtitles subversion svg svgz sysfs t1lib tcpd tetex theora threads tidy tiff truetype truetype-fonts type1-fonts udev unicode usb userland_GNU userlocales v4l v4l2 vcdimager video_cards_nvidia vim vim-pager vim-with-x vorbis win32codecs wmf wxwindows x264 xcomposite xft xlockrc xml xml2 xorg xosd xpm xv xvid xvmc zip zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LDFLAGS
Comment 3 dongxu li 2006-09-22 22:16:05 UTC
It's a ruby problem, and ruby-config should fix it.

 # ruby-config -l
 * Supported profiles are:
 *      ruby18
 * You can specify one of the profiles listed above.
 * e.g.) ruby-config ruby16

 # ruby-config ruby18
 * Linking /usr/bin/ruby18 to /usr/bin/ruby (relative)
 * Linking /usr/bin/irb18 to /usr/bin/irb (relative)
 * Linking /usr/bin/erb18 to /usr/bin/erb (relative)
 * Linking /usr/bin/testrb18 to /usr/bin/testrb (relative)
 * Linking /usr/bin/rdoc18 to /usr/bin/rdoc (relative)
 * Linking /usr/bin/ri18 to /usr/bin/ri (relative)
 * Linking /usr/lib/libruby18.so to /usr/lib/libruby.so (relative)
 * Linking /usr/share/man/man1/ruby18.1.gz to /usr/share/man/man1/ruby.1.gz (relative)

gcc finds -lruby now, and graphviz builds smoothly.