Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213825 - media-gfx/graphviz-2.18 fails to compile, "gv_R.cpp:759: error: 'calloc' was not declared in this scope"
Summary: media-gfx/graphviz-2.18 fails to compile, "gv_R.cpp:759: error: 'calloc' was ...
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: 2008-03-18 12:41 UTC by Atanas Kamburov
Modified: 2008-04-12 09:49 UTC (History)
0 users

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


Attachments
build log (build.log,411.94 KB, text/plain)
2008-03-22 13:02 UTC, Atanas Kamburov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Atanas Kamburov 2008-03-18 12:41:44 UTC
emerge =media-gfx/graphviz-2.18 exits with an error message on my amd64. 
Use flags:

[ebuild     U ] media-gfx/graphviz-2.18 [2.16.1-r3] USE="jpeg png -doc -examples -gnome -gtk* -nls* -perl -python -ruby -tcl -tk" 0 kB



Reproducible: Always

Steps to Reproduce:
1.emerge graphviz
2.
3.

Actual Results:  
....
 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/R/include -O2 -pipe -march=k8 -MT gv_R.lo -MD -MP -MF .deps/gv_R.Tpo -c gv_R.cpp  -fPIC -DPIC -o .libs/gv_R.o
gv_R.cpp: In function 'RCallbackFunctionData* R_SWIG_pushCallbackFunctionData(SEXPREC*, SEXPREC*)':
gv_R.cpp:759: error: 'calloc' was not declared in this scope
gv_R.cpp: In function 'void R_SWIG_popCallbackFunctionData(int)':
gv_R.cpp:800: error: 'free' was not declared in this scope
gv_R.cpp: In function 'void R_SWIG_ReferenceFinalizer(SEXPREC*)':
....
 * Messages for package media-gfx/graphviz-2.18:
 * 
 * ERROR: media-gfx/graphviz-2.18 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 2782:  Called die
 * The specific snippet of code:
 *       emake || die "emake failed"
 *  The die message:
 *   emake failed



Expected Results:  
clean compile
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2008-03-18 12:46:35 UTC
emerge --info please.
Comment 2 Atanas Kamburov 2008-03-18 12:55:03 UTC
Portage 2.1.4.4 (default-linux/amd64/2007.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.24-gentoo-r3 x86_64)
=================================================================
System uname: 2.6.24-gentoo-r3 x86_64 AMD Athlon(tm) X2 Dual Core Processor BE-2400
Timestamp of tree: Tue, 18 Mar 2008 11:00:02 +0000
app-shells/bash:     3.2_p17-r1
dev-java/java-config: 1.3.7, 2.1.4
dev-lang/python:     2.4.4-r9
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r1
sys-devel/automake:  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.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=k8"
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/X11/xkb /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 -march=k8"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo "
LINGUAS="en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X acl acpi alsa amd64 berkdb cdr cli compositor cracklib crypt dbus dri dvd fortran fpu gdbm gpm gtk gtk2 hal iconv ipv6 isdnlog java jpeg lm_sensors midi mmx mudflap ncurses nls nptl nptlonly nvidia openmp pam pcre perl png pppd python readline reflection session spl sse sse2 ssl tcpd truetype unicode v4l v4l2 xcomposite xorg 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" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Comment 3 Jakub Moc (RETIRED) gentoo-dev 2008-03-18 12:59:29 UTC
Reopen...
Comment 4 Markus Meier gentoo-dev 2008-03-22 11:38:14 UTC
Could you please attach the complete output log of the build? I am totally unable to reproduce.
Comment 5 Atanas Kamburov 2008-03-22 13:02:13 UTC
Created attachment 146881 [details]
build log

My build log is attached...
By the way, the error seems to be architecture-unspecific: same happens on my IBM Thinkpad x31 with Pentium-M...
Comment 6 Markus Meier gentoo-dev 2008-04-12 09:49:54 UTC
This issue should be fixed in media-gfx/graphviz-2.18, the R-bindings are disabled for now.