Re: [gtk-list] Re: gtk+-1.2.0 compile problems



> From: "Patrick O'Neil" <patrick@hci.utah.edu>
> 
> Havoc Pennington wrote:
> 
> > For gcc, the GNU toolset will choose the optimizations considered "best"
> > by the experts so it is probably best to leave the defaults.
> > 
> > (it's worth trying anyway - start with an untouched tarball.)
> 
> Well, I just gave this a shot...to no avail.  I went ahead and removed
> the glib-1.1.13 and gtk+-1.1.13 rpms and then ran "make install" of
> my successfully compiled glib-1.2.0.  It installed fine.  I ran
> "ldconfig"
> and then re-ran ./configure in my gtk+-1.2.0 source directory (I had
> removed the config.log and config.status files first).  It configured
> fine with no errors.  I then ran "make" and it crapped out again:
> 
> gcc -g -O2 -Wall -o .libs/testgtk testgtk.o -Wl,--rpath
> -Wl,/usr/local/lib .libs
> /libgtk.so -L/usr/X11R6/lib -lXext -lX11 -lm -Wl,--rpath
> -Wl,/usr/local/lib ../g
> dk/.libs/libgdk.so -L/usr/X11R6/lib -lXext -lX11 -lm -L/usr/X11R6/lib
> -lXext -lX
> 11 -L/usr/local/lib -rdynamic -lgmodule -lglib -ldl -lm
> ../gdk/.libs/libgdk.so: undefined reference to `XGetDeviceMotionEvents'
> ../gdk/.libs/libgdk.so: undefined reference to `XFreeDeviceList'
> ../gdk/.libs/libgdk.so: undefined reference to `XQueryDeviceState'
> ../gdk/.libs/libgdk.so: undefined reference to `XListInputDevices'
> ../gdk/.libs/libgdk.so: undefined reference to `XFreeDeviceMotionEvents'
> ../gdk/.libs/libgdk.so: undefined reference to `XOpenDevice'
> ../gdk/.libs/libgdk.so: undefined reference to `XSelectExtensionEvent'
> ../gdk/.libs/libgdk.so: undefined reference to `XUngrabDevice'
> ../gdk/.libs/libgdk.so: undefined reference to `XGrabDevice'
> make[2]: *** [testgtk] Error 1
> make[2]: Leaving directory `/usr/src/gtk/gtk+-1.2.0/gtk'
> make[1]: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/gtk/gtk+-1.2.0'
> make: *** [all-recursive-am] Error 2 
> 
> So yet again...a gtk compile problem.  Any ideas on this?  This is
> REALLY getting to be monotonous and supremely irritating.
> 
> I have kernel 2.2.1 installed and running, Xfree 3.3.3.1-1.
> 
> Now, having removed the previous glib and gtk so I could cleanly 
> install these newer libs...gtk just isn't cooperating at all.

Those functions are in libXi - I don't see that on your link line
above - I'm not certain why they're not.  Do any of the libXi (static
or shared) files exist on your system?

On my RH 5.2 system with all errata applied:

ls -l /usr/X11R6/lib/libXi*
-rw-r--r--   1 root     root        60346 Jan 18 18:12
/usr/X11R6/lib/libXi.a

lrwxrwxrwx   1 root     root           12 Nov 25 10:32
/usr/X11R6/lib/libXi.so -> libXi.so.6.0*

lrwxrwxrwx   1 root     root           12 Nov 25 10:32
/usr/X11R6/lib/libXi.so.6 -> libXi.so.6.0*

-rwxr-xr-x   1 root     root        33560 Jan 18 18:12
/usr/X11R6/lib/libXi.so.6.0*

Hope that helps.

Dave



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