! 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 !
xfprint4 fails to build with -Wl,--as-needed
Status:
RESOLVED: WONTFIX
Product:
Xfprint4
Component:
General

Comments

Description Yves-Alexis Perez editbugs 2009-03-15 14:37:01 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 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
Comment 1 Yves-Alexis Perez editbugs 2009-03-17 07:06:50 CET
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,
Comment 2 Robby Workman editbugs 2014-12-02 20:52:12 CET
Product EOL (End-of-life)

Bug #5104

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

People

Assignee:
Jean-François Wauthy
CC List:
1 user

Version

Attachments

Patch to fix build with -Wl,--as-needed (1.42 KB, patch)
2009-03-17 07:06 CET , Yves-Alexis Perez
no flags

Additional information