Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 507642 - dev-python/pygtk-2.24.0-r4 - .../work/pygtk-2.24.0/atkmodule.c:37:1: error: expected declaration specifiers before ‘initatk’
Summary: dev-python/pygtk-2.24.0-r4 - .../work/pygtk-2.24.0/atkmodule.c:37:1: error: e...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-14 16:39 UTC by renato gallo
Modified: 2014-04-15 02:16 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,21.17 KB, text/plain)
2014-04-14 17:47 UTC, renato gallo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description renato gallo 2014-04-14 16:39:18 UTC
/bin/sh ./libtool  --tag=CC   --mode=compile x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-python/pygtk-2.24.0-r4/work/pygtk-2.24.0 -I/usr/include/python3.3 -I/usr/include/python3.3 -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -I/var/tmp/portage/dev-python/pygtk-2.24.0-r4/work/pygtk-2.24.0/gtk  -DDISABLE_THREADING -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include  -O2 -pipe -Wall -fno-strict-aliasing -std=c9x -c -o atk_la-atkmodule.lo `test -f 'atkmodule.c' || echo '/var/tmp/portage/dev-python/pygtk-2.24.0-r4/work/pygtk-2.24.0/'`atkmodule.c
libtool: compile:  x86_64-pc-linux-gnu-gcc -DHAVE_CONFIG_H -I. -I/var/tmp/portage/dev-python/pygtk-2.24.0-r4/work/pygtk-2.24.0 -I/usr/include/python3.3 -I/usr/include/python3.3 -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/var/tmp/portage/dev-python/pygtk-2.24.0-r4/work/pygtk-2.24.0/gtk -DDISABLE_THREADING -I/usr/include/atk-1.0 -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -O2 -pipe -Wall -fno-strict-aliasing -std=c9x -c /var/tmp/portage/dev-python/pygtk-2.24.0-r4/work/pygtk-2.24.0/atkmodule.c  -fPIC -DPIC -o .libs/atk_la-atkmodule.o
/var/tmp/portage/dev-python/pygtk-2.24.0-r4/work/pygtk-2.24.0/atkmodule.c:36:1: warning: return type defaults to ‘int’ [enabled by default]
 DL_EXPORT(void)
 ^
/var/tmp/portage/dev-python/pygtk-2.24.0-r4/work/pygtk-2.24.0/atkmodule.c: In function ‘DL_EXPORT’:
/var/tmp/portage/dev-python/pygtk-2.24.0-r4/work/pygtk-2.24.0/atkmodule.c:37:1: error: expected declaration specifiers before ‘initatk’
 initatk(void)
 ^
/var/tmp/portage/dev-python/pygtk-2.24.0-r4/work/pygtk-2.24.0/atkmodule.c:48:1: error: expected ‘{’ at end of input
 }
 ^
/var/tmp/portage/dev-python/pygtk-2.24.0-r4/work/pygtk-2.24.0/atkmodule.c:48:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
Makefile:733: recipe for target 'atk_la-atkmodule.lo' failed
make: *** [atk_la-atkmodule.lo] Error 1


Reproducible: Always

Steps to Reproduce:
1. emerge pygtk
Actual Results:  
it crashes

Expected Results:  
it compiles

