Re: configure.in changes



On Mon, 2005-08-15 at 22:46 +0200, Jonas Bonn wrote:
> No, that doesn't fix the problem.  I changed have_base_pc to
> have_base_x_pc as you said, but I get the same error as I had before. 
> I build using jhbuild, and the error output is as follows, for what
> it's worth:
> 
> gcc -g -O2 -Wall -o .libs/gtk-query-immodules-2.0 queryimmodules.o 
> ./.libs/libg tk-x11-2.0.so ../gdk-pixbuf/.libs/libgdk_pixbuf-2.0.so
> ../gdk/.libs/libgdk-x11-2 .0.so -Wl,--rpath -Wl,/home/jonas/local/lib
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XShmDetach'
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XSyncCreateCounter'
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XSyncDestroyCounter'
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XShapeCombineRectangles'
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XSyncInitialize'
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XSyncQueryExtension'
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XShapeGetRectangles'
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XShapeCombineMask'
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XShmCreateImage'
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XShmPutImage'
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XShapeQueryExtension'
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XShmAttach'
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XSyncSetCounter'
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XShmQueryVersion'
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XShmQueryExtension'
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XShmGetEventBase'
> ../gdk/.libs/libgdk-x11-2.0.so: undefined reference to `XShmCreatePixmap'
> collect2: ld returned 1 exit status
> 
> Like I mentioned before, libXext needs to be linked in, and the build
> works fine if I hand-edit the Makefile in the gdk subdirectory.
> Any other suggestions?

Try:

  if $have_base_x_pc ; then
    GDK_EXTRA_LIBS="$x_extra_libs"
  else
-    GDK_EXTRA_LIBS="$X_LIBS $x_extra_libs -lX11 $GDK_EXTRA_LIBS"
+    GDK_EXTRA_LIBS="$X_LIBS $x_extra_libs -lXext $GDK_EXTRA_LIBS"
  fi

						- Owen

Attachment: signature.asc
Description: This is a digitally signed message part



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