In src/_rrdtoolmodule.c , i see 5 Parameters: if (rrd_graph(argc, argv, &calcpr, &xsize, &ysize) == -1) { /usr/include/rrd.h shows me 8 Parameters: int rrd_graph(int, char **, char ***, int *, int *, FILE *, double *, double *); Can somebody explain how that fits ? * RRDtool 1.2.6 Copyright by Tobi Oetiker, 1997-2005 ***************************************************************************** * rrdlib.h Public header file for librrd ***************************************************************************** * $Id: rrd.h 536 2005-05-10 06:07:41Z oetiker $ Reproducible: Always Steps to Reproduce: 1. emerge rrdtool // rrdtool-1.2.6-r1 should be installed 2. emerge py-rrdtool // ... build fails 3. Actual Results: >>> md5 src_uri ;-) py-rrdtool-0.2.1.tar.gz >>> Unpacking source... >>> Unpacking py-rrdtool-0.2.1.tar.gz to /mnt/space/var/tmp_portage/portage/py-rrdtool-0.2.1/work >>> Source unpacked. running build running build_py creating build creating build/lib.linux-i686-2.3 creating build/lib.linux-i686-2.3/rrdtool copying rrdtool/__init__.py -> build/lib.linux-i686-2.3/rrdtool running build_ext building 'rrdtool._rrdtool' extension creating build/temp.linux-i686-2.3 creating build/temp.linux-i686-2.3/src i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=athlon -O3 -pipe -ffast-math -fforce-addr -fa lign-functions=4 -fPIC -I/usr/local/include -I/usr/include/python2.3 -c src/_rrdtoolmodule.c -o build/temp.linux- i686-2.3/src/_rrdtoolmodule.o src/_rrdtoolmodule.c: In function `PyRRD_graph': src/_rrdtoolmodule.c:239: error: too few arguments to function `rrd_graph' error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1 !!! ERROR: dev-python/py-rrdtool-0.2.1 failed. !!! Function distutils_src_compile, Line 35, Exitcode 1 Expected Results: it builds , as previous versions did, too. something was changed within the .h file Portage 2.0.51.22-r2 (!/mnt/space/usr/portage/profiles/default-linux/x86/2005.0, gcc-3.3.5-20050130, glibc-2.3.5-r0, 2.6.11-gentoo-r6 i686) ================================================================= System uname: 2.6.11-gentoo-r6 i686 AMD Athlon(TM) XP1700+ Gentoo Base System version 1.6.12 dev-lang/python: 2.3.5 sys-apps/sandbox: 1.2.11 sys-devel/autoconf: 2.13, 2.59-r6 sys-devel/automake: 1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.5 sys-devel/binutils: 2.15.92.0.2-r10 sys-devel/libtool: 1.5.18-r1 virtual/os-headers: 2.6.11-r2 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CBUILD="i686-pc-linux-gnu" CFLAGS=" -march=athlon -O3 -pipe -ffast-math -fforce-addr -falign-functions=4 " CHOST="i686-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS=" -march=athlon -O3 -pipe -ffast-math -fforce-addr -falign-functions=4 " DISTDIR="/usr/portage/distfiles" FEATURES="autoconfig distlocks sandbox sfperms" GENTOO_MIRRORS="http://mirror.schlund.de/gentoo http://ftp.uni-erlangen.de/pub/mirrors/gentoo" LANG="de_DE@euro" LINGUAS="de" MAKEOPTS=" -j1 " PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/mnt/space/var/tmp_portage" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dfx 3dnow X aalib acl acpi alsa apache2 apm arts avi bitmap-fonts cdr crypt cups curl dba directfb emboss encode esd fam flac flash foomaticdb fortran gd gdbm gif glx gnome gpm gtk gtk2 icq imap imlib ipv6 java jpeg junit kde ldap libg++ libwww mad mbox mikmod mmx motif mozilla mp3 mpeg mysql nas ncurses nls nptl nvidia ogg oggvorbis opengl oss pam pdflib perl php png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tiff truetype truetype-fonts type1-fonts usb vhosts videos vorbis www x86 xine xml xml2 xmms xv zlib video_cards_nvidia linguas_de userland_GNU kernel_linux elibc_glibc" Unset: ASFLAGS, CTARGET, LC_ALL, LDFLAGS
I have changed the ebuild to reflect that it won't compile with anything greater then rrdtool-1.0. ( I did check against the latest 1.2 but same problem). This needs to be resolved upstream but the change should stop users feeling any pain.
hmm ? I am sorry when I don't understand that fix yet. Perhaps you could help me. That error persisted since a few months and I hoped somebody else would detect it :-) I am still not sure about which ebuild was changed when ... If it is in the gentoo repository, i will see it tomorrow. The info is: py-rrdtool needs rrdtool-1.0* emerge --nodeps -uv "<rrdtool-1.2" emerge --nodeps py-rrdtool hmm ;-) is that really a good solution ? Anyway, thanks for the fast reaction.
the change is in CVS so you won't see it for a few hours. My change was basically to make it so that py-rrdtool blocks against rrdtool-1.2 and require 1.0. That said the real solution is to modify py-rrdtool to make it use the new rrdtool, but that is something that is outside the scope of gentoo and should be taken up with the py-rrdtool devs.
*** Bug 114792 has been marked as a duplicate of this bug. ***