[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#671052: marked as done (gtklp: FTBFS with ld --as-needed)



Your message dated Tue, 09 Dec 2025 12:36:20 +0000
with message-id <[🔎] E1vSwx2-003VFh-2y@fasolo.debian.org>
and subject line Bug#1120761: Removed package(s) from unstable
has caused the Debian Bug report #671052,
regarding gtklp: FTBFS with ld --as-needed
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


-- 
671052: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=671052
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Package: gtklp
Version: 1.2.7-2.3
Severity: normal
Tags: patch
User: debian-gcc@lists.debian.org
Usertags: ld-as-needed

Hello,

trying to build gtklp in Ubuntu (which uses ld --as-needed by default)
resulted in the following linking error:

,----[ https://launchpadlibrarian.net/103699915/buildlog_ubuntu-quantal-i386.gtklp_1.2.7-2.3_FAILEDTOBUILD.txt.gz ]-
| libtool: link: gcc -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Wformat-security -Werror=format-security -Wall -o gtklp file.o general.o gtklp.o gtklp_functions.o gtklptab.o hpgl2.o image.o output.o ppd.o special.o text.o -Wl,-Bsymbolic-functions -Wl,-z -Wl,relro  -L/usr/lib/i386-linux-gnu -lX11 ../libgtklp/libgtklp.a -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 -lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 /usr/lib/i386-linux-gnu/libcairo.so -lpango-1.0 /usr/lib/i386-linux-gnu/libfreetype.so -lfontconfig -lgobject-2.0 -lglib-2.0 -lcups -lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lgnutls -L/lib/i386-linux-gnu -lgcrypt -lz -lpthread -lcrypt -lm
| /usr/bin/ld: ../libgtklp/libgtklp.a(libgtklp.o): undefined reference to symbol 'XOpenDisplay'
| /usr/bin/ld: note: 'XOpenDisplay' is defined in DSO /usr/lib/i386-linux-gnu/libX11.so so try adding it to the linker command line
`----

Although -lX11 is in the linker call the problem is in the argument
order (it's listed before libgtklp.a).
The patch from bug #554752 fixed only linking with --no-add-needed but
not with --as-needed.

Attached is a fixed patch which adds -lX11 to gtklp_LDADD (in
gtklp/Makefile.am) instead of LDFLAGS, fixing linking both with
--no-add-needed and --as-needed.

Regards,
Michael
Index: gtklp-1.2.7/gtklp/Makefile.am
===================================================================
--- gtklp-1.2.7.orig/gtklp/Makefile.am	2009-06-21 14:25:37.000000000 +0200
+++ gtklp-1.2.7/gtklp/Makefile.am	2012-05-01 16:04:00.000000000 +0200
@@ -9,5 +9,5 @@
 	duplex_short.xpm logo.xpm logo2.xpm logo2_k.xpm logo_k.xpm rarrow.xpm \
 	white.xpm
 
-gtklp_LDADD = $(top_builddir)/libgtklp/libgtklp.a $(GTK2_LIBS) $(GTK_LIBS) $(CUPS_LIBS) $(FORTE_LDFLAGS) 
+gtklp_LDADD = $(top_builddir)/libgtklp/libgtklp.a -lX11 $(GTK2_LIBS) $(GTK_LIBS) $(CUPS_LIBS) $(FORTE_LDFLAGS) 
 gtklp_LDFLAGS = $(CUPS_LDFLAGS)

--- End Message ---
--- Begin Message ---
Version: 1.3.4-5+rm

Dear submitter,

as the package gtklp has just been removed from the Debian archive
unstable we hereby close the associated bug reports.  We are sorry
that we couldn't deal with your issue properly.

For details on the removal, please see https://bugs.debian.org/1120761

The version of this package that was in Debian prior to this removal
can still be found using https://snapshot.debian.org/.

Please note that the changes have been done on the master archive and
will not propagate to any mirrors until the next dinstall run at the
earliest.

This message was generated automatically; if you believe that there is
a problem with it please contact the archive administrators by mailing
ftpmaster@ftp-master.debian.org.

Debian distribution maintenance software
pp.
Thorsten Alteholz (the ftpmaster behind the curtain)

--- End Message ---

Reply to: