Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 37967 - ogle-gui-0.9.2 always builds against >gtk+-2.0 ?
Summary: ogle-gui-0.9.2 always builds against >gtk+-2.0 ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-12 06:31 UTC by Jason Stubbs (RETIRED)
Modified: 2004-05-11 23:42 UTC (History)
0 users

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 Jason Stubbs (RETIRED) gentoo-dev 2004-01-12 06:31:31 UTC
i recently pruned my world file and ran depclean (no use flags had been removed since installation) and found that ogle-gui no longer worked. Being a kde'er, I have no idea about gtk/gnome apps but I ran through the procedure outlined below to find that configure would not complete without pango and atk. ogle worked correctly afterward.

Portage 2.0.49-r20 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20031222-r0, 2.6.1-rc1)
=================================================================
System uname: 2.6.1-rc1 i686 mobile AMD Athlon(tm) XP 1800+
Gentoo Base System version 1.4.3.12
ccache version 2.3 [enabled]
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache fixpackages sandbox"
GENTOO_MIRRORS="ftp://gg3.net/pub/linux/gentoo http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/home/portage"
SYNC="rsync://gg3.net/gentoo-portage"
USE="x86 3dnow X alsa arts berkdb canna cdr cjk crypt dvd encode freewnn gif gtk imlib java jpeg kde mmx motif mpeg ncurses nls oggvorbis opengl oss pam png qt readline sasl spell sse ssl tcpd truetype unicode usb xinerama xv linguas_ja"


bash-2.05b$ ogle
ogle_gui: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory
bash-2.05b$ su
Password:
bash-2.05b# emerge -p ogle

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] media-video/ogle-0.9.2

bash-2.05b# emerge -p ogle-gui

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild   R   ] media-video/ogle-gui-0.9.2

bash-2.05b# emerge ogle ogle-gui
Calculating dependencies ...done!
>>> emerge (1 of 2) media-video/ogle-0.9.2 to /

<-- snip -->

>>> emerge (2 of 2) media-video/ogle-gui-0.9.2 to /
>>> md5 src_uri ;-) ogle_gui-0.9.2.tar.gz
>>> Unpacking source...
>>> Unpacking ogle_gui-0.9.2.tar.gz to /var/tmp/portage/ogle-gui-0.9.2/work
>>> Source unpacked.
 * Patching ${S}/ltmain.sh...
 *   Applying portage-1.4.1.patch...
 *   Applying relink-1.4.1.patch...
 *   Applying sed-1.4.3.patch...
 *   Applying test-1.4.1.patch...
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes

<-- snip -->

