[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1066330: marked as done (bluemon: FTBFS: bluemon-query.c:46:15: error: implicit declaration of function ‘strncmp’ [-Werror=implicit-function-declaration])



Your message dated Thu, 04 Apr 2024 16:19:02 +0000
with message-id <E1rsPnq-00AZm1-Dk@fasolo.debian.org>
and subject line Bug#1066330: fixed in bluemon 1.4-9
has caused the Debian Bug report #1066330,
regarding bluemon: FTBFS: bluemon-query.c:46:15: error: implicit declaration of function ‘strncmp’ [-Werror=implicit-function-declaration]
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 owner@bugs.debian.org
immediately.)


-- 
1066330: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1066330
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: bluemon
Version: 1.4-8
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: lucas@debian.org
Usertags: ftbfs-20240313 ftbfs-trixie ftbfs-impfuncdef

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.

This is most likely caused by a change in dpkg 1.22.6, that enabled
-Werror=implicit-function-declaration. For more information, see
https://wiki.debian.org/qa.debian.org/FTBFS#A2024-03-13_-Werror.3Dimplicit-function-declaration

Relevant part (hopefully):
> cc -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection `pkg-config --cflags dbus-1` -DVERSION=\"1.4\" -o bluemon-query bluemon-query.c -Wl,-z,relro -Wl,-z,now -L/usr/lib -lbluetooth `pkg-config --libs dbus-1`
> docbook-to-man bluemon.sgml > bluemon.1
> docbook-to-man bluemon-client.sgml > bluemon-client.1
> docbook-to-man bluemon-query.sgml > bluemon-query.1
> docbook-to-man bluemon-dbus.sgml > bluemon-dbus.7
> bluemon-query.c: In function ‘main’:
> bluemon-query.c:46:15: error: implicit declaration of function ‘strncmp’ [-Werror=implicit-function-declaration]
>    46 |          0 == strncmp("--help", argv[1], 7)) {
>       |               ^~~~~~~
> bluemon-query.c:28:1: note: include ‘<string.h>’ or provide a declaration of ‘strncmp’
>    27 | #include <stdlib.h>
>   +++ |+#include <string.h>
>    28 | 
> bluemon-query.c:46:42: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
>    46 |          0 == strncmp("--help", argv[1], 7)) {
>       |                                          ^
> <built-in>: note: built-in ‘strncmp’ declared here
> bluemon-query.c:93:34: warning: ‘strncmp’ argument 3 type is ‘int’ where ‘long unsigned int’ is expected in a call to built-in function declared without prototype [-Wbuiltin-declaration-mismatch]
>    93 |    else if (strncmp(address, "", 1))
>       |                                  ^
> <built-in>: note: built-in ‘strncmp’ declared here
> bluemon-query.c:94:14: warning: too many arguments for format [-Wformat-extra-args]
>    94 |       printf("nothing connected\n", address);
>       |              ^~~~~~~~~~~~~~~~~~~~~
> bluemon-client.c: In function ‘fork_and_run’:
> bluemon-client.c:81:7: warning: ignoring return value of ‘system’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
>    81 |       system(cmd);
>       |       ^~~~~~~~~~~
> bluetooth-monitor.c: In function ‘main’:
> bluetooth-monitor.c:756:10: error: implicit declaration of function ‘umask’ [-Werror=implicit-function-declaration]
>   756 |          umask(0);
>       |          ^~~~~
> cc1: some warnings being treated as errors
> make[1]: *** [Makefile:25: bluemon-query] Error 1


The full build log is available from:
http://qa-logs.debian.net/2024/03/13/bluemon_1.4-8_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20240313;users=lucas@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20240313&fusertaguser=lucas@debian.org&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

--- End Message ---
--- Begin Message ---
Source: bluemon
Source-Version: 1.4-9
Done: Andreas Beckmann <anbe@debian.org>

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

Debian distribution maintenance software
pp.
Andreas Beckmann <anbe@debian.org> (supplier of updated bluemon 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: Thu, 04 Apr 2024 17:55:45 +0200
Source: bluemon
Architecture: source
Version: 1.4-9
Distribution: unstable
Urgency: medium
Maintainer: Debian QA Group <packages@qa.debian.org>
Changed-By: Andreas Beckmann <anbe@debian.org>
Closes: 900194 1066330
Changes:
 bluemon (1.4-9) unstable; urgency=medium
 .
   * QA upload.
   * Fix FTCBFS, thanks to Helmut Grohne.  (Closes: #900194)
   * Fix building with -Werror=implicit-function-declaration.
     (Closes: #1066330)
Checksums-Sha1:
 b89d58e42e81d115a4428ef35b87e0f7d6d41455 1818 bluemon_1.4-9.dsc
 600bc91dee4d95de54cd6045fc5744bedd20d801 6284 bluemon_1.4-9.debian.tar.xz
 1f725a758528f8fcb7e8e95936e12be034b15e94 6010 bluemon_1.4-9_source.buildinfo
Checksums-Sha256:
 c82ba5f762fe9bc09a991679ae3e01a8a843d3bb979f99ef576ae01e9435afce 1818 bluemon_1.4-9.dsc
 f8556102faaf3e7ef9394c6b87a1d767312f19d668d097cbb17403a8ab381dd6 6284 bluemon_1.4-9.debian.tar.xz
 6e4bdd10189bb5464cbdeff797326c6125698c79f0aefa1cbd29e01aa277cbf0 6010 bluemon_1.4-9_source.buildinfo
Files:
 9d2c5da88db3f85da5d803df84fcaf10 1818 net optional bluemon_1.4-9.dsc
 d6d84403f6de0d305fd9026daa9cc7dc 6284 net optional bluemon_1.4-9.debian.tar.xz
 68b171ed5b06077c8bcee3ced4b67fa1 6010 net optional bluemon_1.4-9_source.buildinfo

-----BEGIN PGP SIGNATURE-----

iQJEBAEBCAAuFiEE6/MKMKjZxjvaRMaUX7M/k1np7QgFAmYOzfsQHGFuYmVAZGVi
aWFuLm9yZwAKCRBfsz+TWentCET2EACBPHmqqp4Lh/vdB+zdrobS4ZcB8Y1Rptum
YpkFwSRIXZ9Bkfl1p4gAIJN6Xk/RxY88jzysJRqvqMz31pCjTIo9GuTLBQIK9DlA
BU4iHBpjtz+4OZNAg/zUhsp7mzyosjF28t/1ZfsGY3P+es+vzN6Dp4WdvCGz43zG
ZUstqyddlZbHF9VWljUJmnUZkEY2tfX4PPGTK7BRa702ZIswezRQ3eup4L+xnh1O
Rm8AtLuktqG/zuez11w2jh0+0wWaEhC7tnpEqxHJJkffU4GyKGboTeIImp5bRXd1
6FiIjwMocnoMiea9GjDBVh6oVOihjrq0JYew7YIk5OKkRl6nCg9VUiGWn9kNvRYy
krb0yFhrzmBOYkU3hTAMLGJgCv8FaLR2l4KKO1cgDmPMIP8qfl8V90uigner1jvQ
CaovtBlzrzq5vB5xkuzFS0oOPZMjiDRrpUGsXAknlkpKHWoBy2psPSP3Vvle8Kru
dVrFV79AnwLYjU/e06xIslRrMt5Yu+mGVQcDVx3GMG+RyvXGDl6UegtKhR9nDJ0f
Csmdu7ZGQ+zpR9eAdHninByzreFYZ0HOQKO6bLMhsNBPXKzYRNmwJ1wsBjq0s9Qt
xg04QY+ARlxY/mN7nfcTXah/mv4l89ZjMwC9Ke+rnqeC/feTdBLqt/FmaoynqHAL
Zq9Tsgdtfw==
=kJPC
-----END PGP SIGNATURE-----

Attachment: pgpqu8IjIUkuV.pgp
Description: PGP signature


--- End Message ---

Reply to: