Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 199831 - media-gfx/graphviz-2.12 doesn't compile w/ swig-1.3.32
Summary: media-gfx/graphviz-2.12 doesn't compile w/ swig-1.3.32
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
: 200148 (view as bug list)
Depends on:
Blocks:
 
Reported: 2007-11-20 21:27 UTC by Tobias Hunger
Modified: 2007-12-18 00:12 UTC (History)
5 users (show)

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


Attachments
patch file (swig-1.3.32-static.patch,379 bytes, patch)
2007-11-24 01:27 UTC, Ioan Marius Curelariu
Details | Diff
ebuild (swig-1.3.32.ebuild,1.94 KB, text/plain)
2007-11-24 01:28 UTC, Ioan Marius Curelariu
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tobias Hunger 2007-11-20 21:27:49 UTC
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.
Comment 1 Tobias Hunger 2007-11-20 21:34:49 UTC
I am using ~x86. Emerging with USE="-perl" works.
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2007-11-20 21:39:21 UTC
Post emerge --info output plus a couple lines above the error you get. Thanks.
Comment 3 Pariksheet Nanda 2007-11-21 16:40:59 UTC
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
Comment 4 Ioan Marius Curelariu 2007-11-24 00:25:10 UTC
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.
Comment 5 Ioan Marius Curelariu 2007-11-24 01:06:54 UTC
(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...
Comment 6 Ioan Marius Curelariu 2007-11-24 01:27:52 UTC
Created attachment 136835 [details, diff]
patch file

patch file that fixes graphviz compilation with perl use flag enabled.
Comment 7 Ioan Marius Curelariu 2007-11-24 01:28:58 UTC
Created attachment 136836 [details]
ebuild

ebuild file that fixes graphviz compilation with perl use flag enabled; it uses the patch attached earlier.
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-11-24 08:25:17 UTC
*** Bug 200148 has been marked as a duplicate of this bug. ***
Comment 9 Jakub Moc (RETIRED) gentoo-dev 2007-11-24 08:26:09 UTC
Reopen...
Comment 10 Ioan Marius Curelariu 2007-11-30 08:57:47 UTC
Fixed and working with swig-1.3.33.
Comment 11 Ryan Hill (RETIRED) gentoo-dev 2007-12-16 20:47:33 UTC
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.
Comment 12 Ryan Hill (RETIRED) gentoo-dev 2007-12-16 22:24:35 UTC
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.
Comment 13 Marijn Schouten (RETIRED) gentoo-dev 2007-12-17 11:22:57 UTC
(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.
Comment 14 Ryan Hill (RETIRED) gentoo-dev 2007-12-17 13:30:50 UTC
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.
Comment 15 Marijn Schouten (RETIRED) gentoo-dev 2007-12-17 15:37:45 UTC
Sorry for being slow. I have removed swig-1.3.32.
Comment 16 Ryan Hill (RETIRED) gentoo-dev 2007-12-18 00:12:44 UTC
meh, it's monday. ;)

fixinated.