parole uses some symbols from the libX11 library, without directly linking to it. This currently works on most linkers, but will failed on newer ones and possibly with gnuld soon upstream too. /usr/bin/ld: parole-button.o: undefined reference to symbol 'XGrabKey' /usr/bin/ld: note: 'XGrabKey' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line /usr/bin/ld: ../../common/.libs/libparolescreensaver.a(libparolescreensaver_la-parole-screensaver.o): undefined reference to symbol 'XResetScreenSaver' /usr/bin/ld: note: 'XResetScreenSaver' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line Here's a hacky fix to Makefile.in that fixes it. You will want to make a better fix in the autotools files. diff -Nur parole-0.2.0.2.orig/browser-plugin/media-plugin/Makefile.in parole-0.2.0.2/browser-plugin/media-plugin/Makefile.in --- parole-0.2.0.2.orig/browser-plugin/media-plugin/Makefile.in 2010-01-25 04:47:24.000000000 -0700 +++ parole-0.2.0.2/browser-plugin/media-plugin/Makefile.in 2010-02-18 15:16:52.000000000 -0700 @@ -198,7 +198,7 @@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ LD = @LD@ -LDFLAGS = @LDFLAGS@ +LDFLAGS = @LDFLAGS@ -lX11 LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ LIBNOTIFY_REQUIRED_VERSION = @LIBNOTIFY_REQUIRED_VERSION@ diff -Nur parole-0.2.0.2.orig/src/Makefile.in parole-0.2.0.2/src/Makefile.in --- parole-0.2.0.2.orig/src/Makefile.in 2010-01-25 04:47:27.000000000 -0700 +++ parole-0.2.0.2/src/Makefile.in 2010-02-18 13:55:57.000000000 -0700 @@ -205,7 +205,7 @@ INTLTOOL_PERL = @INTLTOOL_PERL@ INTLTOOL_UPDATE = @INTLTOOL_UPDATE@ LD = @LD@ -LDFLAGS = @LDFLAGS@ +LDFLAGS = @LDFLAGS@ -lX11 LIBNOTIFY_CFLAGS = @LIBNOTIFY_CFLAGS@ LIBNOTIFY_LIBS = @LIBNOTIFY_LIBS@ LIBNOTIFY_REQUIRED_VERSION = @LIBNOTIFY_REQUIRED_VERSION@
Created attachment 3532 Link to libX11 using autotools The following patch fixes the issue for me.
Looks good to me.
that fixes linking with stricter linkers, but it should prolly also add LIBX11_CFLAGS to INCLUDES
Fixes the linking for me, with gold on Ubuntu 12.04
Thanks for the patch, applied it (http://git.xfce.org/apps/parole/commit/?id=c7f57add6f9c31e8f59888514d107fcb520830f5).