Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 12221 - emerge of gtk+-2.0.9 fails on "configure" due to pango not found.
Summary: emerge of gtk+-2.0.9 fails on "configure" due to pango not found.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High minor
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
: 12222 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-12-15 17:55 UTC by Miguel Sousa Filipe
Modified: 2003-02-04 19:42 UTC (History)
1 user (show)

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


Attachments
gkt+-2.1.2 config.log (config.log,48.34 KB, text/plain)
2002-12-21 10:23 UTC, Carlos Eberhardt
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Miguel Sousa Filipe 2002-12-15 17:55:38 UTC
checking sys/shm.h presence... yes
checking for sys/shm.h... yes
checking X11/extensions/XShm.h... yes
checking Pango flags... -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  
-Wl,--export-dynamic -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0  
checking for pango_context_new in -lpango-1.0... no
configure: error:
*** Can't link to Pango. Pango is required to build
*** GTK+. For more information see http://www.pango.org

!!! ERROR: x11-libs/gtk+-2.0.9 failed.
!!! Function econf, Line 277, Exitcode 1
!!! econf failed

emerge -s pango gives me:

*  x11-libs/pango
      Latest version available: 1.0.5
      Latest version installed: 1.0.5


important note, i downgraded from ACCEPT_KEYWORDS="~x86" .. (now this line in
make.conf is comented)
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2002-12-15 18:33:55 UTC
*** Bug 12222 has been marked as a duplicate of this bug. ***
Comment 2 foser (RETIRED) gentoo-dev 2002-12-16 09:51:27 UTC
You can't downgrade that easily, for now keep using ~gnome (gnome-2.0.3-r1).
This is not a bug really, merely an incalculated inconvenience which will
shortly marked stable.
Comment 3 Miguel Sousa Filipe 2002-12-16 19:29:12 UTC
Okay, someone said to me that the 
"pango" problems I was heaving.. with gtk+, gkrellm2, and also mozilla 
proved to be affected.. crashing constantly.. in mail, web pages..really 
everywhere.. (did strace mozilla to see where it was crashing.. and it had 
something to do with some pango libs)

the pango problems seemed to be related to the install of xft2 while I was 
following the "~x86" branch.. 

I unmerged xft2, remerged pango, and after that gtk+ and gkrellm compiled 
fine! 

so.. i'm not really having any more problems with this..
but you might be interested to know that pango and xft might cause problems 
a litle bit in every gtk app.
Comment 4 foser (RETIRED) gentoo-dev 2002-12-17 07:19:50 UTC
if you unmerge xft2 and re-emerged pango-1.0.5 you basicly don't use xft at all
anymore. Anyway, we're gonna move on to use xft2, so you better help us help you
solve your problems cause you're gonna run into them again.

I haven't seen one serious problem with xft2 so far and i doubt yours is if you
do it right.
Comment 5 Carlos Eberhardt 2002-12-17 07:58:50 UTC
I have the ACCEPT_KEYWORDS = ~x86 line in my /etc/make.conf file and I am seeing
the same error:
checking Pango flags... -I/usr/include/pango-1.0 -I/usr/include/freetype2
-I/usr/X11R6/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include  
-Wl,--export-dynamic -lpangoxft-1.0 -lpangox-1.0 -lpango-1.0 -lgobject-2.0
-lgmodule-2.0 -ldl -lglib-2.0  
checking for pango_context_new in -lpango-1.0... no
configure: error:
*** Can't link to Pango. Pango is required to build
*** GTK+. For more information see http://www.pango.org

!!! ERROR: x11-libs/gtk+-2.1.2 failed.
!!! Function econf, Line 11, Exitcode 1
!!! econf failed

Comment 6 foser (RETIRED) gentoo-dev 2002-12-17 08:20:18 UTC
you have emerged xft-2* -> pango-1.1* -> gtk-2.1* ?
Comment 7 Miguel Sousa Filipe 2002-12-17 10:51:04 UTC
hi, okay.. i wanna fix this the proper way.. cause mozilla without xft really is
ugly.
i'm now following the "stable" branch, in wich the available versions are:
*  x11-libs/xft [ Masked ]
      Latest version available: 2.0.1
      Latest version installed: [ Not Installed ]
*  x11-libs/pango
      Latest version available: 1.0.5
      Latest version installed: 1.0.5
*  x11-libs/gtk+-2.0.9

now.. what to you sugest that I do to set this right.. 
I might be missing something since when I was in "stable" before moving to the
"devel(~x86)" branch mozilla wasn't like this..


since what foser said makes sense.. I wanna help you helping me.. to put xft2 +
pango working okay here!

Miguel.
Comment 8 foser (RETIRED) gentoo-dev 2002-12-17 11:00:55 UTC
For gnome it is best to keep using the testing branch atm if you have installed
xft/gnome2.1 packs before -> gnome-2.0.3-r1 and it's deps .
Comment 9 Miguel Sousa Filipe 2002-12-17 22:02:30 UTC
I did a gnome instalation using the "~x86" branch.. all fine but:

