Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 299961

Summary: dev-python/pygobject-2.18.0 broken compilation
Product: Gentoo Linux Reporter: Alexander Polozov <Apolozov>
Component: [OLD] DevelopmentAssignee: Gentoo Linux Gnome Desktop Team <gnome>
Status: RESOLVED INVALID    
Severity: normal CC: python
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: It is

Description Alexander Polozov 2010-01-06 21:38:57 UTC
pygiochannel.c: In function 'py_io_channel_read_chars':                                                  
pygiochannel.c:211: warning: implicit declaration of function 'PyUnicode_AsString'                       
pygiochannel.c:211: warning: assignment makes pointer from integer without a cast                        
pygiochannel.c: In function 'py_io_channel_write_lines':                                                 
pygiochannel.c:286: warning: implicit declaration of function 'PyUnicode_AsStringAndSize'                
pygiochannel.c: In function 'pyglib_iochannel_register_types':                                           
pygiochannel.c:734: error: 'PyTypeObject' has no member named 'tp_compare'                               
pygiochannel.c:734: error: 'cmpfunc' undeclared (first use in this function)                             
pygiochannel.c:734: error: (Each undeclared identifier is reported only once                             
pygiochannel.c:734: error: for each function it appears in.)                                             
pygiochannel.c:734: error: expected ';' before 'py_io_channel_compare'                                   
pyglib.c: In function 'pyglib_init':                                                                     
pyglib.c:64: warning: implicit declaration of function 'PyUnicode_AsString'                              
pyglib.c: In function 'pyglib_gerror_exception_check':                                                   
pyglib.c:361: warning: passing argument 1 of 'g_quark_from_string' makes pointer from integer without a cast                                                                                                      
/usr/include/glib-2.0/glib/gquark.h:44: note: expected 'const gchar *' but argument is of type 'int'     
pyglib.c:362: warning: passing argument 4 of 'g_set_error' makes pointer from integer without a cast     
/usr/include/glib-2.0/glib/gerror.h:66: note: expected 'const gchar *' but argument is of type 'int'     
pyglib.c:362: warning: format not a string literal and no format arguments                               
pyglib.c:371: warning: format not a string literal and no format arguments                               
pyglib.c: At top level:                                                                                  
pyglib.c:35: warning: 'pyglib_thread_state_tls_key' defined but not used                                 
glibmodule.c: In function 'pyglib_set_application_name':                                                 
glibmodule.c:550: warning: implicit declaration of function 'PyString_Check'                             
glibmodule.c:553: warning: implicit declaration of function 'PyString_AS_STRING'                         
glibmodule.c:556: warning: passing argument 1 of 'g_set_application_name' makes pointer from integer without a cast                                                                                               
/usr/include/glib-2.0/glib/gutils.h:128: note: expected 'const gchar *' but argument is of type 'int'    
glibmodule.c: In function 'pyglib_set_prgname':                                                          
glibmodule.c:583: warning: passing argument 1 of 'g_set_prgname' makes pointer from integer without a cast                                                                                                        
/usr/include/glib-2.0/glib/gutils.h:126: note: expected 'const gchar *' but argument is of type 'int'    
make[2]: *** [_glib_la-pygiochannel.lo] Error 1                                                          
make[2]: *** Waiting for unfinished jobs....                                                             
make[2]: Leaving directory `/var/tmp/portage/dev-python/pygobject-2.18.0/work/pygobject-2.18.0/glib'     
make[1]: *** [all-recursive] Error 1                                                                     
make[1]: Leaving directory `/var/tmp/portage/dev-python/pygobject-2.18.0/work/pygobject-2.18.0'          
make: *** [all] Error 2                                                                                  
 * ERROR: dev-python/pygobject-2.18.0 failed:

Reproducible: Always

Steps to Reproduce:
1.emerge -uND world
2.emerge -1 pygobject
3.




