Re: Grandr and libs problems
- From: Michael Closson <mclosson speedymail org>
- To: garnome-list gnome org
- Subject: Re: Grandr and libs problems
- Date: Wed, 29 Oct 2003 12:06:20 -0700
Have a look in the file config.log that configure generates. It is in
.../garnome-0.27.1/gnome/grandr_applet/work/main.d/grandr_applet-0.2
Search for XRRSetScreenConfigAndRate. This is the error I get on my
system.
configure:4867: checking for XRRSetScreenConfigAndRate in -lXrandr
configure:4898: gcc3 -o conftest -g
-I/usr/scratch/closson/garnome-0.27.1/include -I/usr/X11R6/include
-L/usr/scratch/closson/garnome-0.27.1/lib -L/usr/X11R6/lib -march=athlon
-O3 -pipe -I/usr/scratch/closson/garnome-0.27.1/include
-I/usr/X11R6/include -L/usr/scratch/closson/garnome-0.27.1/lib
-L/usr/X11R6/lib conftest.c -lXrandr -lXrender -L/usr/X11R6/lib -lSM
-lICE -lX11 >&5
/tmp/ccF2bZLQ.o: In function `main':
/usr/scratch/closson/garnome-0.27.1_src/gnome/grandr_applet/work/main.d/grandr_applet-0.2/configure:4895: undefined reference to `XRRSetScreenConfigAndRate'
/usr/X11R6/lib/libXrandr.so: undefined reference to `XextAddDisplay'
/usr/X11R6/lib/libXrandr.so: undefined reference to `XextFindDisplay'
/usr/X11R6/lib/libXrandr.so: undefined reference to `XextRemoveDisplay'
/usr/X11R6/lib/libXrandr.so: undefined reference to `XMissingExtension'
collect2: ld returned 1 exit status
configure:4901: $? = 1
configure: failed program was:
| #line 4874 "configure"
| /* confdefs.h. */
|
| #define PACKAGE_NAME "grandr_applet"
| #define PACKAGE_TARNAME "grandr_applet"
| #define PACKAGE_VERSION "0.2"
| #define PACKAGE_STRING "grandr_applet 0.2"
| #define PACKAGE_BUGREPORT "nothing"
| #define PACKAGE "grandr_applet"
| #define VERSION "0.2"
| /* end confdefs.h. */
|
| /* Override any gcc2 internal prototype to avoid an error. */
| #ifdef __cplusplus
| extern "C"
| #endif
| /* We use char because int might match the return type of a gcc2
| builtin and then its argument prototype would still apply. */
| char XRRSetScreenConfigAndRate ();
| int
| main ()
| {
| XRRSetScreenConfigAndRate ();
| ;
| return 0;
| }
configure:4919: result: no
configure:4970: error: "Suitable Xrandr extension library not found -
you need at least X 4.3"
Can you post your output?
Mike
On Wed, 2003-10-29 at 11:19, flemingb wrote:
> This is what the script says:
>
> ...configure stuff...
> checking for libgnomeui-2.0 libpanelapplet-2.0... yes
> checking GRANDR_APPLET_CFLAGS... -DORBIT2=1 -pthread
> -I/root/garnome/include/libgnomeui-2.0 -I/root/garnome/include/libgnome-2.0
> -I/root/garnome/include/libgnomecanvas-2.0 -I/root/garnome/include/gtk-2.0
> -I/root/garnome/include/libart-2.0 -I/root/garnome/include/gconf/2
> -I/root/garnome/include/libbonoboui-2.0 -I/root/garnome/include/glib-2.0
> -I/root/garnome/lib/glib-2.0/include -I/root/garnome/include/orbit-2.0
> -I/root/garnome/include/libbonobo-2.0 -I/root/garnome/include/gnome-vfs-2.0
> -I/root/garnome/lib/gnome-vfs-2.0/include
> -I/root/garnome/include/bonobo-activation-2.0 -I/root/garnome/include/pango-1.0
> -I/root/garnome/include -I/root/garnome/include/freetype2
> -I/root/garnome/lib/gtk-2.0/include -I/root/garnome/include/atk-1.0
> -I/usr/X11R6/include -I/root/garnome/include/libxml2
> -I/root/garnome/include/panel-2.0
> checking GRANDR_APPLET_LIBS... -pthread -Wl,--export-dynamic -L/root/garnome/lib
> -L/usr/X11R6/lib -lpanel-applet-2 -lgnomeui-2 -lSM -lICE -lbonoboui-2 -lxml2
> -lpthread -lz -lgnomecanvas-2 -lgnome-2 -lpopt -lart_lgpl_2 -lpangoft2-1.0
> -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lpangoxft-1.0
> -lpangox-1.0 -lpango-1.0 -lbonobo-2 -lgconf-2 -lgnomevfs-2 -lbonobo-activation
> -lORBit-2 -lgobject-2.0 -lgthread-2.0 -lm -lgmodule-2.0 -ldl -lglib-2.0
> checking for XRRSetScreenConfigAndRate in -lXrandr... no
> configure: error: "Suitable Xrandr extension library not found - you need at
> least X 4.3"
> make: *** [configure-work/main.d/grandr_applet-0.2/configure] Error 1
>
> I have
> XFree86-4.3.0-2
> XFree86-devel-4.3.0-2
> XFree86-libs-4.3.0-2
> and Xrandr.h is in /usr/X11R6/include/X11/extensions
>
> > In general you probably can't make a shared library from the .o's of an
> > archive. They need to be compiled with the flag -fPIC to be in a shared
>
> That might explain why my ghetto lib didn't work.
>
> Ben
> ---
> > In any case, just because you can't list the symbols in a library
> > doesn't mean you can't link to it. What is the error you're getting
> > while building grandr_applet?
>
> > Mike
>
>
> > On Wed, 2003-10-29 at 00:44, flemingb wrote:
> > > Thanks Mike,
> > > I tried what you said - All I have are 2.0 libs for Xrandr. I looked in the
> > > libXrandr.a file, though, and extracted the static library from it -
> > > ar -x libXrandr.a Xrandr.o
> > > and then compiled that into a shared library
> > > gcc -shared -o libXrandr.so.2.0.new Xrandr.o
> > > and then renamed it to libXrandr.so.2.0 and redid the other (.so, .so.2)
> > > symlinks to point to that file, and then ran
> > > ldconfig and
> > > ldconfig -n /usr/X11R6/lib
> > >
> > > I can do a nm libXrandr.so | grep "XRRSetScreenConfigAndRate" now and get a
> > > valid result, but after running make clean & make in the grandr_applet
> directory,
> > > I still get the same exact problem. (all that stuff may have been worthless,
> > > though :) Any other ideas? Does RedHat (or someone else) have different versions
> > > of XFree86-libs rpm?
> > > Thanks again,
> > >
> > > Ben
> > --
> > Michael Closson <mclosson speedymail org>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]