emerge --info
Portage 2.2.10 (default/linux/amd64/13.0/desktop/gnome/systemd, gcc-4.8.2, glibc-2.19, 3.14.0-gentoo x86_64)
=================================================================
System uname: Linux-3.14.0-gentoo-x86_64-Intel-R-_Core-TM-_i7_CPU_M_640_@_2.80GHz-with-gentoo-2.2
KiB Mem:     3908552 total,    785960 free
KiB Swap:   16777212 total,  15957408 free
Timestamp of tree: Mon, 14 Apr 2014 01:15:01 +0000
ld GNU ld (GNU Binutils) 2.24
app-shells/bash:          4.2_p46-r1
dev-java/java-config:     2.2.0
dev-lang/python:          2.6.9, 2.7.6, 3.3.5, 3.4.0
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.12.6, 1.13.4, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.7.3-r1, 4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo xevilstar x11 viprea-overlay gnome-next
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="ftp://ftp.heanet.ie/pub/gentoo/ http://ftp.heanet.ie/pub/gentoo/ rsync://ftp.heanet.ie/pub/gentoo/"
LANG="en_us.UTF-8"
LC_ALL="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /var/lib/layman/x11 /var/lib/layman/viprea-overlay /var/lib/layman/gnome-next"
SYNC="rsync://rsync.ie.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apache2 atmo autoipd avahi berkdb bidi bluetooth bluray branding bzip2 cairo cdda cddb cdr chromaprint cli colord cracklib crypt cups curl cxx dbus dc1394 dcc_video declarative dhcpcd dirac directfb dos dri dts dvb dvd dvdr eds egl emboss encode evo exif faad fam fdk firefox flac fluidsynth fontconfig fortran freerdp gbm gd gdbm gif gimp gme gnome gnome-keyring gnome-online-accounts gphoto2 gpm growl gsm gstreamer gtk gtk3 html httpd iconv icu introspection ipv6 java jemalloc jpeg jpeg2k kate laptop lcms ldap libass libcaca libkms libnotify libsamplerate libsecret libtar libtiger linsys lirc live lua mad matroska midi minizip mmx mng mod modemmanager modplug modules mp3 mp4 mpeg mtp multilib musepack mysql mysqli nautilus ncurses netapi nls nptl nsplugin odbc odbcmanual odk ogg omxil openal opencv opengl openmp optimisememory opus pam pango pcre pdf png policykit postscript ppds projectm pulseaudio python qt3support qt4 rdp readline rtsp run-as-root samba scanner schroedinger script sdl sdl-image semantic-desktop session sftp shout sid skins smp soap socialweb speex spell sql sse sse2 ssh ssl startup-notification svg systemd taglib tcpd telepathy theora tiff tracker tremor truetype twolame udev udisks unicode upnp upnp-av upower usb v4l vaapi vcdx vdpau vlm vorbis vte webkit wifi wimax wma-fixed wmf wps wxwidgets x264 xa xcb xcomposite xinerama xml xmlreader xmlrpc xmlwriter xmp xpm xv xvid zip zlib zvbi" ABI_X86="64" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-minimizer nlpsolver scripting-beanshell scripting-javascript wiki-publisher" LINGUAS="it" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, MAKEOPTS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 renato gallo 2014-04-14 16:42:33 UTC
already tried all on the link

http://forums.gentoo.org/viewtopic-t-625820-highlight-pygtk.html

with no success
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-14 17:37:11 UTC
1) Please attach the entire build log to this bug report.
Comment 3 renato gallo 2014-04-14 17:47:14 UTC
Created attachment 374920 [details]
build.log
Comment 4 renato gallo 2014-04-14 22:01:21 UTC
workaround:

ebuild /usr/portage/dev-python/pygtk/pygtk-2.24.0-r4.ebuild clean unpack && cd /var/tmp/portage/dev-python/pygtk-2.24.0-r4/work/pygtk-2.24.0 && find . -type f -print0 | xargs -0 sed -i 's/sys.prefix/(sys.prefix)/g' && ebuild /usr/portage/dev-python/pygtk/pygtk-2.24.0-r4.ebuild merge


thank you Gürkan Gür
Comment 5 renato gallo 2014-04-14 22:57:44 UTC
patch needed to make the change permanent.

(portage tries to rebuild it and the ebuild stops at the same error)
Comment 6 Alexandre Rostovtsev (RETIRED) gentoo-dev 2014-04-15 02:16:59 UTC
(In reply to renato gallo from comment #3)

You are installing an ebuild from some "xevilstar" overlay, and the overlay's author for some reason enabled support for python-3.3 in pygtk, which I believe is causing the build failure. The pygtk ebuild in portage only supports python-2.6 and 2.7.

Report this bug to the "xevilstar" overlay maintainer.