Portage 2.1.7.16 (default/linux/amd64/10.0/desktop, gcc-4.4.2, glibc-2.11-r1, 2.6.31-gentoo-r6 x86_64)   
=================================================================                                        
System uname: Linux-2.6.31-gentoo-r6-x86_64-Intel-R-_Core-TM-2_Duo_CPU_E6550_@_2.33GHz-with-gentoo-2.0.1 
Timestamp of tree: Wed, 06 Jan 2010 07:00:01 +0000                                                       
app-shells/bash:     4.0_p35                                                                             
dev-java/java-config: 2.1.9-r2                                                                           
dev-lang/python:     2.6.4, 3.1.1-r1                                                                     
dev-util/cmake:      2.8.0                                                                               
sys-apps/baselayout: 2.0.1                                                                               
sys-apps/openrc:     0.6.0                                                                               
sys-apps/sandbox:    2.2                                                                                 
sys-devel/autoconf:  2.13, 2.63-r1                                                                       
sys-devel/automake:  1.9.6-r2, 1.10.3                                                                    
sys-devel/binutils:  2.20                                                                                
sys-devel/gcc-config: 1.4.1                                                                              
sys-devel/libtool:   2.2.6b                                                                              
virtual/os-headers:  2.6.30-r1                                                                           
ACCEPT_KEYWORDS="amd64"                                                                                  
ACCEPT_LICENSE="* -@EULA Nero-EULA-US dlj-1.1"                                                           
CBUILD="x86_64-pc-linux-gnu"                                                                             
CFLAGS="-Os -march=core2 -pipe"                                                                          
CHOST="x86_64-pc-linux-gnu"                                                                              
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"                                               
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"                                 
CXXFLAGS="-Os -march=core2 -pipe"                                                                        
DISTDIR="/usr/portage/distfiles"                                                                         
FEATURES="assume-digests distlocks fixpackages metadata-transfer news protect-owned sfperms strict unmerge-logs unmerge-orphans userfetch userpriv"                                                               
GENTOO_MIRRORS="ftp://mirror.yandex.ru/gentoo-distfiles ftp://de-mirror.org/distro/gentoo http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo ftp://ftp.free.fr/mirrors/ftp.gentoo.org "
LANG="ru_RU.UTF-8"
LDFLAGS="-Wl,-O1"
LINGUAS="ru"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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"
PORTDIR_OVERLAY="/usr/local/portage/layman/rusxmms /usr/local/portage/layman/wirelay /usr/local/portage/layman/panic"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="7zip X a52 aac accessibility acpi akode alsa amd64 ao ape archive aspell bash-completion bluetooth bzip2 cairo cdr chardet chm cleartype cli consolekit cracklib crypt css cups cxx dbus dhclient dhcp djvu dri dts dvb dvd dvdr dvdread embedded emboss enca encode evo exif external-ffmpeg extrafilters fam fbcon ffmpeg firefox flac fontconfig fortran geolocation gif glib glibc-omitfp glitz gnutls gphoto2 hal iconv java java6 jpeg jpeg2k kde lastfm lcms lensfun libnotify lm_sensors lzma lzo matroska mikmod mmap mmx mmxext mng modules mp3 mp4 mpeg mudflap multilib musepack mysql ncurses nls nptl nptlonly nsplugin nvidia ogg opengl openmp optimisememory oscar pam pch pcre pda pdf pmu png ppds pppd python3 qt3support qt4 quicktime rar rcc readline reflection serial session slang spell spl srt sse sse2 ssl ssse3 startup-notification subversion svg sysfs taglib tcpd theora threads thunar timidity truetype unicode usb vdpau vorbis wavpack webkit x264 xcb xcomposite xine xml xorg xulrunner xv 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 mmap_emul 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" CAMERAS="ptp2" ELIBC="glibc" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2010-01-06 22:28:30 UTC
please attach full build.log
Comment 2 Alexander Polozov 2010-01-07 06:40:12 UTC
Created attachment 215480 [details]
It is
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-07 14:56:30 UTC
Setting Python 3 as main active Python version is not yet supported.
Comment 4 Alexander Polozov 2010-01-08 06:26:20 UTC
Will it be fixed for python-3?
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-01-08 14:11:15 UTC
(In reply to comment #4)
> Will it be fixed for python-3?

Addition of support for Python 3 in pygobject should be performed by pygobject upstream, not downstream maintainers.
Ebuilds of >=dev-python/pygobject-2.18.0-r1 contain appropriate changes, which cause that this package is built for enabled version(s) of Python 2 even when Python 3 is set as main active version of Python.