Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 224039
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Gentoo Linux bug wranglers <bug-wranglers@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Wilbur Pan <wpan03@gmail.com>
Add CC:
CC:
Remove selected CCs
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 224039 depends on: Show dependency tree
Bug 224039 blocks:
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-05-29 02:36 0000
emerging gtk-vnc-0.3.6 fails to build with this error:

 i686-pc-linux-gnu-gcc -std=gnu99 -DHAVE_CONFIG_H -I. -I..
-I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0
-I/usr/include/cairo -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/freetype2 -I/usr/include/libpng12
-I/usr/include/pixman-1 -I/usr/include/gtkglext-1.0
-I/usr/lib/gtkglext-1.0/include -I/usr/include/gtk-2.0
-I/usr/lib/gtk-2.0/include -I/usr/include/pango-1.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -I/usr/include/cairo -I/usr/include/freetype2
-I/usr/include/libpng12 -I/usr/include/pixman-1 -I/usr/include/atk-1.0
-I/usr/include/python2.5 -I/usr/include/pygtk-2.0 -I/usr/include/glib-2.0
-I/usr/lib/glib-2.0/include -O2 -march=prescott -pipe -MT
gtkvnc_la-vncmodule.lo -MD -MP -MF .deps/gtkvnc_la-vncmodule.Tpo -c vncmodule.c
-o gtkvnc_la-vncmodule.o >/dev/null 2>&1
mv -f .deps/gtkvnc_la-vncmodule.Tpo .deps/gtkvnc_la-vncmodule.Plo
pygtk-codegen-2.0 --prefix gtkvnc \
                          --register /usr/share/pygtk/2.0/defs/gdk-types.defs \
                          --register /usr/share/pygtk/2.0/defs/gtk-types.defs \
                          --override ./vnc.override vnc.defs > vncmodule.defs.c
/usr/bin/python: can't open file
'/lib/python2.5/site-packages/gtk-2.0/codegen/codegen.py': [Errno 2] No such
file or directory
make[2]: *** [vncmodule.defs.c] Error 2
make[2]: *** Waiting for unfinished jobs....
i686-pc-linux-gnu-gcc -std=gnu99 -shared  .libs/libgtk_vnc_1_0_la-d3des.o
.libs/libgtk_vnc_1_0_la-gvnc.o .libs/libgtk_vnc_1_0_la-vncdisplay.o
.libs/libgtk_vnc_1_0_la-vncmarshal.o .libs/libgtk_vnc_1_0_la-x_keymap.o
.libs/libgtk_vnc_1_0_la-coroutine_gthread.o  /usr/lib/libgtkglext-x11-1.0.so
/usr/lib/libgdkglext-x11-1.0.so /usr/lib/libGLU.so /usr/lib/libGL.so
/usr/lib/libXmu.so /usr/lib/libXt.so /usr/lib/libSM.so /usr/lib/libICE.so
/usr/lib/libgtk-x11-2.0.so /usr/lib/libpangox-1.0.so /usr/lib/libX11.so
/usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libgdk_pixbuf-2.0.so
/usr/lib/libpangocairo-1.0.so /usr/lib/libpango-1.0.so /usr/lib/libcairo.so
/usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -ldl
/usr/lib/libgnutls.so /usr/lib/libgthread-2.0.so -lrt /usr/lib/libglib-2.0.so
-lz  -pthread -march=prescott -Wl,--export-dynamic -pthread -Wl,-soname
-Wl,libgtk-vnc-1.0.so.0 -o .libs/libgtk-vnc-1.0.so.0.0.1
(cd .libs && rm -f libgtk-vnc-1.0.so.0 && ln -s libgtk-vnc-1.0.so.0.0.1
libgtk-vnc-1.0.so.0)
(cd .libs && rm -f libgtk-vnc-1.0.so && ln -s libgtk-vnc-1.0.so.0.0.1
libgtk-vnc-1.0.so)
i686-pc-linux-gnu-ar cru .libs/libgtk-vnc-1.0.a  libgtk_vnc_1_0_la-d3des.o
libgtk_vnc_1_0_la-gvnc.o libgtk_vnc_1_0_la-vncdisplay.o
libgtk_vnc_1_0_la-vncmarshal.o libgtk_vnc_1_0_la-x_keymap.o
libgtk_vnc_1_0_la-coroutine_gthread.o
i686-pc-linux-gnu-ranlib .libs/libgtk-vnc-1.0.a
creating libgtk-vnc-1.0.la
(cd .libs && rm -f libgtk-vnc-1.0.la && ln -s ../libgtk-vnc-1.0.la
libgtk-vnc-1.0.la)
make[2]: Leaving directory
`/var/tmp/portage/net-libs/gtk-vnc-0.3.6/work/gtk-vnc-0.3.6/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory
`/var/tmp/portage/net-libs/gtk-vnc-0.3.6/work/gtk-vnc-0.3.6'
make: *** [all] Error 2
 * 
 * ERROR: net-libs/gtk-vnc-0.3.6 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line  628:  Called gnome2_src_compile
 *             environment, line  552:  Called die
 * The specific snippet of code:
 *       emake || die "compile failure"
 *  The die message:
 *   compile failure
 * 
 * If you need support, post the topmost build error, and the call stack if
relevant.
 * A complete build log is located at
'/var/log/portage/net-libs:gtk-vnc-0.3.6:20080529-022601.log'.
 * The ebuild environment file is located at
