Debian Bug report logs - #797128
bluez-tools FTBFS on wily-proposed due LDFLAGS misuse

version graph

Package: bluez-tools; Maintainer for bluez-tools is Debian Bluetooth Maintainers <pkg-bluetooth-maintainers@lists.alioth.debian.org>; Source for bluez-tools is src:bluez-tools (PTS, buildd, popcon).

Reported by: Tiago Stürmer Daitx <tiago.daitx@canonical.com>

Date: Thu, 27 Aug 2015 23:33:05 UTC

Severity: important

Tags: patch

Found in version 0.2.0~20140808

Fixed in version bluez-tools/0.2.0~20140808-4

Done: Nobuhiro Iwamatsu <iwamatsu@debian.org>

Bug is archived. No further changes may be made.

Forwarded to https://github.com/khvzak/bluez-tools/pull/5

Toggle useless messages

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


Report forwarded to debian-bugs-dist@lists.debian.org, tiago.daitx@canonical.com, Debian Bluetooth Maintainers <pkg-bluetooth-maintainers@lists.alioth.debian.org>:
Bug#797128; Package bluez-tools. (Thu, 27 Aug 2015 23:33:09 GMT) (full text, mbox, link).


Acknowledgement sent to Tiago Stürmer Daitx <tiago.daitx@canonical.com>:
New Bug report received and forwarded. Copy sent to tiago.daitx@canonical.com, Debian Bluetooth Maintainers <pkg-bluetooth-maintainers@lists.alioth.debian.org>. (Thu, 27 Aug 2015 23:33:09 GMT) (full text, mbox, link).


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

From: Tiago Stürmer Daitx <tiago.daitx@canonical.com>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: bluez-tools FTBFS on wily-proposed due LDFLAGS misuse
Date: Thu, 27 Aug 2015 20:29:08 -0300
Package: bluez-tools
Version: 0.2.0~20140808
Severity: important

Dear Maintainer,

As reported in LP: #1489661
https://bugs.launchpad.net/ubuntu/+source/bluez-tools/+bug/1489661

bluez-tools FTBFS in wily-proposed with the following error:

gcc  -g -O2 -fstack-protector-strong -Wformat -Werror=format-security
-lglib-2.0  -lgio-2.0 -lgobject-2.0 -lglib-2.0  -Wl,-Bsymbolic-functions
-Wl,-z,relro -o bt-adapter lib/agent-helper.o lib/dbus-common.o
lib/helpers.o lib/manager.o lib/obex_agent.o lib/properties.o lib/sdp.o
lib/bluez/adapter.o lib/bluez/agent_manager.o lib/bluez/alert_agent.o
lib/bluez/alert.o lib/bluez/cycling_speed.o
lib/bluez/cycling_speed_manager.o lib/bluez/device.o
lib/bluez/health_channel.o lib/bluez/health_device.o
lib/bluez/health_manager.o lib/bluez/heart_rate.o
lib/bluez/heart_rate_manager.o lib/bluez/media.o
lib/bluez/media_control.o lib/bluez/media_player.o lib/bluez/network.o
lib/bluez/network_server.o lib/bluez/obex/obex_agent_manager.o
lib/bluez/obex/obex_client.o lib/bluez/obex/obex_file_transfer.o
lib/bluez/obex/obex_message_access.o lib/bluez/obex/obex_message.o
lib/bluez/obex/obex_object_push.o lib/bluez/obex/obex_phonebook_access.o
lib/bluez/obex/obex_session.o lib/bluez/obex/obex_synchronization.o
lib/bluez/obex/obex_transfer.o lib/bluez/profile_manager.o
lib/bluez/proximity_monitor.o lib/bluez/proximity_reporter.o
lib/bluez/sim_access.o lib/bluez/thermometer.o
lib/bluez/thermometer_manager.o bt-adapter.o  
lib/agent-helper.o: In function `_find_device_pin':
/«PKGBUILDDIR»/src/lib/agent-helper.c:329: undefined reference to
`g_hash_table_lookup'
/«PKGBUILDDIR»/src/lib/agent-helper.c:330: undefined reference to
`g_hash_table_lookup'
<snip>
/«PKGBUILDDIR»/src/bt-adapter.c:301: undefined reference to
`g_variant_get_uint32'
/«PKGBUILDDIR»/src/bt-adapter.c:302: undefined reference to
`g_ascii_strcasecmp'
/«PKGBUILDDIR»/src/bt-adapter.c:303: undefined reference to
`g_variant_get_boolean'
collect2: error: ld returned 1 exit status
make[3]: *** [bt-adapter] Error 1
Makefile:574: recipe for target 'bt-adapter' failed
make[3]: Leaving directory '/«PKGBUILDDIR»/src'
make[2]: *** [all-recursive] Error 1
Makefile:362: recipe for target 'all-recursive' failed
make[2]: Leaving directory '/«PKGBUILDDIR»'
make[1]: *** [all] Error 2
Makefile:303: recipe for target 'all' failed
make[1]: Leaving directory '/«PKGBUILDDIR»'
dh_auto_build: make -j1 returned exit code 2
make: *** [build] Error 2
debian/rules:8: recipe for target 'build' failed
dpkg-buildpackage: error: debian/rules build gave error exit status 2