checking for pkg-config... /usr/bin/pkg-config
checking for gtk+-2.0... Package pangoxft was not found in the pkg-config search path.
Perhaps you should add the directory containing `pangoxft.pc'
to the PKG_CONFIG_PATH environment variable
Package 'pangoxft', required by 'GDK', not found

configure: error: Library requirements (gtk+-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

!!! ERROR: media-video/ogle-gui-0.9.2 failed.
!!! Function econf, Line 339, Exitcode 1
!!! econf failed

bash-2.05b# emerge -ep ogle-gui

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[ebuild  N    ] sys-devel/gettext-0.12.1
[ebuild  N    ] sys-devel/gnuconfig-20030708
[ebuild  N    ] sys-devel/libtool-1.4.3-r3
[ebuild  N    ] sys-devel/m4-1.4-r1
[ebuild  N    ] sys-devel/bison-1.875
[ebuild  N    ] sys-apps/sed-4.0.8
[ebuild  N    ] sys-apps/texinfo-4.6
[ebuild  N    ] sys-libs/zlib-1.2.1-r2
[ebuild  N    ] dev-python/python-fchksum-1.7.1
[ebuild  N    ] app-arch/bzip2-1.0.2-r3
[ebuild  N    ] app-shells/bash-2.05b-r9
[ebuild  N    ] sys-libs/readline-4.3-r5
[ebuild  N    ] dev-libs/openssl-0.9.7c-r1
[ebuild  N    ] dev-libs/expat-1.95.7
[ebuild  N    ] dev-lang/python-2.3.3
[ebuild  N    ] dev-java/java-config-1.2.1-r1
[ebuild  N    ] dev-java/blackdown-jdk-1.4.1
[ebuild  N    ] sys-libs/db-4.1.25_p1-r3
[ebuild  N    ] sys-apps/groff-1.18.1-r4
[ebuild  N    ] sys-devel/libperl-5.8.2
[ebuild  N    ] dev-lang/perl-5.8.2-r1
[ebuild  N    ] sys-devel/autoconf-2.58
[ebuild  N    ] sys-devel/automake-1.7.8
[ebuild  N    ] sys-apps/cronbase-0.2.1-r3
[ebuild  N    ] sys-apps/man-1.5m
[ebuild  N    ] sys-apps/help2man-1.29
[ebuild  N    ] sys-libs/libtermcap-compat-2.0.8
[ebuild  N    ] sys-apps/coreutils-5.0.91-r4
[ebuild  N    ] sys-apps/debianutils-1.16.7-r4
[ebuild  N    ] sys-apps/portage-2.0.49-r21
*** Please update portage to the above version before proceeding.
    Failure to do so may result in failed or improper merges.
    A simple 'emerge -u portage' is sufficient.

[ebuild  N    ] sys-devel/gcc-config-1.3.4
[ebuild  N    ] sys-devel/binutils-2.14.90.0.7-r3
[ebuild  N    ] sys-devel/gcc-3.3.2-r5
[ebuild  N    ] sys-apps/gawk-3.1.3-r1
[ebuild  N    ] sys-kernel/linux-headers-2.4.21-r1
[ebuild  N    ] app-crypt/hashalot-0.1.0
[ebuild  N    ] sys-devel/flex-2.5.4a-r5
[ebuild  N    ] dev-libs/glib-1.2.10-r5
[ebuild  N    ] sys-apps/miscfiles-1.3-r1
[ebuild  N    ] sys-libs/cracklib-2.7-r8
[ebuild  N    ] sys-libs/pam-0.77
[ebuild  N    ] sys-apps/shadow-4.0.3-r9
[ebuild  N    ] sys-apps/pam-login-3.14
[ebuild  N    ] sys-apps/util-linux-2.12-r4
[ebuild  N    ] sys-apps/baselayout-1.8.6.12-r3
[ebuild  N    ] sys-libs/glibc-2.3.3_pre20031222
[ebuild  N    ] sys-devel/patch-2.5.9
[ebuild  N    ] sys-libs/ncurses-5.3-r4
[ebuild  N    ] dev-libs/libxml-1.8.17-r2
[ebuild  N    ] media-libs/libpng-1.2.5-r4
[ebuild  N    ] x11-base/opengl-update-1.5
[ebuild  N    ] media-libs/freetype-2.1.5
[ebuild  N    ] x11-misc/ttmkfdir-3.0.9-r1
[ebuild  N    ] app-arch/unzip-5.50-r2
[ebuild  N    ] sys-apps/ed-0.2-r3
[ebuild  N    ] media-libs/fontconfig-2.2.1
[ebuild  N    ] app-arch/cabextract-0.6
[ebuild  N    ] x11-base/xfree-4.3.0-r3
[ebuild  N    ] media-libs/audiofile-0.2.5
[ebuild  N    ] sys-apps/tcp-wrappers-7.6-r8
[ebuild  N    ] media-libs/alsa-lib-1.0.0_rc2-r1
[ebuild  N    ] media-sound/esound-0.2.32
[ebuild  N    ] sys-libs/db-1.85-r1
[ebuild  N    ] gnome-base/ORBit-0.5.17
[ebuild  N    ] dev-util/intltool-0.27.2
[ebuild  N    ] x11-libs/gtk+-1.2.10-r10
[ebuild  N    ] media-libs/jpeg-6b-r3
[ebuild  N    ] media-libs/tiff-3.6.0
[ebuild  N    ] media-libs/giflib-4.1.0-r3
[ebuild  N    ] media-libs/imlib-1.9.14-r1
[ebuild  N    ] gnome-base/gnome-libs-1.4.2
[ebuild  N    ] gnome-base/libglade-0.17-r6
[ebuild  N    ] dev-libs/libxml2-2.6.3
[ebuild  N    ] media-libs/libdvdcss-1.2.8
[ebuild  N    ] media-libs/libmad-0.15.0b-r1
[ebuild  N    ] media-libs/libid3tag-0.15.0b
[ebuild  N    ] media-sound/madplay-0.15.0b-r1
[ebuild  N    ] media-sound/mad-0.15.0b
[ebuild  N    ] media-libs/a52dec-0.7.4
[ebuild  N    ] media-libs/libdvdread-0.9.4
[ebuild  N    ] media-video/ogle-0.9.2
[ebuild  N    ] media-video/ogle-gui-0.9.2

bash-2.05b# emerge pango
Calculating dependencies ...done!
>>> emerge (1 of 1) x11-libs/pango-1.2.5-r1 to /

<-- snip -->

bash-2.05b# emerge ogle-gui
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/ogle-gui-0.9.2 to /
>>> md5 src_uri ;-) ogle_gui-0.9.2.tar.gz
>>> Unpacking source...
>>> Unpacking ogle_gui-0.9.2.tar.gz to /var/tmp/portage/ogle-gui-0.9.2/work
>>> Source unpacked.
 * Patching ${S}/ltmain.sh...
 *   Applying portage-1.4.1.patch...
 *   Applying relink-1.4.1.patch...
 *   Applying sed-1.4.3.patch...
 *   Applying test-1.4.1.patch...
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes

<-- snip -->

checking for pkg-config... /usr/bin/pkg-config
checking for gtk+-2.0... Package atk was not found in the pkg-config search path.
Perhaps you should add the directory containing `atk.pc'
to the PKG_CONFIG_PATH environment variable
Package 'atk', required by 'GTK+', not found