'/var/tmp/portage/net-libs/gtk-vnc-0.3.6/temp/environment'.



Reproducible: Always

Steps to Reproduce:
emerge -DNuv world
Actual Results:  
gtk-vnc-0.3.6 fails to build

Expected Results:  
It builds

emerge --info:

Portage 2.1.5.2 (default-linux/x86/2007.0/desktop, gcc-4.2.4, glibc-2.7-r2,
2.6.25-gentoo-r4 i686)
=================================================================
System uname: 2.6.25-gentoo-r4 i686 Intel(R) Core(TM)2 CPU 4400 @ 2.00GHz
Timestamp of tree: Thu, 29 May 2008 01:46:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7, 2.1.6
dev-lang/python:     2.5.2-r4
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.2.4-r1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.62
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
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.25-r3
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf
/etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/terminfo
/etc/udev/rules.d"
CXXFLAGS="-O2 -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks parallel-fetch sandbox sfperms strict unmerge-orphans"
GENTOO_MIRRORS="http://gentoo.chem.wisc.edu/gentoo"
LANG="en_US"
LC_ALL="en_US"
LDFLAGS=""
LINGUAS="en"
MAKEOPTS="-j2"
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://rsync21.us.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa artworkextra automount avahi bash-completion
beagle berkdb cairo cdda cddb cdr cjk cli cracklib crypt cups curl dbus
device-mapper dri dvd dvdr dvdread eds emboss encode epiphany esd fam ffmpeg
firefox flac fortran gdbm gif gnome gnome-keyring gnomecd gpm gstreamer gtk
gtkhtml hal iconv ipv6 isdnlog java jpeg kerberos keyring ldap libnotify
loop-aes mad mdnsresponder-compat midi mikmod mmx mono mp3 mpeg mudflap
nautilus ncurses nls nptlonly nsplugin offensive ogg opengl openmp oss pam pcre
pdf perl png pppd profile python quicktime readline reflection reiserfs rtc sdl
session spell spl sse sse2 ssl svg symlink tcpd threads tiff truetype unicode
usb utils vorbis win32codecs x86 xml xorg xv xvid" 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" KERNEL="linux" LCD_DEVICES="bayrad
cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en"
USERLAND="GNU" VIDEO_CARDS="i810"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_COMPRESS,
PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

------- Comment #1 From Ian Abbott 2008-05-29 09:27:40 0000 -------
I get the same bug on x86-64 except it's looking under /lib64 instead of /lib
for the missing file.  The path needs prepending with /usr to find that file.

------- Comment #2 From Ian Abbott 2008-05-29 10:31:12 0000 -------
Running pygtk-codegen-2.0 by itself produces this error on my x86-64 system:

---------------------------------------------------------
/usr/bin/python: can't open file
'/lib64/python2.5/site-packages/gtk-2.0/codegen/codegen.py': [Errno 2] No such
file or directory
---------------------------------------------------------


pygtk-codegen-2.0 is just a script but it seems to be using an undefined
variable ${exec_prefix}:

---------------------------------------------------------
#!/bin/sh

prefix=/usr
datarootdir=${prefix}/share
datadir=/usr/share
codegendir=${exec_prefix}/lib64/python2.5/site-packages/gtk-2.0/codegen

PYTHONPATH=$codegendir
export PYTHONPATH

exec /usr/bin/python $codegendir/codegen.py "$@"
---------------------------------------------------------

This looks like a bug in the pygtk package.  I'm using 'pygtk-2.12.1-r1'.  It
looks like this bug has already been fixed - see bug #194343.

------- Comment #3 From Ian Abbott 2008-05-29 10:41:19 0000 -------
I have just run 'emerge --sync', reemerged 'pygtk-2.12.1-r1', then emerged
'gtk-vnc-0.3.6' successfully on my x86-64 system.

I think this bug can be closed.

------- Comment #4 From Wilbur Pan 2008-05-29 10:47:52 0000 -------
There was a patch added to dev-python/pygtk-2.12.1-r1 that fixes the codegen
location issue.  The version of pygtk-2.12.1-r1 that I had didn't have this
patch, but doing another emerge --sync and reemerging pygtk pulled it in, and
fixed this issue.

Although I don't know why pygtk wasn't bumped to 2.12.1-r2 for this patch.

------- Comment #5 From Rémi Cardona 2008-05-29 16:05:41 0000 -------
*** Bug 224069 has been marked as a duplicate of this bug. ***

------- Comment #6 From dan 2009-10-01 04:00:59 0000 -------
I had the same problem with pygtk-2.16.0-r1. Doing an emerge --sync, reemerging
pygtk, I still didn't have a codegen.py in my /usr/lib/python2.6 tree. Running
python-updater didn't solve this (it re-emerge boost). Once I re-emerged
pygobject, I got the codegen.py in the correct place, and all is well.

Not sure if I was doing something wrong in the first place, but it worked for
me.

------- Comment #7 From dan 2009-10-01 04:02:28 0000 -------
I had the same problem with pygtk-2.16.0-r1. 

I ran emerge --sync, and then re-emerged pygtk, I still didn't have a
codegen.py in my /usr/lib/python2.6 tree. 

Running python-updater didn't solve this (it re-emerge boost). 

To fix my problem I had to re-emerge pygobject, I got the codegen.py in the
correct place, and all is well.

I was probably doing something wrong in the first place, but it worked for me.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug