Re: [gtk-list] HELP! gtk 1.0.2 compile error on FreeBSD.



On Wed, 20 May 1998, Doug Lo wrote:

> Hi,
> 
> I download gtk1.0.2 and compile on FreeBSD 2.2.6-RELEASE, I got error messages
> while compiling:
> 
> BRARY_PATH=".libs:../gdk/.libs:../glib/.libs:$LD_LIBRARY_PATH" gcc -g -O2 -DGTK_
> NO_CHECK_CASTS -Wall -DUSE_XIM -o .libs/testgtk testgtk.o -R/usr/local/lib -lgtk
>  -R/usr/local/lib -lgdk -L/usr/X11R6/lib -lXext -lX11 -L/usr/X11R6/lib -lXext -l
> X11 -R/usr/local/lib -lglib -lm
> testgtk.c:2146: Undefined symbol `_gtk_container_set_focus_hadjustment' referenc
> ed from text segment
> testgtk.c:2148: Undefined symbol `_gtk_container_set_focus_vadjustment' referenc
> ed from text segment
> testgtk.c:2808: Undefined symbol `_gtk_container_set_focus_vadjustment' referenc
> ed from text segment
> testgtk.c:5780: Undefined symbol `_gtk_container_set_focus_vadjustment' referenc
> ed from text segment
> *** Error code 1

if you don't get any other undefined symbols, it seems like you somehow link
against a gtk library prior to 1-0-1. this is strange since testgtk should
actually link against the gtk-version within the tree. is there any chance
that it links against old gtk libararies in e.g /usr/local/lib (what does the
-R/usr/local/lib option do)?.

> 
> Would anyone tell me how to fix it?

try to remove any existing libgtk* libgdk* and libglib* libraries from your
system, and try to relink.

> 
> Thanks in advance,
> Doug.
> 
> 

---
ciaoTJ



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