--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: [advi]: FTBFS with linker flag --as-needed
- From: Stefan Potyra <sistpoty@ubuntu.com>
- Date: Sun, 19 Dec 2010 16:02:27 +0100
- Message-id: <20101219150227.26965.78085.reportbug@localhost.localdomain>
Package: advi
Version: 1.9.0-1
Severity: wishlist
Tags: patch
Hi,
advi fails to build from source if --as-needed is used as linker flag [1,2].
The reason is that --as-needed enforces a strict link ordering (symbol users in
front of symbol definitions).
Attached is a patch that fixes the problem.
Cheers,
Stefan.
[1]:
<http://people.ubuntuwire.org/~lucas/ubuntu-nbs/32/advi_1.9.0-1_lubuntu32.buildlog>
[2]:
<http://people.ubuntuwire.org/~lucas/ubuntu-nbs/64/advi_1.9.0-1_lubuntu64.buildlog>
-- System Information:
Debian Release: squeeze/sid
APT prefers natty-updates
APT policy: (500, 'natty-updates'), (500, 'natty-security'), (500, 'natty')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.37-10-generic (SMP w/4 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Index: advi-1.9.0/src/Makefile.am
===================================================================
--- advi-1.9.0.orig/src/Makefile.am 2010-03-24 08:52:41.000000000 +0100
+++ advi-1.9.0/src/Makefile.am 2010-12-19 15:32:36.392866917 +0100
@@ -75,7 +75,7 @@
COBJS = $(CSOURCES:.c=.o)
AM_CFLAGS = $(XINERAMA_CFLAGS) $(X_CFLAGS)
-AM_LINKFLAGS = $(XINERAMA_LIBS)
+LDADD = $(XINERAMA_LIBS)
AM_OCAMLCFLAGS = $(CAMLIMAGES_INCLUDES)
OTHER_LIBS = unix str
@@ -85,12 +85,12 @@
advi$(EXEEXT): $(COBJS) $(OCAMLOPTOBJS)
$(OCAMLOPT) -o advi$(EXEEXT) \
$(OCAMLCFLAGS) $(AM_OCAMLCFLAGS) $(AM_LINKFLAGS) \
- $(COBJS) $(OCAMLLIBS_OPT) $(OCAMLOPTOBJS)
+ $(COBJS) $(OCAMLLIBS_OPT) $(OCAMLOPTOBJS) $(LDADD)
advi.byt$(EXEEXT): $(COBJS) $(OCAMLBYTOBJS)
$(OCAMLC) -o advi.byt$(EXEEXT) \
$(OCAMLCFLAGS) $(AM_OCAMLCFLAGS) $(AM_LINKFLAGS) -custom \
- $(COBJS) $(OCAMLLIBS_BYT) $(OCAMLBYTOBJS)
+ $(COBJS) $(OCAMLLIBS_BYT) $(OCAMLBYTOBJS) $(LDADD)
install_hook: $(INSTALLEXEC) installdata
- texhash
Index: advi-1.9.0/src/Makefile.in
===================================================================
--- advi-1.9.0.orig/src/Makefile.in 2010-12-19 15:33:10.582866917 +0100
+++ advi-1.9.0/src/Makefile.in 2010-12-19 15:34:47.332866917 +0100
@@ -253,7 +253,7 @@
OCAMLOPTOBJS = $(OCAMLBUILTSOURCES:.ml=.cmx) $(OCAMLSOURCES:.ml=.cmx)
COBJS = $(CSOURCES:.c=.o)
AM_CFLAGS = $(XINERAMA_CFLAGS) $(X_CFLAGS)
-AM_LINKFLAGS = $(XINERAMA_LIBS)
+LDADD = $(XINERAMA_LIBS)
AM_OCAMLCFLAGS = $(CAMLIMAGES_INCLUDES)
OTHER_LIBS = unix str
OCAMLLIBS_OPT = $(CAMLIMAGES_LIBS_NATIVE) $(OTHER_LIBS:=.cmxa)
@@ -519,12 +519,12 @@
advi$(EXEEXT): $(COBJS) $(OCAMLOPTOBJS)
$(OCAMLOPT) -o advi$(EXEEXT) \
$(OCAMLCFLAGS) $(AM_OCAMLCFLAGS) $(AM_LINKFLAGS) \
- $(COBJS) $(OCAMLLIBS_OPT) $(OCAMLOPTOBJS)
+ $(COBJS) $(OCAMLLIBS_OPT) $(OCAMLOPTOBJS) $(LDADD)
advi.byt$(EXEEXT): $(COBJS) $(OCAMLBYTOBJS)
$(OCAMLC) -o advi.byt$(EXEEXT) \
$(OCAMLCFLAGS) $(AM_OCAMLCFLAGS) $(AM_LINKFLAGS) -custom \
- $(COBJS) $(OCAMLLIBS_BYT) $(OCAMLBYTOBJS)
+ $(COBJS) $(OCAMLLIBS_BYT) $(OCAMLBYTOBJS) $(LDADD)
install_hook: $(INSTALLEXEC) installdata
- texhash
--- End Message ---
--- Begin Message ---
Source: advi
Source-Version: 1.9.0-4
We believe that the bug you reported is fixed in the latest version of
advi, which is due to be installed in the Debian FTP archive:
advi-examples_1.9.0-4_all.deb
to main/a/advi/advi-examples_1.9.0-4_all.deb
advi_1.9.0-4.debian.tar.gz
to main/a/advi/advi_1.9.0-4.debian.tar.gz
advi_1.9.0-4.dsc
to main/a/advi/advi_1.9.0-4.dsc
advi_1.9.0-4_amd64.deb
to main/a/advi/advi_1.9.0-4_amd64.deb
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 607530@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Ralf Treinen <treinen@debian.org> (supplier of updated advi 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 ftpmaster@debian.org)
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Format: 1.8
Date: Sun, 01 May 2011 14:38:45 +0200
Source: advi
Binary: advi advi-examples
Architecture: source amd64 all
Version: 1.9.0-4
Distribution: unstable
Urgency: low
Maintainer: Debian OCaml Maintainers <debian-ocaml-maint@lists.debian.org>
Changed-By: Ralf Treinen <treinen@debian.org>
Description:
advi - active DVI previewer and presenter
advi-examples - example presentations for Active-DVI (advi)
Closes: 607530 618270
Changes:
advi (1.9.0-4) unstable; urgency=low
.
* Change dependency on ghostscript to ghostscript-x (closes: #618270).
* Remove build-dependency on ocaml-nox since lintian is fixed.
* Patch linker_as_needed: fix FTBFS with linker flag --as-needed
(closes: #607530). Thanks a lot to Stefan Potyra for the patch!
* Standard-Version 3.9.2 (no change)
* do not start short description on an article.
* Patch examples-scripts: call directly perl interpreter in
examples/prosper/LL/pdfrotate.pl. Add dependency of advi-examples
on perl.
Checksums-Sha1:
0062986739c2f37c87dd11221b39ea99e72413c9 1663 advi_1.9.0-4.dsc
452b87bd1ab10ff3219dc1b59d69ef81a835cc94 21779 advi_1.9.0-4.debian.tar.gz
a84d1669a7aebe36e95b338e78a5da23d5484a51 5633812 advi_1.9.0-4_amd64.deb
0ddd5af78eddbe6d273f5f420332602024942fb3 3301838 advi-examples_1.9.0-4_all.deb
Checksums-Sha256:
1e96c571b58814e777eb7dbd06673ae6634d25d8bff0aeb019f781ba4f9bb80f 1663 advi_1.9.0-4.dsc
c7050442c89bfa5478d258a928931302968d212f482404db46c7010e98f7e6c6 21779 advi_1.9.0-4.debian.tar.gz
7d1dd7f7ceceba03f069a19a1d286e994dc92f84cb3a3f9f7445970a9b716475 5633812 advi_1.9.0-4_amd64.deb
b37bdf5733bfc8685864874006fd86fc8c6228b481b4050ccbefd57b8a1c0949 3301838 advi-examples_1.9.0-4_all.deb
Files:
9fa60b1d4c4b494fc2c0af3d3267f314 1663 tex optional advi_1.9.0-4.dsc
81b12784a3f964ee318b7613465f4e29 21779 tex optional advi_1.9.0-4.debian.tar.gz
d47fa1da8c907bf967b2eeb450259976 5633812 tex optional advi_1.9.0-4_amd64.deb
233eff83b7101d2876f9831d90af89b8 3301838 tex optional advi-examples_1.9.0-4_all.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
iEYEARECAAYFAk29XIMACgkQtzWmSeC6BMGZfwCgiiHaxsKyszawE7eSc1bdxzqS
N6kAoI1tpLzxFsI5qwsapXb7LKNfflyj
=eZBF
-----END PGP SIGNATURE-----
--- End Message ---