Your message dated Fri, 31 May 2013 21:24:09 +0000
with message-id <[email protected]>
and subject line Bug#671765: fixed in xpdf 3.03-11
has caused the Debian Bug report #671765,
regarding xpdf: 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 [email protected]
immediately.)


-- 
671765: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=671765
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: xpdf
Version: 3.03-9
Severity: normal
Tags: patch
User: [email protected]
Usertags: ld-as-needed

Hello,

xpdf 3.03-9 will FTBFS when trying to link with --as-needed.
The problem is in debian/rules passing the libs to link with in LDFLAGS
instead of LIBS (the correct variable for this).
Attached is a patch which fixes it.

This isn't a problem for Debian (yet), but as Ubuntu uses ld --as-needed
already by default, xpdf FTBFS there:
,----[ 
https://launchpadlibrarian.net/104399108/buildlog_ubuntu-quantal-i386.xpdf_3.03-9_FAILEDTOBUILD.txt.gz
 ]-
| g++ -Wl,-Bsymbolic-functions -fPIE -pie -Wl,-z,relro -Wl,-z,now -lXm 
-lpoppler -lXt -lX11   -o build/xpdf.real build/*.o
| build/xpdf.o: In function `main':
| /build/buildd/xpdf-3.03/build/xpdf.cc:342: undefined reference to 
`Object::memCheck(_IO_FILE*)'
| /build/buildd/xpdf-3.03/build/xpdf.cc:251: undefined reference to 
`GooString::GooString(char const*)'
| /build/buildd/xpdf-3.03/build/xpdf.cc:302: undefined reference to 
`GooString::GooString(char const*)'
| /build/buildd/xpdf-3.03/build/xpdf.cc:325: undefined reference to 
`GooString::~GooString()'
`----

Regards,
Michael

diff -Nru xpdf-3.03/debian/rules xpdf-3.03/debian/rules
--- xpdf-3.03/debian/rules	2012-02-25 02:05:38.000000000 +0100
+++ xpdf-3.03/debian/rules	2012-05-06 19:55:56.000000000 +0200
@@ -4,7 +4,7 @@
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
 includes=$(strip $(shell pkg-config --cflags poppler))
-LDFLAGS+=-lXm $(shell pkg-config --libs poppler --libs xt --libs x11)
+LIBS+=-lXm $(shell pkg-config --libs poppler --libs xt --libs x11)
 CPPFLAGS+=$(includes) $(includes)/goo $(includes)/splash -Wno-write-strings -DHAVE_DIRENT_H
 CPPFLAGS+=-Wno-format-extra-args -DSYSTEM_XPDFRC=\"/etc/xpdf/xpdfrc\"
 
@@ -28,7 +28,7 @@
 	mv build/parseargs.c build/parseargs.cc
 
 override_dh_auto_build: $(objects)
-	$(CXX) $(LDFLAGS) -o build/xpdf.real build/*.o
+	$(CXX) $(LDFLAGS) -o build/xpdf.real build/*.o $(LIBS)
 
 %:
 	dh ${@}

--- End Message ---
--- Begin Message ---
Source: xpdf
Source-Version: 3.03-11

We believe that the bug you reported is fixed in the latest version of
xpdf, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Michael Gilbert <[email protected]> (supplier of updated xpdf package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Fri, 31 May 2013 19:33:24 +0000
Source: xpdf
Binary: xpdf
Architecture: source amd64
Version: 3.03-11
Distribution: unstable
Urgency: low
Maintainer: Michael Gilbert <[email protected]>
Changed-By: Michael Gilbert <[email protected]>
Description: 
 xpdf       - Portable Document Format (PDF) reader
Closes: 622877 671765 697098 707818 707927
Changes: 
 xpdf (3.03-11) unstable; urgency=low
 .
   * Bump standards to 3.9.4.
   * Fix printing issue (closes: #622877).
   * Add libxt-dev build dependency (closes: #707927).
   * Support linking with --as-needed (closes: #671765).
   * Switch to libmotif instead of lesstif (closes: #697098).
   * Replace and conflict with xpdf-reader (closes: #707818).
Checksums-Sha1: 
 7302e10d1f6fa5971efabaf670dcf5c04c2cb4a4 2652 xpdf_3.03-11.dsc
 f731861ed74f7c433662debc1f21055744dfef3a 38669 xpdf_3.03-11.debian.tar.gz
 f5a960ae843488bdd1f924ccd00911337f09bd07 198342 xpdf_3.03-11_amd64.deb
Checksums-Sha256: 
 4a60d75078bda3af2cef9ddce4f2bc0209bdc993792be1dce2b538b8fd96e3c4 2652 
xpdf_3.03-11.dsc
 14bf48b7cf39e056253fd061427275f0e1d6bf5e1a65740429f41065fdc7e59c 38669 
xpdf_3.03-11.debian.tar.gz
 9f4b593c1276a017307a86043feac0eecc42121c24382062ff87b70e2f7a5f1f 198342 
xpdf_3.03-11_amd64.deb
Files: 
 2be35b7c7c6596ca877d738510e86b6e 2652 text optional xpdf_3.03-11.dsc
 2789ba24fdd9567bd541afcc4941e9fc 38669 text optional xpdf_3.03-11.debian.tar.gz
 aa9d264b0ede1f1ecb81d8452c0c76c2 198342 text optional xpdf_3.03-11_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQQcBAEBCAAGBQJRqQVBAAoJELjWss0C1vRz5NcgALt1B7iCsPN3cmiUdFpag5Do
PdlrTy2sqgDBWCsGalKwJ1NagczEt1M2Qk4tu8QSVL53CSEPgX3fD1rv7HigOfMc
MiPzH7oDgTHqBOb8bOCO7FRj6HKcXN/Tl/lgFpFAFSlbHRnMwS1xSQ+PwLdQgLTc
YG3a1Dg9DJ1YA4GQK5ZL+UopU6tibAEHJxxetFsiJumb3kTuvh+WssPlybi/tzr6
jiLIXqG+Nn2sHs2g8rQ4L4Wppug30itWx1m1CiZQbpQWtLNKps4mzOJbuQJUmZr6
ut/tSxCn7M4mBCHtPTJ6x8dnUUOTTWUmXZcVblzFqctHI//G/tpvS/LIeBaJB+xS
HdEgM/isF5wlTQq4tjDrY7NKn18pWoKfV4e3QSk1QH++fTcO6tLOT4+UyPJawnjx
TWh8q6lMbe+yB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