configure: error: Library requirements (gtk+-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

!!! ERROR: media-video/ogle-gui-0.9.2 failed.
!!! Function econf, Line 339, Exitcode 1
!!! econf failed

bash-2.05b# emerge atk
Calculating dependencies ...done!
>>> emerge (1 of 1) dev-libs/atk-1.4.1 to /

<-- snip -->

bash-2.05b# emerge ogle-gui
Calculating dependencies ...done!
>>> emerge (1 of 1) media-video/ogle-gui-0.9.2 to /
>>> md5 src_uri ;-) ogle_gui-0.9.2.tar.gz
>>> Unpacking source...
>>> Unpacking ogle_gui-0.9.2.tar.gz to /var/tmp/portage/ogle-gui-0.9.2/work
>>> Source unpacked.
 * Patching ${S}/ltmain.sh...
 *   Applying portage-1.4.1.patch...
 *   Applying relink-1.4.1.patch...
 *   Applying sed-1.4.3.patch...
 *   Applying test-1.4.1.patch...
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes

<-- snip -->

checking for pkg-config... /usr/bin/pkg-config
checking for gtk+-2.0... yes
checking GTK_CFLAGS... -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include
checking GTK_LIBS... -Wl,--export-dynamic -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0

<-- snip -->
Comment 1 Patrick Kursawe (RETIRED) gentoo-dev 2004-05-11 10:24:46 UTC
I don't think ogle really needs this - it is a missing dependency of some package ogle depends on. My ogle_gui binary does not link to any of these libs. Bouncing back to bug-wranglers.
Comment 2 Jason Stubbs (RETIRED) gentoo-dev 2004-05-11 17:35:01 UTC
I should have picked it up before, but I didn't (and still don't have) gtk2 in my use flags. I think the following happened to create my situation:

* Installed package requiring gtk+-2*
* Installed ogle-gui
* Removed package requiring gtk+-2*
* Depclean
* Ogle-gui breaks

The fact that gtk+-2.4.1 depends on x11-libs/pango and dev-libs/atk and depclean got rid of them (without getting rid of gtk+-2*) is another matter.

Trying to reproduce this bug, I got:

checking for gtk+-2.0... Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found

configure: error: Library requirements (gtk+-2.0) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them.

USE="x86 3dnow X alsa arts avi cdr cjk crypt dvd encode gif jpeg kde mad mmx mpeg nls nptl oggvorbis opengl oss pam png quicktime readline sse ssl tiff truetype xinerama xv zlib linguas_ja"
Comment 3 Patrick Kursawe (RETIRED) gentoo-dev 2004-05-11 23:42:34 UTC
It looks like the configure script is sufficiently braindead to think that --disable-gtk2 should enable gtk2 support. When you really compile against gtk1, you don't need pango or atk. CVS revision 1.3 should fix this.