LinuxQuestions.org
Visit Jeremy's Blog.
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 02-08-2007, 08:02 AM   #1
Haraldsh
LQ Newbie
 
Registered: Sep 2003
Distribution: Debian 2.6.9 Sarge
Posts: 24

Rep: Reputation: 15
Building gtk+-2.10.8 but get a undefined reference to g_thread_gettime


I'm building an user environment for gtk for a specific user, however, I'm getting alot of problems due to a bug when building gtk. I've checked for a workaround it, but the closest I get to it is the Workaround for gaim

I can't make any sense of the gaim solution, and don't see how to apply it to the make file for gtk+-2.10.8

Anyone got a clue?

So far I've compiled, just mentioning it:
atk-1.10.3
autoconf-2.60
automake-1.10
cairo-1.3.12
fontconfig-2.4.2
gcc-3.4.4
gcc-g++-3.4.4
glib-2.12.9
libiconv-1.11
libtool-2.1a
pkg-config-0.21
texinfo-0.48

If you want an example of the makefile, it's 35k lines long..
However I'm wondering how to set those options that are mentioned in the gaim solution, I'm getting this error:
Code:
/home/haraldsh/library//lib/libgthread-2.0.so: undefined reference to `g_thread_gettime'
collect2: ld returned 1 exit status
make[2]: *** [pixbuf-threads] Error 1
make[2]: Leaving directory `/home/haraldsh/src/gtk+-2.10.8/tests'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/haraldsh/src/gtk+-2.10.8'
make: *** [all] Error 2
*note* I've put up a similiar thread on LinuxForums, but thought it wouldn't hurt putting a thread here either...
 
Old 02-08-2007, 09:10 AM   #2
weibullguy
ReliaFree Maintainer
 
Registered: Aug 2004
Location: Kalamazoo, Michigan
Distribution: Slackware 14.2
Posts: 2,815
Blog Entries: 1

Rep: Reputation: 261Reputation: 261Reputation: 261
To set the flag
Code:
export CFLAGS = -Wl --allow-shlib-undefined
Plus anything else you already set.
 
Old 02-08-2007, 07:35 PM   #3
Haraldsh
LQ Newbie
 
Registered: Sep 2003
Distribution: Debian 2.6.9 Sarge
Posts: 24

Original Poster
Rep: Reputation: 15
I made it work.
I just did a 'make uninstall' on both gtk and the the glib sources, then went back an older glib version (I tried to install the latest). Then I installed the recent gtk, since I checked that an older gtk gave the same error.
 
Old 03-12-2007, 03:32 PM   #4
icfantv
LQ Newbie
 
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
gtk build error with g_thread_gettime

Quote:
Originally Posted by Haraldsh
I made it work.
I just did a 'make uninstall' on both gtk and the the glib sources, then went back an older glib version (I tried to install the latest). Then I installed the recent gtk, since I checked that an older gtk gave the same error.
Hey, would you mind telling the rest of us what version of glib you reverted to? Thanks.

-adam
 
Old 03-12-2007, 04:26 PM   #5
icfantv
LQ Newbie
 
Registered: Mar 2007
Posts: 2

Rep: Reputation: 0
glib version to build gtk+ w/o g_thread_gettime error

ok, so in this day and age of instant gratification, i found the right version - glib 1.12.8 will "fix" the gtk build error.

build glib version 2.12.8 available here: ftp://ftp.gtk.org/pub/glib/2.12/

-adam
 
Old 03-13-2007, 03:29 AM   #6
Haraldsh
LQ Newbie
 
Registered: Sep 2003
Distribution: Debian 2.6.9 Sarge
Posts: 24

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by icfantv
ok, so in this day and age of instant gratification, i found the right version - glib 1.12.8 will "fix" the gtk build error.

build glib version 2.12.8 available here: ftp://ftp.gtk.org/pub/glib/2.12/

-adam
Sounds about right. Dunno why I didn't receive your previous reply, so sorry about. Good thing that you made it work
 
  


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 to... dimah Programming 3 12-27-2006 10:57 AM
GTK+-2.8.17 Compilation problem:undefined reference to `g_intern_static_string' zakariya Linux - Software 1 06-26-2006 10:46 AM
GTK+ build, undefined reference error? headrift Linux - Software 2 09-15-2005 05:00 PM
Undefined Reference ChemicalBurn Programming 2 02-14-2005 04:01 AM
undefined reference mp4-10 Programming 3 01-25-2005 01:38 PM

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

All times are GMT -5. The time now is 03:49 AM.

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