I have a small problem.. some themes look alike, all with window decorations
white, black fonts and no "relev
Comment 10 Miguel Sousa Filipe 2002-12-17 22:02:30 UTC
I did a gnome instalation using the "~x86" branch.. all fine but:

I have a small problem.. some themes look alike, all with window decorations
white, black fonts and no "relevé" (3d feel). What can this be?

and.. where should I post the instabily problems with mozilla?
they're back.. sometimes it crashes.. 
Comment 11 Carlos Eberhardt 2002-12-18 16:14:29 UTC
First off, sorry for hijacking this bug, I didn't notice the version numbers.
Should I open a new one for gtk+-2.1.2 ?

> you have emerged xft-2* -> pango-1.1* -> gtk-2.1* ?

Yup:
root # emerge -p xft pango gtk+
These are the packages that I would merge, in order.
Calculating dependencies ...done!
[ebuild   R  ] x11-libs/xft-2.0.1 
[ebuild   R  ] x11-libs/pango-1.1.3 
[ebuild    U ] x11-libs/gtk+-2.1.2 [2.0.9-r0]

Here's emerge info:
root # emerge info
Portage 2.0.45-r5 (default-1.0, gcc-2.95.3, glibc-2.2.5-r7)
=================================================================
System uname: 2.4.20-ac2 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
USE="x86 oss 3dnow apm avi crypt cups encode jpeg kde libg++ mikmod mmx 
mpeg ncurses pdflib qtmt quicktime spell truetype xml2 xmms xv alsa 
berkdb bonobo cdr esd gdbm ggi gif gnome gnome-libs gpm gtk gtkhtml 
guile imlib java libwww motif mozilla mysql nls oggvorbis opengl pam 
perl png python qt readline sdl slang ssl svga tcltk tcpd tiff X -arts"
ARCH="x86"
COMPILER=""
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=i686 -O3 -pipe"
CXXFLAGS="-march=i686 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
MAKEOPTS="-j2"
JDK_HOME="/opt/blackdown-jdk-1.3.1"
JAVA_HOME="/opt/blackdown-jdk-1.3.1"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
GENTOO_MIRRORS="http://www.ibiblio.org/pub/Linux/distributions/gentoo"

I haven't been paying attention to my gnome stuff lately, since I switched over
to waimea. Could it be a gnome ebuild upgrade/downgrade that's causing the
trouble somehow?
Comment 12 Carlos Eberhardt 2002-12-18 22:44:15 UTC
Downgrading from xft-2.0.1 to xft-2.0-r1 solved this problem for me. 
Comment 13 foser (RETIRED) gentoo-dev 2002-12-19 06:05:43 UTC
carlos : Isn't it just the re-emerge of xft-2 that solves it ? This is important
to us, to know about possible problems that 2.0.1 gives and 2.0 doesnt.

m3thos : try reemerging your gtk theme engines.
Comment 14 Carlos Eberhardt 2002-12-19 08:18:10 UTC
Just remerging xft did not solve my problems. gtk+ would still complain about
pango_context_new. Downgrading did get gtk+ to build, along with other gtk-ish
things. However, I'm now getting X errors "BadLength (poly request to large or
internal Xlib error)" whenever I try to run anything that was linked against the
new gtk... freecell for example (more severely, gdm), so I'm not sure I'd still
say that downgrading xft actually solved the problem, maybe it just moved it.
Comment 15 Carlos Eberhardt 2002-12-19 08:25:41 UTC
additional info:

I unmasked xft-2.0.1 and emerged it, and now instead of those "BadLength"
errors, I am getting the following (using freecell as an example of a gtk app):

freecell: relocation error: /usr/lib/libXft.so.2: undefined symbol:
XRenderQuerySubpixelOrder

Not sure if that info helps, but there you go. ;)
Comment 16 foser (RETIRED) gentoo-dev 2002-12-19 08:38:22 UTC
What xfree are you running ?
Comment 17 Miguel Sousa Filipe 2002-12-19 11:31:41 UTC
I had font problems when I emerged gnome, gtk+, pango and xft from ~x86... 
basically.. the fonts where HUGE.. in all gtk+ app.. downgrading gtk+ to 
gtk+-2.0.9, solved this issue and the themes problems issue too.. (the 
themes were probably compiled against gkt+-2.0.?)

but.. mozilla is totally unusable.. crashing a lot, in mails(all it takes 
is scrool some directory), web pages.. really unstable.

gaim still has font's problems.. window menus, my input box, my text..etc.. 
fonts are HUGE... allthough in chats.. other people's fonts are ok.
it also keeps giving me this errors:

(gaim:1650): Gtk-WARNING **: Events of type GDK_EXPOSE cannot be 
synthesized. To get the same effect, call 
gdk_window_invalidate_rect/region(), followed by 
gdk_window_process_updates().

(gaim:1650): Gtk-WARNING **: Events of type GDK_EXPOSE cannot be 
synthesized. To get the same effect, call 
gdk_window_invalidate_rect/region(), followed by 
gdk_window_process_updates().

