Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 106650 - pystatgrab-0.3 fails to compile
Summary: pystatgrab-0.3 fails to compile
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-20 00:12 UTC by Alexander Jenisch
Modified: 2005-11-24 14:13 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alexander Jenisch 2005-09-20 00:12:13 UTC
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.4
copying statgrab.py -> build/lib.linux-x86_64-2.4
running build_ext
building '_statgrab' extension
creating build/temp.linux-x86_64-2.4
x86_64-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -O2 -march=k8
-msse2 -pipe -ftracer -fPIC -I/usr/include/python2.4 -c _statgrab.c -o
build/temp.linux-x86_64-2.4/_statgrab.o
_statgrab.c: In function `__pyx_f_9_statgrab_py_sg_get_network_iface_stats':
_statgrab.c:1998: error: structure has no member named `dup'
error: command 'x86_64-pc-linux-gnu-gcc' failed with exit status 1


root@eNTi $ emerge info
Portage 2.0.52-r1 (default-linux/amd64/2005.1, gcc-3.4.4, glibc-2.3.5-r1,
2.6.13-gentoo x86_64)
=================================================================
System uname: 2.6.13-gentoo x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.12.0_pre8
dev-lang/python:     2.3.4-r1, 2.4.1-r1
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=k8 -msse2 -pipe -ftracer"
CHOST="x86_64-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/lib64/mozilla/defaults/pref /usr/share/config
/var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/splash /etc/terminfo /etc/texmf/web2c
/etc/env.d"
CXXFLAGS="-O2 -march=k8 -msse2 -pipe -ftracer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages sandbox sfperms strict"
GENTOO_MIRRORS="http://gentoo.inode.at/ ftp://gentoo.inode.at/source/
http://gd.tuwien.ac.at/opsys/linux/gentoo/
ftp://gd.tuwien.ac.at/opsys/linux/gentoo/"
LC_ALL="en_US.UTF-8"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="amd64 X Xaw3d alsa apache2 audiofile avi bash-completion berkdb
bitmap-fonts browserplugin bzip2 cdda crypt ctype cups curl dga dts dvd dvdread
eds emboss encode ethereal fam ffmpeg flac foomaticdb fortran freetype ftp gd
gdbm gif gphoto2 gpm gstreamer gtk gtk2 hal icq imagemagick imlib ipv6 ithreads
java javascript jpeg junit kde kdeenablefinal libwww lm_sensors lzw lzw-tiff mad
maildir matroska mikmod mime mmap mng mozilla mp3 mpeg mysql ncurses nls nptl
nvidia offensive ogg oggvorbis openal opengl oss pam pdflib perl png posix ppds
python qt quicktime readline real rtc samba sdl sndfile sockets sqlite ssl
stream tcpd tetex theora threads tiff truetype truetype-fonts type1-fonts
unicode usb userlocales videos vorbis wxwindows xine xml2 xmms xosd xpm xv xvid
zlib userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LDFLAGS, LINGUAS
Comment 1 Christopher Covington 2005-09-20 15:33:16 UTC
exact same deal on my x86:
>>> Unpacking pystatgrab-0.3.tar.gz to /var/tmp/portage/pystatgrab-0.3/work
>>> Source unpacked.
running build
running build_py
creating build
creating build/lib.linux-i686-2.4
copying statgrab.py -> build/lib.linux-i686-2.4
running build_ext
building '_statgrab' extension
creating build/temp.linux-i686-2.4
i686-pc-linux-gnu-gcc -pthread -fno-strict-aliasing -DNDEBUG -march=pentium4 -O3
-pipe -fomit-frame-pointer -fPIC -I/usr/include/python2.4 -c _statgrab.c -o
build/temp.linux-i686-2.4/_statgrab.o
_statgrab.c: In function `__pyx_f_9_statgrab_py_sg_get_network_iface_stats':
_statgrab.c:1998: error: structure has no member named `dup'
error: command 'i686-pc-linux-gnu-gcc' failed with exit status 1

!!! ERROR: dev-python/pystatgrab-0.3 failed.
!!! Function distutils_src_compile, Line 35, Exitcode 1
!!! compilation failed

Portage 2.0.52-r1 (default-linux/x86/2005.0, gcc-3.3.4, glibc-2.3.5-r1,
2.6.12-reiser4-r6 i686)
=================================================================
System uname: 2.6.12-reiser4-r6 i686 Intel(R) Celeron(R) CPU 1.70GHz
Gentoo Base System version 1.12.0_pre8
ccache version 2.4 [enabled]
dev-lang/python:     2.3.5, 2.4.1-r1
sys-apps/sandbox:    1.2.13
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
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=pentium4 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo
http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/
http://gentoo.chem.wisc.edu/gentoo/ http://gentoo.math.bme.hu
http://mirror.datapipe.net/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="x86 3ds X a52 aac aalib acpi aim alsa amd apache2 asm asterisk avi
bash-completion berkdb bitmap-fonts bl bonobo browserplugin calendar cddb
cdparanoia cdr chroot crypt css cups curl curlwrappers dbase dedicated dga doc
dts dv dvd dvdr dvdread editor eds emboss encode esd exif fam festival firefox
flac font-server foomaticdb fortran fpx ftp gd gdbm geoip gif gimp gimpprint
glep glx gmail gmailtimestamps gnutls gphoto2 gpm graphviz gstreamer gtk2
gtkhtml guile hal http httpd image imagemagick imlib irc jabber java javascript
jbig jce jikes jp2 jpeg jpeg2k lcms libcaca libclamav libg++ libwww mad
mapeditor maps mbrola md5sum mikmod ming mixer mjpeg mng motif mozcalendar
mozdevelop mozilla mozsvg mp3 mpeg mpeg4 mplayer msn music mysql nas ncurses net
network nls no-old-linux nocd nptl nptlonly ntlm nvidia oav offensive ofx ogg
oggvorbis openal openexr opengl oscar oss pam pam-mysql pdflib perl plotutils
png posix ppds python qt quicktime rar readline real reiserfs rhythmbox rogue
rss ruby samba screen sdl server sharedmem shorten silc simplexml slang slp
smime sockets speex spell sql ssl subtitles svg symlink syslog sysvipc tcltk
tcpd tga theora tidy tiff truetype truetype-fonts type1-fonts unicode utf8 vcd
videos vorbis wmf xine xml xml2 xmms xpm xprint xv xvid xvmc yahoo zlib
userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 2 Vinicius Baggio 2005-10-16 16:08:17 UTC
pystatgrab will only compile sucessfully if you have =libstatgrab-0.11 or below.
(tested)

if you want to use libstatgrab-0.12 you must install pystatgrab-0.4 from the
author`s website.
Comment 3 revertex 2005-11-08 17:23:43 UTC
i had just copied the pystatgrab-0.3 ebuild to my portage overlay as
pystatgrab-0.4 as usual, the bumped version works fine (at least for me), dunno
why it isn't fixed yet.
Comment 4 Alexander Jenisch 2005-11-24 11:24:19 UTC
just update the version to 0.4 in cvs and we are set.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2005-11-24 11:31:25 UTC
@Alexander: Please, don't re-assign bugs back to bug-wranglers.

@dams: Please, remove yourself (and perl herd) from metadata.xml, apparently a
mistake it seems.

@python: bump please ;)
Comment 6 Marien Zwart (RETIRED) gentoo-dev 2005-11-24 14:13:46 UTC
Bumped, thanks for the report.