! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
xfce4-panel doesn't build with -Wl,--as-needed
Status:
RESOLVED: FIXED
Product:
Xfce4-panel
Component:
General

Comments

Description Yves-Alexis Perez editbugs 2009-03-15 13:31:00 CET
Hey,

I'm trying to build all Xfce core with --Wl,--as-needed in LDFLAGS. Some components already define it (thunar, libxfc4menu, xfce4-settings, exo and terminal, mainly), so I'm trying with the others.

It seems that panel fails to build when using it:

libtool: link:  x86_64-linux-gnu-gcc -shared  .libs/libxfce4panel_la-libxfce4panel-enum-types.o .libs/libxfce4panel_la-libxfce4panel-aliasdef.o .libs/libxfce4panel_la-libxfce4panel-marshal.o .libs/libxfce4panel_la-xfce-panel-window.o .libs/libxfce4panel_la-xfce-arrow-button.o .libs/libxfce4panel_la-xfce-itembar.o .libs/libxfce4panel_la-xfce-hvbox.o .libs/libxfce4panel_la-xfce-panel-convenience.o .libs/libxfce4panel_la-xfce-panel-external-item.o .libs/libxfce4panel_la-xfce-panel-external-plugin.o .libs/libxfce4panel_la-xfce-panel-internal-plugin.o .libs/libxfce4panel_la-xfce-panel-item-iface.o .libs/libxfce4panel_la-xfce-panel-plugin-iface.o .libs/libxfce4panel_la-xfce-panel-macros.o .libs/libxfce4panel_la-xfce-panel-plugin-messages.o   /usr/lib/libgtk-x11-2.0.so /usr/lib/libgdk-x11-2.0.so /usr/lib/libatk-1.0.so /usr/lib/libpangoft2-1.0.so /usr/lib/libgdk_pixbuf-2.0.so -lm /usr/lib/libpangocairo-1.0.so /usr/lib/libgio-2.0.so /usr/lib/libcairo.so /usr/lib/libpango-1.0.so /usr/lib/libfreetype.so -lz -lfontconfig /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so -lxfce4util /usr/lib/libglib-2.0.so  -Wl,-z -Wl,defs -Wl,--as-needed   -Wl,-soname -Wl,libxfce4panel.so.1 -Wl,-version-script -Wl,.libs/libxfce4panel.ver -o .libs/libxfce4panel.so.1.1.2
.libs/libxfce4panel_la-xfce-panel-item-iface.o: In function `IA__xfce_panel_item_focus_panel':
/tmp/buildd/xfce4-panel-4.6.0/libxfce4panel/xfce-panel-item-iface.c:221: undefined reference to `XSendEvent'
/tmp/buildd/xfce4-panel-4.6.0/libxfce4panel/xfce-panel-item-iface.c:209: undefined reference to `XInternAtom'
collect2: ld returned 1 exit status
make[4]: *** [libxfce4panel.la] Error 1

If you need more info, please ask :)

Cheers,
--
Yves-Alexis
Comment 1 Yves-Alexis Perez editbugs 2009-03-15 13:45:02 CET
And -lX11 .libs/libxfce4panel_la-xfce-panel-item-iface.o seems to work.
Comment 2 Nick Schermer editbugs 2009-03-15 15:20:13 CET
Should be fix0red in revision 29668.

Bug #5103

Reported by:
Yves-Alexis Perez
Reported on: 2009-03-15
Last modified on: 2009-03-15

People

Assignee:
Nick Schermer
CC List:
0 users

Version

Attachments

Additional information