I don't know if I should open new bug reports for gaim and mozilla.. or if 
this really is related to the "xft-pango-gtk+" thing. But even if it is, is 
this the proper bug thread to be in, since gtk+ compiles now..?
(Should I open a xft-pango-gtk+ related bug report?)

thanks for the help anyway.. now I have some "ideas" about there the 
problem lies.. gtk+ allready compiles.. so.. I'm advancing .eheheh
Comment 18 Carlos Eberhardt 2002-12-20 00:28:18 UTC
> What xfree are you running ?

4.2.1-r2
Comment 19 foser (RETIRED) gentoo-dev 2002-12-20 06:57:12 UTC
we had another bugreport about fonts being huge :
http://bugs.gentoo.org/show_bug.cgi?id=10625 .
Is it similar to that ? Mozilla maybe is another issue, but try easing down on
optimisations first and use the gtk1 version. I have sometimes crashes on
resizing the mail window, but i think that is a mozilla bug.

Carlos can you re-emerge xfree . Xrender shouldnt be touched, so im a bit
surprised you get problems with that. Maybe good to clean out
xfree/xft/gtk/pango first, so you can be sure all is clean.
Comment 20 Carlos Eberhardt 2002-12-20 19:00:19 UTC
> Carlos can you re-emerge xfree . Xrender shouldnt be touched, so im a bit
> surprised you get problems with that. Maybe good to clean out
> xfree/xft/gtk/pango first, so you can be sure all is clean.

unmerged xfree, xft, gtk+2.1.2, and pango. On remerge, gtk+2.1.2 fails again
with: checking for pango_context_new in -lpango-1.0... no
configure: error:
*** Can't link to Pango. Pango is required to build
*** GTK+. For more information see http://www.pango.org"

There must be something else causing the trouble. I also have gtk+1.2.10-r9 on
this system.. there doesn't seem to be a newer 1.2 version. Maybe a USE flag
problem? 
Comment 21 foser (RETIRED) gentoo-dev 2002-12-20 19:46:16 UTC
has nothing todo with gtk-1.2, are you sure there are not somehow traces of an
old pango left on your system ?
Comment 22 Carlos Eberhardt 2002-12-20 21:08:51 UTC
I'm pretty sure. I unmerged it again, rm'd /etc/pango, did a "find / -iname
'pango*'" and saw nothing suspicious, then remerged and tried gtk again. Same
error. Could be I don't know what I should be looking for as far as leftover
pango stuff goes, though. I do have a fair bit of gnome-ish stuff lying around
unused, I could try removing all of that and see, if you think that could be
related.
Comment 23 foser (RETIRED) gentoo-dev 2002-12-21 09:16:54 UTC
On second thought, give me the breaking config.log of the gtk+ build (
/var/tmp/portage/<app>/work/<app>/config.log or something).
Comment 24 Carlos Eberhardt 2002-12-21 10:23:34 UTC
Created attachment 6633 [details]
gkt+-2.1.2 config.log

As requested, the config.log - thanks a ton for helping!
Comment 25 foser (RETIRED) gentoo-dev 2002-12-21 11:24:37 UTC
Well, so far i have only helped you recompiling stuff ;)

Ok, we're missing symbols in xft2 . Can you remove xft2 and and remove
/usr/lib/libXft* , then re-emerge xft2 and afterwards do the pango/gtk emerge .
Test xft-2.0.1 first, if it fails do the same again and try 2.0 (latest revision
ofcourse).
Comment 26 Carlos Eberhardt 2002-12-22 12:11:34 UTC
No luck. I tried downgrading xft again and gtk+ would build, but I again got the
'BadLength (poly request to large or internal Xlib error)' errors whenever I'd
fire up a gtk2 app.
Comment 27 foser (RETIRED) gentoo-dev 2002-12-22 12:22:30 UTC
What version of mozilla do you have around ? What is the ouput of 'ldd
/usr/lib/mozilla/*so | grep Xft' ?
'
Comment 28 Carlos Eberhardt 2002-12-22 13:01:37 UTC
mozilla is at 1,2-r0. It's at the end of my 'emerge -up world' list, so I
haven't bothered to try to update it yet (to 1.2.1-r3)... maybe I should?

There is no output from 'ldd /usr/lib/mozilla/*so | grep Xft'

however:
# ldd /usr/lib/mozilla/*so.* | grep Xft
/usr/lib/mozilla/libXft.so.2:
/usr/lib/mozilla/libXft.so.2.0:

(libXft.so.2 is a link to libXft.so.2.0 in the directory)

I didn't even realize there was xft stuff with mozilla.
Comment 29 foser (RETIRED) gentoo-dev 2002-12-22 13:20:11 UTC
Can you try and remove mozilla, see if it works now. I think it's interefering
with the system xft2. You can upgrade, newer revisions should fix this.
Comment 30 Carlos Eberhardt 2002-12-22 19:52:28 UTC
That solved it! Thanks much for the help!
Comment 31 foser (RETIRED) gentoo-dev 2002-12-22 20:37:25 UTC
ok, closing

methos : if your problem persists, please open a new bug report on it