The Notebook Review forums were hosted by TechTarget, who shut down them down on January 31, 2022. This static read-only archive was pulled by NBR forum users between January 20 and January 31, 2022, in an effort to make sure that the valuable technical information that had been posted on the forums is preserved. For current discussions, many NBR forum users moved over to NotebookTalk.net after the shutdown.
Problems? See this thread at archive.org.

    Trouble compiling GTK+ 2.22.0

    Discussion in 'Linux Compatibility and Software' started by pixelot, Oct 17, 2010.

  1. pixelot

    pixelot Notebook Acolyte

    Reputations:
    3,732
    Messages:
    6,833
    Likes Received:
    0
    Trophy Points:
    205
    What's up, NBR? I haven't been around for a while since college has been busy, but over break I've been messing around with my Mint install some. :D And this is pretty much a re-post of my question on the GTK forums, but I wanted to see if any NBR friends had ideas.

    Ultimately, I'm trying to get Last.fm scrobbling to work with Audacious, so I'm trying to install Audacious 2.4, which needs GTK+ 2.

    After installing "the GLib, Pango, GdkPixbuf, ATK and cairo libraries," I finally got it to configure, but when I run 'sudo make', I get this error:

    However, here are the applicable sections of the gtkpango.c file located in the source folder (~/Desktop/gtk+-2.22.0/gtk/gtkpango.c), from which I assume it was trying to build library files:

    Line 77 (and surrounding):

    Line 199 (and surrounding):

    So, as far as I can tell, there may be an "implicit declaration of function 'pango_cairo_show_glyph_item'" but I don't know how to fix it, and it sure looks like "PangoRendererClass" DOES have a "member named 'draw_glyph_item'" but again, I don't know how to make it recognize that.

    And finally, not only can I not get GTK working, but this same problem is now preventing me from opening terminal shells (I have to drop to the console to do anything, which is annoying). I tried running 'gnome-terminal' in xterm, and got this output error:

    Any ideas would be greatly appreciated. I just spent about 8 hours on this ... really bad idea, but I kept thinking the next dependency would be it, and then smooth sailing. :eek:

    TIA,
    -Matthew
     
  2. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    Looks like ur pango lib is trashed. Have you tried rebuilding it?
     
  3. pixelot

    pixelot Notebook Acolyte

    Reputations:
    3,732
    Messages:
    6,833
    Likes Received:
    0
    Trophy Points:
    205
    I did, or at least I think I did. I read somewhere that one of my problems might be caused by pango not being set up properly until fontconfig was installed, so after I got fontconfig installed, I re-installed pango...but I don't know if that was what was needed.

    For what it's worth, 'dpkg -p libpango-1.0-0' indicates that I'm using version 1.28.0-ubuntu2, whereas this morning I first tried to install 1.21.5, and when some file within that was giving me fits, switched to 1.21.3, because the changelog indicated the file had been added with 1.21.4 or some such thing.

    This is verified by the existence of both of those package files in my Trash. So I don't know if maybe I later upgraded via the repositories and that's how the 1.28.0 thing happened, or if something else is going on.

    Now obviously I can't just purge the package and reinstall it (because of the things that depend on it), but should I try upgrading manually to 1.28.3 (the latest)?

    Also possibly of interest: dpkg also lists a conflict: pango-libthai.

    Thanks so much for reading through that first post. I do appreciate the time and effort. :)
     
  4. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    Usually implicit declarations mean your library is just plain missing. But if you're passing configure it means at least some of it is there...

    You can force purge it... dpkg -P --force-depends blah

    It might break other stuff, so I'd be super careful with that one.

    I'm not sure at all about your libthai conflict.

    My main question really tho is, have you tried an earlier version of GTK? I can't build 2.22.0 on Sid, because glib and gtk-pixbuf not being up to speed. I'm not sure which version you'd be able to build from source, or even why you're building GTK from source.

    The latest release of Audacious (2.4.0) from their site, as far as I can tell its requirement from autoconf is PC_REQUIRES="gtk+-2.0 >= 2.8.0"
     
  5. pixelot

    pixelot Notebook Acolyte

    Reputations:
    3,732
    Messages:
    6,833
    Likes Received:
    0
    Trophy Points:
    205
    So I should try an earlier version of GTK? Only reason I hadn't done that is because I didn't think it would help, but I'll give that a go. But I'll probably install Maverick or something soon, so it's not a huge issue whether I screw my system up or not. And my schoolwork's on a data partition. :cool:

    Thanks again!
     
  6. ALLurGroceries

    ALLurGroceries  Vegan Vermin Super Moderator

    Reputations:
    15,730
    Messages:
    7,146
    Likes Received:
    2,343
    Trophy Points:
    331
    Yeah it should help. But why not just install the libgtk2.0-dev package and whatever else? Unless one of the build dependencies throws you into some sort of recursive version conflict, you should install the development packages and then try to build as little as possible by hand. At least that's my lazy take on things. I'd be running Gentoo otherwise...

    BTW. Wow, I'm an idiot. It must've been a week since I dist-upgraded because I now have 2.22.0 installed. :p

    Good luck! I'll check back soon.
     
  7. pixelot

    pixelot Notebook Acolyte

    Reputations:
    3,732
    Messages:
    6,833
    Likes Received:
    0
    Trophy Points:
    205
    Everything seems to be working now. :D

    So here's what I did. I simply manually upgraded to pango-1.28.3, and it fixed my libraries and my terminal problem. So then I was able to install GTK+-2.22.0 like I had been trying to, and subsequently Audacious 2.4.

    That was a little tricky, however, since when I tried to 'make install' I was getting an error along the lines of "No rule to make target ../libeggsmclient/libeggsmclient.a which is a necessary dependency."

    I saw that it was in the 'audacious' folder, which I figured out was (~/Desktop/audacious-2.4.0/src/audacious) and tracked it down to a few lines in the Makefile:

    As you can see, there is a + in the bolded line, and I thought that looked suspicious and unorthodox enough to try pulling it out. Sure enough, after re-configuring, it was able to make the dependency and then install.

    This was a triumph. Turns out my 8+ hours of working on dependencies and compiling today has taught me something. :)

    But that plus sign did seem rather bizarre. How did it get there, and why wouldn't that cause a problem for everyone? I don't know, but I did download the source file again, and it had the same error in that line. :rolleyes:

    Now if I could just get the scrobbler plugin to show up...
     
  8. Thomas

    Thomas McLovin

    Reputations:
    1,988
    Messages:
    5,253
    Likes Received:
    0
    Trophy Points:
    205
    Perhaps running a sudo apt-get build-dep on libgtk would have been faster? ;)
     
  9. pixelot

    pixelot Notebook Acolyte

    Reputations:
    3,732
    Messages:
    6,833
    Likes Received:
    0
    Trophy Points:
    205
    You and your 1337 skillz. Why don't you tell me this before I spend all day on it? :twitchy:
     
  10. Thomas

    Thomas McLovin

    Reputations:
    1,988
    Messages:
    5,253
    Likes Received:
    0
    Trophy Points:
    205
    Rofl, Sorry!