gv_perl.cpp:1761: error: invalid use of 'static' in linkage specification make[3]: *** [gv_perl.lo] Error 1 make[3]: *** Waiting for unfinished jobs.... mv -f .deps/gv_ruby.Tpo .deps/gv_ruby.Plo 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 Reproducible: Always Steps to Reproduce: 1. emerge media-gfx/graphviz-2.12 2. 3.
I am using ~x86. Emerging with USE="-perl" works.
Post emerge --info output plus a couple lines above the error you get. Thanks.
I am using AMD64. Emerging with USE='-perl' works for me too. But to help resolve this bug I'm posting the details of my error and emerge --info http://forums.gentoo.org/viewtopic-t-619295.html $ emerge --info Portage 2.1.3.19 (default-linux/amd64/2007.0, gcc-4.2.2, glibc-2.7-r0, 2.6.22-gentoo-r8 x86_64) ================================================================= System uname: 2.6.22-gentoo-r8 x86_64 AMD Athlon(tm) 64 Processor 3800+ Timestamp of tree: Tue, 20 Nov 2007 00:46:01 +0000 ccache version 2.4 [enabled] app-shells/bash: 3.2_p17-r1 dev-java/java-config: 1.3.7, 2.1.2-r1 dev-lang/python: 2.4.4-r7, 2.5.1-r3 dev-python/pycrypto: 2.0.1-r6 dev-util/ccache: 2.4-r7 sys-apps/baselayout: 1.12.10-r5 sys-apps/sandbox: 1.2.18.1-r2 sys-devel/autoconf: 2.13, 2.61-r1 sys-devel/automake: 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10 sys-devel/binutils: 2.18-r1 sys-devel/gcc-config: 1.4.0-r4 sys-devel/libtool: 1.5.24 virtual/os-headers: 2.6.22-r2 ACCEPT_KEYWORDS="amd64 ~amd64" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config" CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d" CXXFLAGS="-O2 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch" GENTOO_MIRRORS="http://gentoo.cites.uiuc.edu/pub/gentoo/ " LINGUAS="hi" MAKEOPTS="-j2" 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/local/layman/sunrise" SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage" USE="3dnow 3dnowext X a52 aac acl alsa amd64 avi berkdb bitmap-fonts cdr cli cracklib crypt cups dbus divx doc dri dts dvd dvdnav dvdread examples firefox fortran gdbm gif gmedia gpm gtk hal iconv ipv6 isdnlog jpeg live mad matroska midi mmx mp3 mpeg mplayer mudflap ncurses nls nptl nptlonly nsplugin oggvorbis opengl openmp pam pcre pdf png pppd python qt3 qt4 quicktime readline realmedia reflection sdl session spell spl sse sse2 ssl startup-notification svg symlink tcpd theora tiff truetype truetype-fonts type1 type1-fonts unicode wma wmp xanim xcomposite xorg xscreensaver xv 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 evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="hi" USERLAND="GNU" VIDEO_CARDS="nvidia" Unset: CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
In file ./tclpkg/gv/gv_perl.cpp, on line 996: #define SWIGCLASS_STATIC extern "C" static SWIGUNUSED The use of <extern "C"> part is not correct and should be removed. I will attach a patch file as soon as I can.
(In reply to comment #4) > In file ./tclpkg/gv/gv_perl.cpp, on line 996: > #define SWIGCLASS_STATIC extern "C" static SWIGUNUSED > The use of <extern "C"> part is not correct and should be removed. > I will attach a patch file as soon as I can. Sorry for writting faster than thinking :( The problem is with swig-1.3.32. If you use swig-1.3.31, then it works. Note that the gv_perl.cpp file is generated with swig...
Created attachment 136835 [details, diff] patch file patch file that fixes graphviz compilation with perl use flag enabled.
Created attachment 136836 [details] ebuild ebuild file that fixes graphviz compilation with perl use flag enabled; it uses the patch attached earlier.
*** Bug 200148 has been marked as a duplicate of this bug. ***
Reopen...
Fixed and working with swig-1.3.33.
CCing the swig maintainers. this is fixed in >=graphviz-2.16.1 by depending on swig-1.3.33, but the stable ebuild (2.12) is still affected.
i take that back. keywords were dropped in swig-1.3.32 so i can't depend on 1.3.33. we either need this patch applied or 1.3.32 removed.
(In reply to comment #12) > we either need this patch applied or 1.3.32 removed. I don't see what good removing 1.3.32 will do; it has the same dropped keywords as 1.3.33.
because i can't depend on >=dev-lang/swig-1.3.33 in graphviz. the best i can do is >=swig-1.3.31, which includes the broken version.
Sorry for being slow. I have removed swig-1.3.32.
meh, it's monday. ;) fixinated.