Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 224039 - gtk-vnc-0.3.6 fails to build
Summary: gtk-vnc-0.3.6 fails to build
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
: 224069 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-05-29 02:36 UTC by Wilbur Pan
Modified: 2011-05-20 03:06 UTC (History)
2 users (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 Wilbur Pan 2008-05-29 02:36:27 UTC
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 Ian Abbott 2008-05-29 09:27:40 UTC
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 Ian Abbott 2008-05-29 10:31:12 UTC
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 Ian Abbott 2008-05-29 10:41:19 UTC
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 Wilbur Pan 2008-05-29 10:47:52 UTC
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 Rémi Cardona (RETIRED) gentoo-dev 2008-05-29 16:05:41 UTC
*** Bug 224069 has been marked as a duplicate of this bug. ***
Comment 6 dan 2009-10-01 04:00:59 UTC
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 dan 2009-10-01 04:02:28 UTC
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.
Comment 8 Peter 2011-05-20 03:06:01 UTC
I get this with farsight 2.0 and python2.7, I'll reemerge pygtk I guess, but its still a bug.  I don't know about gtk-vnc, but the bug is still there.