GNOME Bugzilla – Bug 500179
Missing X11 link flags
Last modified: 2008-08-31 11:21:26 UTC
Hi, When building with -z defs in LDFLAGS: .libs/gnome-breakpad.o: In function `release_grabs': /home/lool/svn/gnome/bug-buddy/gnome-breakpad/gnome-breakpad.cc:184: undefined reference to `XUngrabServer' Seems breakpad needs X11 but doesn't link to it. Bye,
Created attachment 99770 [details] [review] Require X11; link gnome-bp to X11 libs
Created attachment 99774 [details] [review] Require X11; link gnome-bp to X11 libs; v2 Patches the proper place now; friendlier for the days where USE_GOOGLE_BREAKPAD might be false too.
just committed the patch in bug 535098 - please feel free to contradict. :-D
I committed a different fix to trunk, removing direct calls to the X api and replacing them with the gdk_x11 equivalent function. This allows do not mention directly x11 in the configure script and rely on Gdk doing the magic. Please reopen and complain if there's still something wrong with this solution. 2008-08-31 Cosimo Cecchi <cosimoc@gnome.org> * configure.in: * gnome-breakpad/gnome-breakpad.cc: Replace a direct call to X API with gdk_x11, and do not specify x11 anymore as a required module in the configure script. Removed a bit of duplicate code. This should also fix bug #500179.