LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-15-2005, 01:34 PM   #1
headrift
Member
 
Registered: Sep 2005
Distribution: Gentoo, Sabayon, Puppy, Arch
Posts: 165

Rep: Reputation: 29
GTK+ build, undefined reference error?


Hey. I'm trying to update all of my libraries, have made it through atk (1.10.3), cairo (1.0.0), glib (2.8.1), and pango (1.10.0). Now I'm on gtk (2.8.3), and it won't make. It configures just fine, makes it through some of the build, and then barfs this out:

Code:
/usr/lib/gtk+-2.8.3/gdk/.libs/libgdk-x11-2.0.so: undefined reference to `pango_cairo_font_map_create_context'
./.libs/libgtk-x11-2.0.so: undefined reference to `pango_cairo_context_set_resolution'
/usr/lib/gtk+-2.8.3/gdk/.libs/libgdk-x11-2.0.so: undefined reference to `pango_cairo_show_glyph_string'
/usr/lib/gtk+-2.8.3/gdk/.libs/libgdk-x11-2.0.so: undefined reference to `pango_cairo_font_map_get_default'
./.libs/libgtk-x11-2.0.so: undefined reference to `pango_cairo_show_layout'
./.libs/libgtk-x11-2.0.so: undefined reference to `pango_cairo_context_set_font_options'
collect2: ld returned 1 exit status
make[4]: *** [gtk-query-immodules-2.0] Error 1
make[4]: Leaving directory `/usr/lib/gtk+-2.8.3/gtk'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/lib/gtk+-2.8.3/gtk'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/usr/lib/gtk+-2.8.3/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/lib/gtk+-2.8.3'
make: *** [all] Error 2
Both pango and cairo are installed correctly, and I've reinstalled them just to be safe.

I can't find anything about this problem anywhere. Any ideas?
 
Old 09-15-2005, 03:23 PM   #2
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 53
The linker isn't finding the libraries. Try running 'ldconfig' (as root).

Did you use a prefix when you configured, because having libraries in non-standard locations can cause issues. The best place to put them is in /usr/lib in which case you should have run:
Code:
./configure --prefix=/usr
for each of the libraries. Also, try adding /usr/local/lib to /etc/ld.so.conf if it isn't already in there.
 
Old 09-15-2005, 04:00 PM   #3
headrift
Member
 
Registered: Sep 2005
Distribution: Gentoo, Sabayon, Puppy, Arch
Posts: 165

Original Poster
Rep: Reputation: 29
Ran ldconfig, /usr/local/lib is in /etc/ld.so.conf - pkg-config returns correct info for everything.

Tried
Code:
./configure --prefix=/usr
for gtk, didn't help. Tried it for pango and gtk, same thing. Tried it for cairo, pango, and gtk, still no joy. Know anything else that might help?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Undefined reference error jacques83 Programming 20 04-11-2013 07:23 AM
Undefined reference error in MD5_Init() jacques83 Linux - Networking 0 11-11-2005 09:44 PM
gcc ld error. Undefined reference redness Linux - Software 4 02-08-2005 02:01 AM
undefined reference error Quest101 Programming 3 01-01-2005 12:27 PM
make error/ undefined reference apljdi Linux - Newbie 1 10-29-2002 01:10 PM


All times are GMT -5. The time now is 07:14 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration