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 xfprint4 fails to build when using it: libtool: link: x86_64-linux-gnu-gcc -shared .libs/cups_plugin_la-cups.o -lxfcegui4 /usr/lib/libgtk-x11-2.0.so -lxfce4util /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 /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 -lfontconfig /usr/lib/libgobject-2.0.so /usr/lib/libgmodule-2.0.so /usr/lib/libglib-2.0.so -lcups -lgssapi_krb5 /usr/lib/libgnutls.so -L/usr/lib /usr/lib/libtasn1.so /usr/lib/libgcrypt.so /usr/lib/libgpg-error.so -lz -lpthread -lm -lcrypt -Wl,-z -Wl,defs -Wl,--as-needed -Wl,--export-dynamic -Wl,-soname -Wl,cups_plugin.so -o .libs/cups_plugin.so .libs/cups_plugin_la-cups.o: In function `customize_printer_list_window': /tmp/buildd/xfprint4-4.6.0/printing-systems/cups/cups.c:353: undefined reference to `printer_list_window_get_ui_manager' .libs/cups_plugin_la-cups.o: In function `action_set_default_printer_cb': /tmp/buildd/xfprint4-4.6.0/printing-systems/cups/cups.c:388: undefined reference to `printer_list_window_get_selected_printer' .libs/cups_plugin_la-cups.o: In function `get_default_printer': /tmp/buildd/xfprint4-4.6.0/printing-systems/cups/cups.c:292: undefined reference to `printer_lookup_byname' collect2: ld returned 1 exit status make[4]: *** [cups_plugin.la] Error 1 make[4]: Leaving directory `/tmp/buildd/xfprint4-4.6.0/printing-systems/cups' make[3]: *** [all-recursive] Error 1 make[3]: Leaving directory `/tmp/buildd/xfprint4-4.6.0/printing-systems' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/tmp/buildd/xfprint4-4.6.0' make[1]: *** [all] Error 2 make[1]: Leaving directory `/tmp/buildd/xfprint4-4.6.0' make: *** [build-stamp] Error 2 Cheers, -- Yves-Alexis
Created attachment 2238 Patch to fix build with -Wl,--as-needed This patch fixes the problem here (well I need to do it for Makefile.in in the tarball, but for trunk this one is the correct one) Cheers,
Product EOL (End-of-life)