After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 313503 - gtk+/gdk fails to build, not finding lXrandr
gtk+/gdk fails to build, not finding lXrandr
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Backend: X11
2.8.x
Other All
: Normal major
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2005-08-15 05:16 UTC by Glynn Foster
Modified: 2005-08-15 23:58 UTC
See Also:
GNOME target: ---
GNOME version: 2.11/2.12



Description Glynn Foster 2005-08-15 05:16:59 UTC
Please describe the problem:
 gcc -shared  .libs/gdk.o .libs/gdkcairo.o .libs/gdkcolor.o .libs/gdkcursor.o
.libs/gdkdisplay.o .libs/gdkdnd.o .libs/gdkdraw.o .libs/gdkevents.o
.libs/gdkfont.o .libs/gdkgc.o .libs/gdkglobals.o .libs/gdkkeys.o
.libs/gdkkeyuni.o .libs/gdkimage.o .libs/gdkdisplaymanager.o .libs/gdkpango.o
.libs/gdkpixbuf-drawable.o .libs/gdkpixbuf-render.o .libs/gdkpixmap.o
.libs/gdkpolyreg-generic.o .libs/gdkrgb.o .libs/gdkrectangle.o
.libs/gdkregion-generic.o .libs/gdkscreen.o .libs/gdkselection.o
.libs/gdkvisual.o .libs/gdkwindow.o .libs/gdkenumtypes.o -Wl,--whole-archive
x11/.libs/libgdk-x11.a -Wl,--no-whole-archive  -Wl,--rpath
-Wl,/usr/src/packages/BUILD/gtk+-2.8.0/gdk-pixbuf/.libs -lXrandr -lXrender -lXi
-lXinerama -lpangocairo-1.0 -lpango-1.0 /usr/lib/libfreetype.so -lcairo
-lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0 -lm
../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so  -march=i586 -mcpu=i686 -Wl,-soname
-Wl,libgdk-x11-2.0.so.0 -Wl,-version-script -Wl,.libs/libgdk-x11-2.0.ver -o
.libs/libgdk-x11-2.0.so.0.800.0
/usr/lib/gcc-lib/i586-suse-linux/3.3.3/../../../../i586-suse-linux/bin/ld:
cannot find -lXrandr
collect2: ld returned 1 exit status
make[2]: *** [libgdk-x11-2.0.la] Error 1
make[2]: Leaving directory `/usr/src/packages/BUILD/gtk+-2.8.0/gdk'

Adding a -L/usr/X11R6/lib to GDK_DEP_LIBS in the Makefile makes it work again,
but can't seem to figure out the correct configure.in magic

Steps to reproduce:
1. 
2. 
3. 


Actual results:


Expected results:


Does this happen every time?


Other information:
Comment 1 Glynn Foster 2005-08-15 23:58:39 UTC
This was fixed in HEAD -

2005-08-15  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Add -lXext to GDK_EXTRA_LIBS in absence of pkg-config
        files for x11/xext. (Jonas Bonn)

2005-08-15  Owen Taylor  <otaylor@redhat.com>

        * configure.in: Fix have_base_pc / have_base_x_pc typo.