[9070] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Re: Troubles compiling gtk+

daemon@ATHENA.MIT.EDU (Herbert J. Skuhra)
Tue Oct 6 04:05:57 1998

Date: Tue, 6 Oct 1998 10:01:33 +0200 (CEST)
From: "Herbert J. Skuhra" <a9625223@unet.univie.ac.at>
To: gtk-list@redhat.com
In-Reply-To: <018401bdf049$c5643700$14d1d0c3@anton.inorg.chem.msu.ru>
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

Hi,

I had also "undefined references to g_*" on my Debian 2.0 System when
compiling gnome-libs. Yesterday I found the error: missing symbolic link. 
The solution (in my case):

cd /path/where/gnome_is_installed/lib
ln -s libglib-1.1.so.3.0.0 libglib-1.1.so

That's all! 

Bye,
  Herbert 

On Mon, 5 Oct 1998, Anton Vinokurov wrote:

> Hi!
>  
> I am trying to compile gtk+-1.1.2 on my Slackware 3.5 Linux system.
> After successeful installing glib-1.1.3, unpacking&configuring&running make, I found:
>  
> gcc -g -O2 -DGTK_NO_CHECK_CASTS -Wall -DUSE_XIM -o .libs/testgtk testgtk.o -Wl,--rpath -Wl,/usr/local/lib .libs/libgtk.so -Wl,--rpath -Wl,/usr/local/lib ../gdk/.libs/libgdk.so -L/usr/X11/lib -lXext -lX11 -L/usr/X11/lib -lXext -lX11 -lm -L/usr/local/lib -lglib
> 
> testgtk.o: In function `create_tree_sample':
> /usr/local/src/gtk+-1.1.2/gtk/testgtk.c:1189: undefined reference to `g_log'
> testgtk.o: In function `gtk_ifactory_cb':
> /usr/local/src/gtk+-1.1.2/gtk/testgtk.c:2132: undefined reference to `g_log'
> testgtk.o: In function `cursor_expose_event':
> /usr/local/src/gtk+-1.1.2/gtk/testgtk.c:2867: undefined reference to `g_log'
> testgtk.o: In function `export_ctree':
> /usr/local/src/gtk+-1.1.2/gtk/testgtk.c:4232: undefined reference to `g_node_destroy'
> .libs/libgtk.so: undefined reference to `g_node_depth'
> .libs/libgtk.so: undefined reference to `g_datalist_id_set_data_full'
> .libs/libgtk.so: undefined reference to `g_module_supported'
> .libs/libgtk.so: undefined reference to `g_datalist_clear'
> .libs/libgtk.so: undefined reference to `g_completion_add_items'
> .libs/libgtk.so: undefined reference to `g_node_last_child'
> .libs/libgtk.so: undefined reference to `g_scanner_scope_remove_symbol'
> .libs/libgtk.so: undefined reference to `g_completion_free'
> .libs/libgtk.so: undefined reference to `g_quark_try_string'
> .libs/libgtk.so: undefined reference to `g_module_error'
> .libs/libgtk.so: undefined reference to `g_scanner_stat_mode'
> ....<a lot of>
>  
> Is this a mistake in Makefile or in my brains?
> I've run ldconfig -v , checked /usr/local/lib for all requested libraries, but no results...
>  
> Yours,
>  
>             Anton Vinokurov,
>             anton@inorg.chem.msu.ru
>             Inorganic Chemistry Division, Moscow State University
>  
>  
> 

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post