LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Building gtk+-2.10.8 but get a undefined reference to g_thread_gettime (https://www.linuxquestions.org/questions/linux-software-2/building-gtk-2-10-8-but-get-a-undefined-reference-to-g_thread_gettime-526710/)

Haraldsh 02-08-2007 07:02 AM

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...

weibullguy 02-08-2007 08:10 AM

To set the flag
Code:

export CFLAGS = -Wl --allow-shlib-undefined
Plus anything else you already set.

Haraldsh 02-08-2007 06:35 PM

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.

icfantv 03-12-2007 02:32 PM

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

icfantv 03-12-2007 03:26 PM

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

Haraldsh 03-13-2007 02:29 AM

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


All times are GMT -5. The time now is 10:40 PM.