Hi, With LDFLAGS+=-Wl,-z,defs -Wl,--as-needed, tasklist fails to build with the following error: CCLD libtasklist.la .libs/libtasklist_la-tasklist-widget.o: In function `xfce_tasklist_wireframe_update': /home/mrpouit/Packaging/packages/pkg-xfce/desktop/branches/experimental/build-area/xfce4-panel-4.7.1/plugins/tasklist/tasklist-widget.c:1858: undefined reference to `XCreateWindow' /home/mrpouit/Packaging/packages/pkg-xfce/desktop/branches/experimental/build-area/xfce4-panel-4.7.1/plugins/tasklist/tasklist-widget.c:1873: undefined reference to `XShapeCombineRectangles' /home/mrpouit/Packaging/packages/pkg-xfce/desktop/branches/experimental/build-area/xfce4-panel-4.7.1/plugins/tasklist/tasklist-widget.c:1877: undefined reference to `XMapWindow' /home/mrpouit/Packaging/packages/pkg-xfce/desktop/branches/experimental/build-area/xfce4-panel-4.7.1/plugins/tasklist/tasklist-widget.c:1880: undefined reference to `XCreateGC' /home/mrpouit/Packaging/packages/pkg-xfce/desktop/branches/experimental/build-area/xfce4-panel-4.7.1/plugins/tasklist/tasklist-widget.c:1881: undefined reference to `XSetForeground' /home/mrpouit/Packaging/packages/pkg-xfce/desktop/branches/experimental/build-area/xfce4-panel-4.7.1/plugins/tasklist/tasklist-widget.c:1884: undefined reference to `XDrawRectangle' /home/mrpouit/Packaging/packages/pkg-xfce/desktop/branches/experimental/build-area/xfce4-panel-4.7.1/plugins/tasklist/tasklist-widget.c:1888: undefined reference to `XDrawRectangle' /home/mrpouit/Packaging/packages/pkg-xfce/desktop/branches/experimental/build-area/xfce4-panel-4.7.1/plugins/tasklist/tasklist-widget.c:1893: undefined reference to `XFreeGC' /home/mrpouit/Packaging/packages/pkg-xfce/desktop/branches/experimental/build-area/xfce4-panel-4.7.1/plugins/tasklist/tasklist-widget.c:1839: undefined reference to `XMoveResizeWindow' /home/mrpouit/Packaging/packages/pkg-xfce/desktop/branches/experimental/build-area/xfce4-panel-4.7.1/plugins/tasklist/tasklist-widget.c:1848: undefined reference to `XShapeCombineRectangles' .libs/libtasklist_la-tasklist-widget.o: In function `xfce_tasklist_wireframe_destroy': /home/mrpouit/Packaging/packages/pkg-xfce/desktop/branches/experimental/build-area/xfce4-panel-4.7.1/plugins/tasklist/tasklist-widget.c:1806: undefined reference to `XUnmapWindow' /home/mrpouit/Packaging/packages/pkg-xfce/desktop/branches/experimental/build-area/xfce4-panel-4.7.1/plugins/tasklist/tasklist-widget.c:1807: undefined reference to `XDestroyWindow' .libs/libtasklist_la-tasklist-widget.o: In function `xfce_tasklist_wireframe_hide': /home/mrpouit/Packaging/packages/pkg-xfce/desktop/branches/experimental/build-area/xfce4-panel-4.7.1/plugins/tasklist/tasklist-widget.c:1789: undefined reference to `XUnmapWindow' collect2: ld returned 1 exit status make[5]: *** [libtasklist.la] Error 1 I think it lacks the x11 lib in libtasklist_la_LIBADD? Thanks.
Indeed, fixed in 1d95e87.
Hi, I just retried with the new 4.7.2 (sorry, I didn't have time to test the git version earlier), and the issue is only partly fixed; it still fails to link with --as-needed: CCLD libtasklist.la .libs/libtasklist_la-tasklist-widget.o: In function `xfce_tasklist_wireframe_update': /home/mrpouit/Packaging/packages/pkg-xfce/desktop/branches/experimental/build-area/xfce4-panel-4.7.2/plugins/tasklist/tasklist-widget.c:1873: undefined reference to `XShapeCombineRectangles' /home/mrpouit/Packaging/packages/pkg-xfce/desktop/branches/experimental/build-area/xfce4-panel-4.7.2/plugins/tasklist/tasklist-widget.c:1848: undefined reference to `XShapeCombineRectangles' Not sure why, maybe "XShapeCombineRectangles" is in a different lib? Thanks.
In that case f92ba56 should fix it.