Slackware 3.5, glib and gtk+ 1.1.x confusion



Ok I just finally figured out what one has to do to compile GTK+ 1.1.x
on a Slackware 3.5 system. After making glib and installing it, rm
/usr/X11R6/local/lib/libglib.so.1.0.6 . For some reason it looks like
gtk tries to compile using this old version even if it notices 1.1.x is
installed, which causes the unresolved symbols. The dump of the output
if you dont rm the old glib follows.

/bin/sh ../libtool --mode=link gcc -g -O2 -DGTK_NO_CHECK_CASTS -Wall
-DUSE_XIM
-o testgtk  testgtk.o libgtk.la ../gdk/libgdk.la -L/usr/X11R6/lib -lXext
-lX11 -
L/usr/local/lib -rdynamic -lgmodule  -lglib -ldl -lm
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/X11R6/lib -lXext -lX11 -L/usr/X11R6/lib -lXext
-lX11 -L/u
sr/local/lib -rdynamic -lgmodule -lglib -ldl -lm
testgtk.o: In function `create_tree_sample':
/root/gtk+-1.1.5/gtk/testgtk.c:1189: undefined reference to `g_log'
testgtk.o: In function `gtk_ifactory_cb':
/root/gtk+-1.1.5/gtk/testgtk.c:2242: undefined reference to `g_log'
testgtk.o: In function `cursor_expose_event':
/root/gtk+-1.1.5/gtk/testgtk.c:2977: undefined reference to `g_log'
testgtk.o: In function `export_ctree':
/root/gtk+-1.1.5/gtk/testgtk.c:4478: 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_hook_next_valid'
.libs/libgtk.so: undefined reference to `g_hook_list_init'
.libs/libgtk.so: undefined reference to `g_datalist_clear'
.libs/libgtk.so: undefined reference to `g_datalist_id_remove_no_notify'

.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_hook_unref'
.libs/libgtk.so: undefined reference to `g_quark_try_string'
.libs/libgtk.so: undefined reference to `g_scanner_stat_mode'
../gdk/.libs/libgdk.so: undefined reference to `g_dataset_destroy'
.libs/libgtk.so: undefined reference to `g_hook_alloc'
.libs/libgtk.so: undefined reference to `g_hook_destroy_link'
.libs/libgtk.so: undefined reference to `g_node_insert_before'
../gdk/.libs/libgdk.so: undefined reference to `g_set_prgname'
.libs/libgtk.so: undefined reference to `g_hook_ref'
.libs/libgtk.so: undefined reference to `g_quark_from_string'
.libs/libgtk.so: undefined reference to `g_scanner_set_scope'
.libs/libgtk.so: undefined reference to `g_node_new'
.libs/libgtk.so: undefined reference to `g_hook_find_data'
.libs/libgtk.so: undefined reference to `g_strsplit'
.libs/libgtk.so: undefined reference to `g_completion_new'
.libs/libgtk.so: undefined reference to `g_datalist_init'
.libs/libgtk.so: undefined reference to `g_hook_destroy'
.libs/libgtk.so: undefined reference to `g_completion_complete'
.libs/libgtk.so: undefined reference to `g_atexit'
.libs/libgtk.so: undefined reference to `g_dataset_id_get_data'
.libs/libgtk.so: undefined reference to `g_scanner_scope_add_symbol'
.libs/libgtk.so: undefined reference to `g_list_find_custom'
.libs/libgtk.so: undefined reference to `g_datalist_id_get_data'
.libs/libgtk.so: undefined reference to `g_hook_first_valid'
.libs/libgtk.so: undefined reference to `g_dataset_id_set_data_full'
.libs/libgtk.so: undefined reference to `g_log_set_always_fatal'
.libs/libgtk.so: undefined reference to `g_scanner_unexp_token'
.libs/libgtk.so: undefined reference to `g_hook_insert_sorted'
.libs/libgtk.so: undefined reference to `g_mem_chunk_alloc0'
.libs/libgtk.so: undefined reference to `g_scanner_thaw_symbol_table'
.libs/libgtk.so: undefined reference to `g_scanner_freeze_symbol_table'
.libs/libgtk.so: undefined reference to `g_strreverse'
.libs/libgtk.so: undefined reference to `g_get_current_dir'
.libs/libgtk.so: undefined reference to `g_get_prgname'
.libs/libgtk.so: undefined reference to `g_node_reverse_children'
.libs/libgtk.so: undefined reference to `g_quark_from_static_string'
collect2: ld returned 1 exit status
make[2]: *** [testgtk] Error 1
make[2]: Leaving directory `/root/gtk+-1.1.5/gtk'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/gtk+-1.1.5'
make: *** [all-recursive-am] Error 2
www:~/gtk+-1.1.5#



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]