Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 195983 - media-gfx/graphviz : Compilation error - gv_python.cpp
Summary: media-gfx/graphviz : Compilation error - gv_python.cpp
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Gentoo Graphics Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-15 21:25 UTC by Tiger
Modified: 2007-12-16 22:48 UTC (History)
0 users

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


Attachments
Patch for gv_python.cpp (graphviz-2.12-gv_python.patch,411 bytes, patch)
2007-10-15 21:26 UTC, Tiger
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tiger 2007-10-15 21:25:11 UTC
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.5 -march=athlon64 -O2 -pipe -fomit-frame-pointer -MT gv_python.lo -MD -MP -MF .deps/gv_python.Tpo -c gv_python.cpp  -fPIC -DPIC -o .libs/gv_python.o
gv_python.cpp: In function 'int SWIG_AsCharPtrAndSize(PyObject*, char**, size_t*, int*)':
gv_python.cpp:2751: error: cannot convert 'int*' to 'Py_ssize_t*' for argument '3' to 'int PyString_AsStringAndSize(PyObject*, char**, Py_ssize_t*)'
make[3]: *** [gv_python.lo] Error 1
Comment 1 Tiger 2007-10-15 21:26:56 UTC
Created attachment 133564 [details, diff]
Patch for gv_python.cpp
Comment 2 Luca Barbato gentoo-dev 2007-10-16 03:48:55 UTC
the patch seems ok, but I'd rather see your emerge info so I can see which gcc doesn't like the actual code.
Comment 3 Tiger 2007-10-16 17:08:12 UTC
Portage 2.1.3.13 (default-linux/amd64/2006.1, gcc-4.2.2, glibc-2.6.1-r0, 2.6.22-gentoo-r4-Tiger x86_64)
=================================================================
System uname: 2.6.22-gentoo-r4-Tiger x86_64 AMD Athlon(tm) 64 X2 Dual Core Processor 3800+
Timestamp of tree: Mon, 15 Oct 2007 00:50:01 +0000
distcc 2.18.3 x86_64-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17-r1
dev-lang/python:     2.5.1-r2
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.10-r5
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  1.4_p6, 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.23
ACCEPT_KEYWORDS="amd64 ~amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
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/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=athlon64 -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo                     ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo                      http://ftp.club-internet.fr/pub/mirrors/gentoo                              http://gentoo.modulix.net/gentoo"
LANG="fr_FR.utf8"
LC_ALL="fr_FR.utf8"
LINGUAS="fr fr_FR en"
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="/usr/portage"
PORTDIR_OVERLAY="/home/tiger/portage"
SYNC="rsync://servx/gentoo-portage"
USE="X a52 aac alsa amd64 apic bash-completion berkdb bitmap-fonts bzip2 cairo cdr cflush cli cmov cmp_legacy cr8legacy cracklib crypt cups cx16 cx8 dbus de dri dvd dvdr dvdread encode fbcon ffmpeg fid firefox flash fortran fpu ftp fxsr fxsr_opt gdbm gif gpm gtk gtk2 hal ht iconv isdnlog jpeg kde kdeenablefinal kdehiddenvisibility lahf_lm lm logitech-mouse mca mce midi mozilla mp3 msr mtrr mudflap ncurses nls nptl nptlonly nx ogg opengl openmp pae pam pat pcre pdf perl pge php png pni ppds pppd pse pse36 python qt qt3 qt4 readline reflection sep session spl ssl stc svm syscall tcltk tcpd threads tm truetype-fonts ts tsc ttp type1-fonts unicode usb vid vim-with-x vme wifi xcomposite xorg xvid zlib" ALSA_CARDS="hda-intel" 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="fr fr_FR en" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

This is my emerge --info but I had compiled graphviz with GCC 4.2.1

The problem seems to be with the update of python, after tried to python-updater, this one would remerge graphviz but it failed. graphviz was compiled without errors with python 2.4.
Comment 4 Ryan Hill (RETIRED) gentoo-dev 2007-12-16 22:48:01 UTC
Fixed in 2.16.1