Re: compile problem




Matt Beauregard <marauder@gatekeeper.viper.net.au> writes:

> when I try to compile gtk I get the following error:
> 
> /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                            ../glib/libglib.la           -lm 
> LD_LIBRARY_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 -lX11 -R/usr/local/lib -lglib -lm
> testgtk.c:2146: Undefined symbol `_gtk_container_set_focus_hadjustment'
> referenced from text segment
[...]
> 
> This is with gtk+ 1.0.4 but the error is the same with 1.0.3. I'm
> compiling under freebsd 2.2.6 with gcc 2.7.2.1. How can I make it go? :)

Well, the basic problem is that it is trying to link against the
old GTK in /usr/local/lib. So if you remove it, things will probably
work. This really shouldn't be happening though.

Did you give any options or set any environment variables when
running ./configure?

                                        Owen



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