Debian Bug report logs - #633152
gtk-led-askpass: FTBFS with ld --as-needed

version graph

Package: gtk-led-askpass; Maintainer for gtk-led-askpass is Dafydd Harries <daf@debian.org>;

Reported by: Sebastian Carneiro <scarneiro@fibertel.com.ar>

Date: Sat, 9 Jul 2011 01:45:01 UTC

Severity: normal

Tags: patch

Found in version gtk-led-askpass/0.10-2

Fixed in version 0.11-1+rm

Done: Debian FTP Masters <ftpmaster@ftp-master.debian.org>

Bug is archived. No further changes may be made.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Dafydd Harries <daf@debian.org>:
Bug#633152; Package gtk-led-askpass. (Sat, 09 Jul 2011 01:45:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sebastian Carneiro <scarneiro@fibertel.com.ar>:
New Bug report received and forwarded. Copy sent to Dafydd Harries <daf@debian.org>. (Sat, 09 Jul 2011 01:45:04 GMT) Full text and rfc822 format available.

Message #5 received at submit@bugs.debian.org (full text, mbox):

From: Sebastian Carneiro <scarneiro@fibertel.com.ar>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: gtk-led-askpass: FTBFS with ld --as-needed
Date: Fri, 08 Jul 2011 22:32:52 -0300
[Message part 1 (text/plain, inline)]
Package: gtk-led-askpass
Version: 0.10-2
Severity: normal
Tags: patch
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu oneiric ubuntu-patch



*** /tmp/tmphYxZ60

In Ubuntu, the default configuration for the linker includes the flag 
--as-needed. With this flag activated this package fails to build
from source. 

The related bug report is: 

https://bugs.launchpad.net/ubuntu/oneiric/+source/gtk-led-askpass/+bug/770853

The following build log snippet shows the error obtained:

Excerpt 1367 lines into the build log:

/build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:224: undefined reference to `gtk_widget_get_type'
/build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:293: undefined reference to `g_type_check_instance_cast'
/build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:293: undefined reference to `gdk_keyboard_grab'
/build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:297: undefined reference to `g_usleep'
/build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:307: undefined reference to `g_type_check_instance_cast'
/build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:307: undefined reference to `gtk_window_set_keep_above'
/build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:310: undefined reference to `g_type_check_instance_cast'
/build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:310: undefined reference to `gtk_dialog_run'
/build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:313: undefined reference to `gdk_keyboard_ungrab'
/build/buildd/gtk-led-askpass-0.10/gtk-led-askpass.c:317: undefined reference to `g_print'
collect2: ld returned 1 exit status
make[1]: *** [gtk-led-askpass] Error 1
make[1]: Leaving directory `/build/buildd/gtk-led-askpass-0.10'
make: *** [build-stamp] Error 2
dpkg-buildpackage: error: debian/rules build gave error exit status 2
******************************************************************************
Build finished at 20110423-0749
FAILED [dpkg-buildpackage died]
Purging chroot-autobuild/build/buildd/gtk-led-askpass-0.10

To reproduce this bug:

- prepend the flag --as-needed to the linker command, adding 
-Wl,--as-needed to ldflags variable in Makefile 

or

- Build this package with the latest alpha 2 release of Ubuntu Oneiric from:

http://cdimage.ubuntu.com/releases/oneiric/alpha-2/oneiric-alternate-i386.iso

More info regarding linker related changes can be found in:

http://lists.debian.org/debian-devel-announce/2011/02/msg00011.html

To fix this issue, this patch produces the following changes:

  * Makefile: moved library parameters passed to ld to the end, 
    fixing FTBFS when building with ld --as-needed flag.


Thanks for considering the patch.


-- 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.38-8-generic (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
[tmpVRnLha (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Dafydd Harries <daf@debian.org>:
Bug#633152; Package gtk-led-askpass. (Sat, 09 Jul 2011 02:03:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sebastián Carneiro <scarneiro@fibertel.com.ar>:
Extra info received and forwarded to list. Copy sent to Dafydd Harries <daf@debian.org>. (Sat, 09 Jul 2011 02:03:04 GMT) Full text and rfc822 format available.

Message #10 received at 633152@bugs.debian.org (full text, mbox):

From: Sebastián Carneiro <scarneiro@fibertel.com.ar>
To: 633152@bugs.debian.org
Subject: Malformed patch
Date: Fri, 08 Jul 2011 22:53:58 -0300
Sorry, the patch went malformed.  I will upload it in a moment.

Best regards, 

Sebastian Carneiro
scarneiro@fibertel.com.ar





Information forwarded to debian-bugs-dist@lists.debian.org, Dafydd Harries <daf@debian.org>:
Bug#633152; Package gtk-led-askpass. (Sat, 09 Jul 2011 02:21:04 GMT) Full text and rfc822 format available.

Acknowledgement sent to Sebastian Carneiro <scarneiro@fibertel.com.ar>:
Extra info received and forwarded to list. Copy sent to Dafydd Harries <daf@debian.org>. (Sat, 09 Jul 2011 02:21:04 GMT) Full text and rfc822 format available.

Message #15 received at 633152@bugs.debian.org (full text, mbox):

From: Sebastian Carneiro <scarneiro@fibertel.com.ar>
To: Debian Bug Tracking System <633152@bugs.debian.org>
Subject: gtk-led-askpass: Proposed patch
Date: Fri, 08 Jul 2011 23:19:30 -0300
[Message part 1 (text/plain, inline)]
Package: gtk-led-askpass
Severity: normal


Attached is the patch that I failed to send in the original bug report. 

Thanks for considering it.

Best regards, 

Sebastian Carneiro
scarneiro@fibertel.com.ar

-- 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.38-8-generic (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
[gtk-led-askpass_0.10-2ubuntu2.debdiff (text/x-diff, attachment)]

Reply sent to Debian FTP Masters <ftpmaster@ftp-master.debian.org>:
You have taken responsibility. (Fri, 02 Dec 2011 16:51:11 GMT) Full text and rfc822 format available.

Notification sent to Sebastian Carneiro <scarneiro@fibertel.com.ar>:
Bug acknowledged by developer. (Fri, 02 Dec 2011 16:51:11 GMT) Full text and rfc822 format available.

Message #20 received at 633152-done@bugs.debian.org (full text, mbox):

From: Debian FTP Masters <ftpmaster@ftp-master.debian.org>
To: 381023-done@bugs.debian.org,539727-done@bugs.debian.org,610827-done@bugs.debian.org,633152-done@bugs.debian.org,
Cc: gtk-led-askpass@packages.debian.org, gtk-led-askpass@packages.qa.debian.org
Subject: Bug#650672: Removed package(s) from unstable
Date: Fri, 02 Dec 2011 16:50:20 +0000
Version: 0.11-1+rm

Dear submitter,

as the package gtk-led-askpass 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 http://bugs.debian.org/650672

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

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

Debian distribution maintenance software
pp.
Alexander Reichle-Schmehl (the ftpmaster behind the curtain)




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Sat, 31 Dec 2011 07:37:13 GMT) Full text and rfc822 format available.

Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sun Apr 20 00:16:25 2014; Machine Name: beach.debian.org

Debian Bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.