[Pkg-running-devel] Bug#631693: (forw) Bug#631693: garmin-ant-downloader: FTBFS with ld --as-needed

Christian PERRIER bubulle at debian.org
Sun Jun 26 11:22:57 UTC 2011


Klaus, the following is probably worth being applied "upstream", ie in
your git repo.

Then, I would call this a "new upstream release", resync from your
repo and upload a new 201106xx release of garmin-ant-downloader to Debian.

Ilya, thanks for reporting and proposing a patch. I like this
Ubuntu-Debian interaction!

----- Forwarded message from Ilya Barygin <barygin at gmail.com> -----

Date: Sun, 26 Jun 2011 14:06:33 +0400
From: Ilya Barygin <barygin at gmail.com>
To: Debian Bug Tracking System <submit at bugs.debian.org>
Subject: [Pkg-running-devel] Bug#631693: garmin-ant-downloader: FTBFS with ld --as-needed
X-Mailer: reportbug 5.1.1ubuntu1
Reply-To: Ilya Barygin <barygin at gmail.com>, 631693 at bugs.debian.org
X-CRM114-Status: Good  ( pR: 28.9106 )

Package: garmin-ant-downloader
Version: 0:20100425-1
Severity: normal
Tags: patch
User: debian-gcc at lists.debian.org
Usertags: ld-as-needed

The package fails to build when --as-needed linker option is enabled,
because of incorrect order of parameters passed to ld. Here's a log of
failed build in Ubuntu:
https://launchpadlibrarian.net/72511233/buildlog_ubuntu-oneiric-i386.garmin-ant-downloader_0%3A20100425-1_FAILEDTOBUILD.txt.gz

See also
http://wiki.debian.org/ToolChain/DSOLinking#Only_link_with_needed_libraries

The attached patch was used in Ubuntu to fix the problem.
https://launchpad.net/ubuntu/+source/garmin-ant-downloader/0:20100425-1ubuntu1

-- System Information:
Debian Release: wheezy/sid
  APT prefers oneiric
  APT policy: (500, 'oneiric')
Architecture: i386 (i686)

Kernel: Linux 2.6.38-10-generic (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash

Description: Place needed libraries in a correct variable.
Author: Ilya Barygin <barygin at gmail.com>
--- garmin-ant-downloader-20100425.orig/Makefile
+++ garmin-ant-downloader-20100425/Makefile
@@ -1,5 +1,5 @@
 CFLAGS=-g -Wall `xml2-config --cflags`
-LDFLAGS=-lpthread -lm `xml2-config --libs`
+LDLIBS=-lpthread -lm `xml2-config --libs`
 
 all:	gant
 

_______________________________________________
Pkg-running-devel mailing list
Pkg-running-devel at lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-running-devel


----- End forwarded message -----






More information about the Pkg-running-devel mailing list