! 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 !
xfprint indirectly links to libX11
Status:
RESOLVED: DUPLICATE
Product:
Xfprint4
Component:
General

Comments

Description Kevin Fenzi 2010-02-14 22:56:15 CET
xfprint uses some symbols from libX11, but does not directly link to it. 
This should be corrected. 

See https://fedoraproject.org/wiki/Features/ChangeInImplicitDSOLinking
for more info. 

The error(s):

/usr/bin/ld: xfprint4_manager-main.o: undefined reference to symbol 'XDefaultScreen'
/usr/bin/ld: note: 'XDefaultScreen' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line

/usr/bin/ld: xfprint4-main.o: undefined reference to symbol 'XDefaultScreen'
/usr/bin/ld: note: 'XDefaultScreen' is defined in DSO /usr/lib64/libX11.so.6 so try adding it to the linker command line

A hacky patch (you will want to add the -lX11 properly in autoconf files): 

diff -Nur xfprint-4.6.0.orig/xfprint/Makefile.in xfprint-4.6.0/xfprint/Makefile.in
--- xfprint-4.6.0.orig/xfprint/Makefile.in	2009-02-24 23:37:08.000000000 -0700
+++ xfprint-4.6.0/xfprint/Makefile.in	2010-02-14 15:32:17.000000000 -0700
@@ -168,7 +168,7 @@
 INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
 INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
 LD = @LD@
-LDFLAGS = @LDFLAGS@
+LDFLAGS = @LDFLAGS@ -lX11
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
diff -Nur xfprint-4.6.0.orig/xfprint-manager/Makefile.in xfprint-4.6.0/xfprint-manager/Makefile.in
--- xfprint-4.6.0.orig/xfprint-manager/Makefile.in	2009-02-24 23:37:04.000000000 -0700
+++ xfprint-4.6.0/xfprint-manager/Makefile.in	2010-02-14 15:43:04.000000000 -0700
@@ -163,7 +163,7 @@
 INTLTOOL_XML_NOMERGE_RULE = @INTLTOOL_XML_NOMERGE_RULE@
 INTLTOOL_XML_RULE = @INTLTOOL_XML_RULE@
 LD = @LD@
-LDFLAGS = @LDFLAGS@
+LDFLAGS = @LDFLAGS@ -lX11
 LIBOBJS = @LIBOBJS@
 LIBS = @LIBS@
 LIBTOOL = @LIBTOOL@
Comment 1 Lionel Le Folgoc 2010-10-25 20:04:38 CEST

*** This bug has been marked as a duplicate of bug 5997 ***

Bug #6237

Reported by:
Kevin Fenzi
Reported on: 2010-02-14
Last modified on: 2010-10-25

People

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

Version

Attachments

Additional information