LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-02-2009, 08:19 PM   #1
EmrldDrgn
Member
 
Registered: Oct 2008
Posts: 40

Rep: Reputation: 16
GTK+ 2.16.2 Compilation Error


When compiling GTK+ 2.16.2, I keep getting these errors:

gdkpango.c: In function 'gdk_pango_renderer_draw_shape':
gdkpango.c:323: error: 'PangoCairoShapeRendererFunc' undeclared (first use in this function)
gdkpango.c:323: error: (Each undeclared identifier is reported only once
gdkpango.c:323: error: for each function it appears in.)
gdkpango.c:323: error: expected ';' before 'shape_renderer'
gdkpango.c:333: error: 'shape_renderer' undeclared (first use in this function)

The same problem (without solution) appears in this thread elsewhere:

http://www.gtkforums.com/about3760.html

Can anyone offer suggestions? Is it possible I have an incompatible version of some other library?
 
Old 08-02-2009, 08:34 PM   #2
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Whenever you post a question, post what distro, arch, and version you are running. Without this information it is very difficult for us to help you.
 
Old 08-02-2009, 08:58 PM   #3
EmrldDrgn
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 16
Sorry, of course. I'm using GoboLinux 14.01 on an i686 (based on `uname -m`). My version of GCC is 4.1.2, in case that's relevant. Honestly I don't know how any of that is relevant, but if you say you need it, I'm happy to provide it. Thanks for the attention.
 
Old 08-02-2009, 09:30 PM   #4
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
One of the reasons it is important is that each distro(and sometimes version and arch) has its own oddities. This is really true of distros like GoboLinux. GoboLinux does not use the standard file system hierarchy. What MAY be going on here is that this partiuclar package is looking for the libs in the standard location and they are not there.
 
Old 08-02-2009, 09:56 PM   #5
EmrldDrgn
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 16
Which libs would those be, exactly? I'm sure if need be I could always symlink them, if that turns out to be the problem. Pango?
 
Old 08-02-2009, 11:00 PM   #6
huzhu1984
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
I also encountered this problem when I trying to compile GTK2.16.1 this morning. My OS is RedhatLinux12forEnterprise.Gcc version is 4.1.2. I have finished the installation of Pango1.24.5. Now I'am stucked.
 
Old 08-02-2009, 11:16 PM   #7
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
EmrldDrgn

I do not know GoboLinux, so I am not sure where to point you.

huzhu1984

RHEL(Red Hat Enterprise Linux) is currently on version 5.3. Before that they used just RH, which only went to version 9(very old). Fedora's newest release in F11. So I am not quite sure what "RedhatLinux12forEnterprise" is. The current GTK2 release for RHEL5.3 is 2.10. I would start by grabbing the source rpm for that and examining the spec file, that should give you a huge amount of information. F11 uses gtk2-2.16.5-1.fc11.src.rpm, I would grab that and again look at the spec file(Fedora is what RHEL is/will be based on). Between those two spec files you should be able to get a pretty good idea of what needs to be done to run the newer GTK2 on RHEL5.3. If that is not what you are running, I really cannot help much until we know what you are actually running.
 
Old 08-03-2009, 01:29 AM   #8
huzhu1984
LQ Newbie
 
Registered: Aug 2009
Posts: 2

Rep: Reputation: 0
Lazlow:
I'am sorry for giving a wrong information of the OS version. I'am so a rookie. Actually it's RHEL5.3. But it should be unrelated with the OS version.

EmrldDrgn:
I think it's related with the version of your pango lib. Why not try another one? I just change it from 1.24.5 to 1.20.5, and now it's all right.

PS:Make sure your ATK version to be atleast 1.13.2.

^_^

Last edited by huzhu1984; 08-03-2009 at 05:43 AM.
 
Old 08-03-2009, 02:15 AM   #9
lazlow
Senior Member
 
Registered: Jan 2006
Posts: 4,363

Rep: Reputation: 172Reputation: 172
Apparently the newer gtk2 versions have an issue with immodules not being in the standard install(split out for some reason). There is a patch for this in the F11 spec file. This may or may not have anything to do with the initial issue.
 
Old 08-03-2009, 02:19 AM   #10
EmrldDrgn
Member
 
Registered: Oct 2008
Posts: 40

Original Poster
Rep: Reputation: 16
I got it to work!

I'm not sure precisely what I did, but I found this list of dependencies and compiled it top-down. I wish I knew exactly which one had fixed it so I could report the oversight to the devs, but ah well... c'est la vie.

http://library.gnome.org/devel/gtk-f...ml#FAQ-COMPILE

I'll change the title to SOLVED.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
GTK compilation. shendeswanand Programming 4 01-29-2006 11:48 AM
gtk program compilation error RohanShrivastav Programming 5 02-16-2005 07:12 AM
gtk+ compilation problem maciekish Linux - Software 3 01-11-2005 07:03 AM
Compilation problem with gtk+-2.4.0 Kanaflloric Linux - Software 2 06-17-2004 10:43 PM
GTK-1.2 C compilation error GabeF Programming 2 05-12-2003 08:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:41 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration