I'm seeing the following error: x86_64-pc-linux-gnu-g++ -DHAVE_CONFIG_H -I. -I../.. -I../.. -I../../lib/gvc -I../../lib/common -I../../lib/graph -I../../lib/cdt -I../../lib/pathplan -I/usr/lib64/perl5/5.8.8/x86_64-linux/CORE -I/usr/include/python2.4 -I/usr/lib64/ruby/1.8/x86_64-linux -march=k8 -O2 -pipe -g -MT gv_ruby.lo -MD -MP -MF .deps/gv_ruby.Tpo -c gv_ruby.cpp -fPIC -DPIC -o .libs/gv_ruby.o /usr/lib64/ruby/1.8/x86_64-linux/intern.h:207: error: use of enum 'rb_thread_status' without previous declaration /usr/lib64/ruby/1.8/x86_64-linux/intern.h:207: error: invalid type in declaration before ';' token make[3]: *** [gv_ruby.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... x86_64-pc-linux-gnu-g++ -shared -nostdlib /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crti.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtbeginS.o .libs/gv.o .libs/gv_python.o -Wl,--rpath -Wl,/var/tmp/portage/media-gfx/graphviz-2.12/work/graphviz-2.12/lib/gvc/.libs ../../lib/gvc/.libs/libgvc.so -L/var/tmp/portage/media-gfx/graphviz-2.12/work/graphviz-2.12/lib/graph/.libs -L/var/tmp/portage/media-gfx/graphviz-2.12/work/graphviz-2.12/lib/cdt/.libs -L/var/tmp/portage/media-gfx/graphviz-2.12/work/graphviz-2.12/lib/pathplan/.libs -L/usr/lib64 -lpython2.4 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64 -L/lib/../lib64 -L/usr/lib/../lib64 -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../x86_64-pc-linux-gnu/lib -L/usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtfastmath.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/crtendS.o /usr/lib/gcc/x86_64-pc-linux-gnu/4.1.2/../../../../lib64/crtn.o -march=k8 -Wl,--as-needed -Wl,-soname -Wl,libgv_python.so.0 -o .libs/libgv_python.so.0.0.0 mv -f .deps/gv_perl.Tpo .deps/gv_perl.Plo (cd .libs && rm -f libgv_python.so.0 && ln -s libgv_python.so.0.0.0 libgv_python.so.0) (cd .libs && rm -f libgv_python.so && ln -s libgv_python.so.0.0.0 libgv_python.so) creating libgv_python.la (cd .libs && rm -f libgv_python.la && ln -s ../libgv_python.la libgv_python.la) make[3]: Leaving directory `/var/tmp/portage/media-gfx/graphviz-2.12/work/graphviz-2.12/tclpkg/gv' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/var/tmp/portage/media-gfx/graphviz-2.12/work/graphviz-2.12/tclpkg' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/tmp/portage/media-gfx/graphviz-2.12/work/graphviz-2.12' make: *** [all] Error 2 !!! ERROR: media-gfx/graphviz-2.12 failed. Call stack: ebuild.sh, line 1629: Called dyn_compile ebuild.sh, line 975: Called qa_call 'src_compile' ebuild.sh, line 44: Called src_compile graphviz-2.12.ebuild, line 157: Called die !!! emake failed !!! If you need support, post the topmost build error, and the call stack if relevant. !!! A complete build log is located at '/var/log/portage/media-gfx:graphviz-2.12:20070619-001605.log'. This was with ruby-1.8.6_p36. emerge --info as follows: Portage 2.1.3_rc3 (default-linux/amd64/2006.1/desktop, gcc-4.1.2, glibc-2.5-r3, 2.6.17-gentoo-r4 x86_64) ================================================================= System uname: 2.6.17-gentoo-r4 x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ Gentoo Base System release 1.12.10 Timestamp of tree: Unknown dev-java/java-config: 1.3.7, 2.0.9999 dev-lang/python: 2.4.4-r4 dev-python/pycrypto: 2.0.1-r5 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 1.3.16 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="amd64 ~amd64" AUTOCLEAN="yes" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=k8 -O2 -pipe -g" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/X11/xkb /var/lib/hsqldb" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo" CXXFLAGS="-march=k8 -O2 -pipe -g" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs collision-protect cvs distlocks java-strict metadata-transfer multilib multilib-strict sandbox sfperms splitdebug strict unmerge-orphans userpriv" GENTOO_MIRRORS="http://gentoo-distfiles.mirrors.tds.net/" LANG="C" LDFLAGS="-Wl,--as-needed" LINGUAS="en en_US" MAKEOPTS="-j3" PKGDIR="/usr/portage/packages" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/home/nichoj/checkouts/gentoo-x86" PORTDIR_OVERLAY="/usr/local/overlays/openoffice-geki /usr/local/overlays/gnome-experimental /usr/local/overlays/libre-java-overlay /usr/local/overlays/private /usr/local/overlays/pretty-overlay /usr/local/overlays/java-overlay /usr/local/overlays/java-experimental /usr/local/overlays/nichoj-misc" SYNC="cvs://nichoj@cvs.gentoo.org:/var/cvsroot" USE="X a52 aac aalib acpi alsa amd64 aoss avahi bash-completion beagle berkdb bitmap-fonts branding bzip2 cairo cdr cli cracklib crypt cscope cups daap dbus dri dvd dvdr dvdread eds emboss encode evo exif fam fastcgi firefox flac fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal iconv ipod ipv6 isdnlog java java5 javamail jpeg libg++ libnotify logrotate mad midi mikmod mono mozbranding mozdevelop mozdom mp3 mpeg mudflap mysql nautilus ncurses nls nptl nptlonly nsplugin offensive ogg opengl openmp pam pcre pdf perl png ppds pppd python quicktime readline reflection replytolist ruby samba sdl session source spell spl ssl startup-notification svg tcpd theora tiff truetype truetype-fonts type1-fonts unicode vorbis xcomposite xinerama xml xorg xprint xulrunner xv xvid zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en en_US" USERLAND="GNU" VIDEO_CARDS="nv nvidia" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Looks like its a deal with a more recent ruby( or a more recent kernel/linux-headers ) . I had this version compile fine before now, but was recompiling it in order to migrate to python2.5 (which I don't think is the issue). ( Please Report your ruby versions here, ill try downgrade ruby to a last-known-worked and see if it fixes something, if that fails, ill blame linux-headers. If its of any potential use, the last successful graphviz install of that version happened 2007-04-25. Graphviz USE flags: X doc examples -gnome gtk nls pango perl python ruby -tcl -tk Ruby USE flags: -debug doc examples ipv6 -rubytests socks5 threads -tk #ruby -v ruby 1.8.6 (2007-06-07 patchlevel 36) [i686-linux] Indicative Common Factors In emerge --info Common Factors: Portage Version GCC GLIBC BASE SYSTEM HAS java-config - 1.3.7 HAS python - 2.4.4-r4 PYCRPYTO SANDBOX AUTOCONF AUTOMAKE BINUTILS LIBTOOL OS-HEADERS Both have compiled with debug & O2 ::: Emerge --info follows ::: Portage 2.1.3_rc3 (default-linux/x86/2007.0, gcc-4.1.X/default, glibc-2.5-r3, 2.6.21-gentookz i686) ================================================================= System uname: 2.6.21-gentookz i686 AMD Athlon(TM) XP 2000+ Gentoo Base System release 1.12.10 Timestamp of tree: Sat, 16 Jun 2007 18:00:01 +0000 distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.4 [disabled] app-admin/eselect-compiler: 2.0.0_rc2-r1 dev-java/java-config: 1.3.7, 2.0.33-r1 dev-lang/python: 2.3.6-r2, 2.4.4-r4, 2.5.1-r2 dev-python/pycrypto: 2.0.1-r5 dev-util/ccache: 2.4-r7 sys-apps/sandbox: 1.2.18.1 sys-devel/autoconf: 2.13, 2.61 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.17 sys-devel/gcc-config: 2.0.0_rc1 sys-devel/libtool: 1.5.23b virtual/os-headers: 2.6.21 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS="-O2 -march=i686 -mtune=athlon-xp -pipe -ggdb3 -gstabs3" CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /opt/openjms/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/local/kdeextra/share/config /usr/local/kdeextra/shutdown /usr/share/X11/xkb /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/eselect/compiler /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c" CXXFLAGS="-O2 -march=i686 -mtune=athlon-xp -pipe -ggdb3 -gstabs3" DISTDIR="/mnt/fission/distfiles/distfiles" FEATURES="autoaddcvs cvs distlocks metadata-transfer parallel-fetch sandbox sfperms splitdebug strict unmerge-orphans userfetch userpriv usersandbox" GENTOO_MIRRORS="http://distfiles.gentoo.org" LANG="en_AU.UTF-8" LC_ALL="C" LDFLAGS="-Wl,-O1,-z,combreloc,--sort-common,--enable-new-dtags" LINGUAS="en_NZ en_GB en en_US" MAKEOPTS="-j1" PKGDIR="/usr/portage/packages" 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 --filter=H_**/files/digest-*" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/portage/local/layman/mysql-testing /usr/portage/local/layman/mysql-experimental /usr/portage/local/layman/enlightenment /usr/portage/local/layman/armagetron /usr/portage/local/layman/sunrise /usr/portage/local/layman/kde /usr/portage/local/layman/toolchain /usr/local/portage /usr/src/musicbrainz-overlay_svn /usr/src/xgl/xgl-coffee" SYNC="rsync://rsync.gentoo.org/gentoo-portage" Unset: CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Demon Found! Graphvis compiles fine with ruby-1.8.6-r1. Notable changes in intern.h since previous stable-x86 diff 1.8.6-r1/usr/lib/ruby/1.8/i686-linux/intern.h 1.8.6_p36/usr/lib/ruby/1.8/i686-linux/intern.h 5,6c5,6 < $Author: knu $ < $Date: 2007-03-11 17:31:53 +0900 (Sun, 11 Mar 2007) $ --- > $Author: shyouhei $ > $Date: 2007-06-07 21:40:01 +0900 (Thu, 07 Jun 2007) $ 206a207 > enum rb_thread_status rb_thread_status _((VALUE)); 208a210 > VALUE rb_thread_wakeup_alive _((VALUE)); 210a213 > VALUE rb_thread_alive_p _((VALUE)); Hmmmm. Looks like this bug is a result of this update: http://bugs.gentoo.org/show_bug.cgi?id=181379 Relevant lines from the changelog at http://svn.ruby-lang.org/repos/ruby/tags/v1_8_6_36/ChangeLog Sat Mar 24 23:40:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org> * node.h (struct rb_thread.locals): explicit as struct. [ruby-core:10585] * eval.c, node.h (enum rb_thread_status, struct rb_thread, rb_curr_thread, rb_main_thread): prefixed. [ruby-core:10586] * file.c (chompdirsep): made an unprefixed name static. * io.c (io_fread): ditto. Hope this is of use to whoevers fixing the bug.
This got fixed in dev-lang/ruby-1.8.6_p36-r1. The only broken version was ruby-1.8.6-p36, which is no longer in the tree.