---

This is due to the libraries being set in LDFLAGS while they should
actually be set on LIBS or LDADD [1,2].

[1]
http://www.gnu.org/savannah-checkouts/gnu/autoconf/manual/autoconf-2.69/html_node/Preset-Output-Variables.html#index-LDFLAGS-112
[2] http://www.gnu.org/software/automake/manual/html_node/Linking.html

-- System Information:
Debian Release: jessie/sid
  APT prefers vivid-updates
  APT policy: (500, 'vivid-updates'), (500, 'vivid-security'), (500, 'vivid'), (100, 'vivid-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.19.0-26-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)



Information forwarded to debian-bugs-dist@lists.debian.org, tiago.daitx@canonical.com, Debian Bluetooth Maintainers <pkg-bluetooth-maintainers@lists.alioth.debian.org>:
Bug#797128; Package bluez-tools. (Fri, 28 Aug 2015 00:03:06 GMT) (full text, mbox, link).


Acknowledgement sent to Tiago Stürmer Daitx <tiago.daitx@canonical.com>:
Extra info received and forwarded to list. Copy sent to tiago.daitx@canonical.com, Debian Bluetooth Maintainers <pkg-bluetooth-maintainers@lists.alioth.debian.org>. (Fri, 28 Aug 2015 00:03:06 GMT) (full text, mbox, link).


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

From: Tiago Stürmer Daitx <tiago.daitx@canonical.com>
To: Debian Bug Tracking System <797128@bugs.debian.org>
Subject: Re: bluez-tools FTBFS on wily-proposed due LDFLAGS misuse
Date: Thu, 27 Aug 2015 20:58:41 -0300
[Message part 1 (text/plain, inline)]
Package: bluez-tools
Followup-For: Bug #797128
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu wily ubuntu-patch

Dear Maintainer,

The attached patch fixes FTBFS.

*** /tmp/tmpEiwsE1/bug_body

In Ubuntu, the attached patch was applied to achieve the following:

Fix FTBFS.


  * Non-maintainer upload.
  * debian/patches/use-ldadd.patch: fix AM_LDFLAGS misuse, use 
    LDADD instead (LP: #1489661, Closes: 797128) 


Thanks for considering the patch.


-- System Information:
Debian Release: jessie/sid
  APT prefers vivid-updates
  APT policy: (500, 'vivid-updates'), (500, 'vivid-security'), (500, 'vivid'), (100, 'vivid-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.19.0-26-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
[bluez-tools_0.2.0~20140808-3.1.debdiff (text/x-diff, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, tiago.daitx@canonical.com, Debian Bluetooth Maintainers <pkg-bluetooth-maintainers@lists.alioth.debian.org>:
Bug#797128; Package bluez-tools. (Fri, 28 Aug 2015 02:12:04 GMT) (full text, mbox, link).


Acknowledgement sent to Tiago Stürmer Daitx <tiago.daitx@canonical.com>:
Extra info received and forwarded to list. Copy sent to tiago.daitx@canonical.com, Debian Bluetooth Maintainers <pkg-bluetooth-maintainers@lists.alioth.debian.org>. (Fri, 28 Aug 2015 02:12:04 GMT) (full text, mbox, link).


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

From: Tiago Stürmer Daitx <tiago.daitx@canonical.com>
To: Debian Bug Tracking System <797128@bugs.debian.org>
Subject: Re: bluez-tools FTBFS on wily-proposed due LDFLAGS misuse
Date: Thu, 27 Aug 2015 23:08:19 -0300
[Message part 1 (text/plain, inline)]
Package: bluez-tools
Followup-For: Bug #797128
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu wily ubuntu-patch

Dear Maintainer,

Updated patch to adhere to dep3 standard. (thanks to ciphermox for
the heads up)

*** /tmp/tmp_Nop_S/bug_body

  * Non-maintainer upload.
  * debian/patches/use-ldadd.patch: fix AM_LDFLAGS misuse, use 
    LDADD instead (LP: #1489661, Closes: 797128) 


Thanks for considering the patch.


-- System Information:
Debian Release: jessie/sid
  APT prefers vivid-updates
  APT policy: (500, 'vivid-updates'), (500, 'vivid-security'), (500, 'vivid'), (100, 'vivid-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.19.0-26-generic (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
[bluez-tools_0.2.0~20140808-3.1.debdiff (text/x-diff, attachment)]

Added tag(s) patch. Request was from Tiago Sturmer Daitx <tiago.daitx@canonical.com> to control@bugs.debian.org. (Mon, 31 Aug 2015 00:00:04 GMT) (full text, mbox, link).


Set Bug forwarded-to-address to 'https://github.com/khvzak/bluez-tools/pull/5'. Request was from Tiago Stürmer Daitx <tiago.daitx@canonical.com> to control@bugs.debian.org. (Mon, 31 Aug 2015 00:33:10 GMT) (full text, mbox, link).


Reply sent to Nobuhiro Iwamatsu <iwamatsu@debian.org>:
You have taken responsibility. (Mon, 31 Aug 2015 09:51:05 GMT) (full text, mbox, link).


Notification sent to Tiago Stürmer Daitx <tiago.daitx@canonical.com>:
Bug acknowledged by developer. (Mon, 31 Aug 2015 09:51:05 GMT) (full text, mbox, link).


Message #24 received at 797128-close@bugs.debian.org (full text, mbox, reply):

From: Nobuhiro Iwamatsu <iwamatsu@debian.org>
To: 797128-close@bugs.debian.org
Subject: Bug#797128: fixed in bluez-tools 0.2.0~20140808-4
Date: Mon, 31 Aug 2015 09:49:49 +0000
Source: bluez-tools
Source-Version: 0.2.0~20140808-4

We believe that the bug you reported is fixed in the latest version of
bluez-tools, 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 797128@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Nobuhiro Iwamatsu <iwamatsu@debian.org> (supplier of updated bluez-tools 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@ftp-master.debian.org)


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

Format: 1.8
Date: Mon, 31 Aug 2015 17:55:27 +0900
Source: bluez-tools
Binary: bluez-tools
Architecture: source amd64
Version: 0.2.0~20140808-4
Distribution: unstable
Urgency: medium
Maintainer: Debian Bluetooth Maintainers <pkg-bluetooth-maintainers@lists.alioth.debian.org>
Changed-By: Nobuhiro Iwamatsu <iwamatsu@debian.org>
Description:
 bluez-tools - Set of tools to manage Bluetooth devices for linux
Closes: 797128 797356
Changes:
 bluez-tools (0.2.0~20140808-4) unstable; urgency=medium
 .
   * Add patches/use-ldadd.patch
     Fix AM_LDFLAGS misuse, use LDADD instead (LP: #1489661, Closes: 797128)
     Thanks to t Tiago Stürmer Daitx <tiago.daitx@canonical.com>.
   * Add patches/fix-implicity-pointer-conversion.patch
     Include gio-unix-2.0 module to configure.ac and gio/gunixinputstream.h
     to bt-device.c (LP: #1490204, Closes: 797356)
     Thanks to t Tiago Stürmer Daitx <tiago.daitx@canonical.com>.
   * Update control.
     - Bumped Standards-Version to 3.9.6.
     - Add Vcs-Git and Vcs-Browser.
Checksums-Sha1:
 545a28e5a25c97b6aea4248b689d5e05559c3742 2156 bluez-tools_0.2.0~20140808-4.dsc
 8a0e42a17fe1194ca960627e09cc807f5706498a 3600 bluez-tools_0.2.0~20140808-4.debian.tar.xz
 0725ae95991d9d73e271863f8db41ae32b8c77be 138956 bluez-tools_0.2.0~20140808-4_amd64.deb
Checksums-Sha256:
 29e5939b86857b97144221365b2402a0eaf1cb88fbff787887de6bd45dfbff3e 2156 bluez-tools_0.2.0~20140808-4.dsc
 f0943f9160f0563922b091148558cfe4ab21ce39cb0d0df4988016f6e834ef38 3600 bluez-tools_0.2.0~20140808-4.debian.tar.xz
 f9945ea7f51665f08199fa768c4cdc8634f53d43452aea82e0bf275924b4ec4a 138956 bluez-tools_0.2.0~20140808-4_amd64.deb
Files:
 4deb006457ffd080075ac7a7b1ab2c08 2156 utils optional bluez-tools_0.2.0~20140808-4.dsc
 1ae86a28ab12a3a0eabe2d8f03aaa9ec 3600 utils optional bluez-tools_0.2.0~20140808-4.debian.tar.xz
 28c75c785662fc3e37b4cdf6d9c444df 138956 utils optional bluez-tools_0.2.0~20140808-4_amd64.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQIcBAEBCAAGBQJV5B2GAAoJEDIkf7tArR+mu5MP/3jeDGDSY3towl+QTAsNqzWX
1N71e3HX9WWhsqDbjHRhyuGI5omx6YAn6TA7su+bF8ZDNdGmp1GUHkKl7m8MLsfo
pU8XK59mgwSbBTcJzkG1MbbWw1DqhL4WsxhNf5YfXGzZRZa0gu7Lazla73aXOjrN
3b5y/T7pEraqb79NdtqB4oJaOFB5EJc7luiuzRAW2xzsMDRMYoWOFWzxEcSzj7vV
mhZ2VD71667F2cn680vGldnUqOEplyUyudTfQXfcEqzWVAs350IEV6VllaJtsrwL
MHacpeGaTwphtFvE7HlV2izX+sKuPXrCOi8342EQ+2ayuKjBJ9KG3q8+LNJAqIT9
+7GYddbDk6Vl/dci+cL7iFSG+5ZoUgbJecDNGMgrgP9kC+N2tKBAFeHMEWbDFqwa
VCrf1EzfUFTfKLy5VYHxsVb3k8Y/ZXv1WryEmrfrTPcxglxWMPDp3W4c485u55OY
jbqka7sTvXA2Z8oFC3ck+UTTreloJuU0GH09y+N+PstEUY72jtAFAEh1/K1DuYqA
YPuX/7iXosYNEw6QcVWH8JcN/5VA8e98ahHnHiKSOO8ksHugrOvwPMPKt6O4+kY5
nIo9DkIiJRrvGP08kNQHU9Prv9CPohcO+XVKUPpEe3QkmBVYYCeaQUdN3SCkC7A9
GUaInEq5Yxb2eC7kFe+1
=kzFx
-----END PGP SIGNATURE-----




Bug archived. Request was from Debbugs Internal Request <owner@bugs.debian.org> to internal_control@bugs.debian.org. (Tue, 29 Sep 2015 07:34:32 GMT) (full text, mbox, link).


Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Wed Jan 3 18:34:28 2018; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.