Your message dated Fri, 12 Aug 2022 22:03:58 +0000
with message-id <[email protected]>
and subject line Bug#920653: fixed in autoconf-archive 20220211-1
has caused the Debian Bug report #920653,
regarding ax_pthread: -Wunused-variable warning on PTHREAD_PRIO_INHERIT, which 
can be turned into an error
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 [email protected]
immediately.)


-- 
920653: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=920653
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: autoconf-archive
Version: 20180313-1
Severity: normal
Tags: patch upstream
Forwarded: https://savannah.gnu.org/patch/index.php?9750

The PTHREAD_PRIO_INHERIT check can trigger a -Wunused-variable warning,
which can be turned into an error when -Werror is used, with the
consequence that PTHREAD_PRIO_INHERIT appears to be missing:

configure:14787: checking for PTHREAD_PRIO_INHERIT
configure:14803: gcc -o conftest -O2 -Wall -Wold-style-declaration 
-Wold-style-definition -Wmissing-parameter-type -Wmissing-prototypes 
-Wmissing-declarations -Wmissing-field-initializers -Wc++-compat 
-Wno-error=unused-function -Werror -Wcast-function-type -Wcast-align=strict 
-pthread   conftest.c   >&5
conftest.c: In function 'main':
conftest.c:28:5: error: unused variable 'i' [-Werror=unused-variable]
 int i = PTHREAD_PRIO_INHERIT;
     ^
cc1: all warnings being treated as errors
configure:14803: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MPFR"
| #define PACKAGE_TARNAME "mpfr"
| #define PACKAGE_VERSION "4.1.0-dev"
| #define PACKAGE_STRING "MPFR 4.1.0-dev"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define MPFR_WANT_SHARED_CACHE 1
| #define HAVE_SYS_TYPES_H 1
| #define HAVE_SYS_STAT_H 1
| #define HAVE_STDLIB_H 1
| #define HAVE_STRING_H 1
| #define HAVE_MEMORY_H 1
| #define HAVE_STRINGS_H 1
| #define HAVE_INTTYPES_H 1
| #define HAVE_STDINT_H 1
| #define HAVE_UNISTD_H 1
| #define HAVE_DLFCN_H 1
| #define LT_OBJDIR ".libs/"
| #define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1
| #define HAVE_LITTLE_ENDIAN 1
| #define TIME_WITH_SYS_TIME 1
| /* end confdefs.h.  */
| #include <pthread.h>
| int
| main (void)
| {
| int i = PTHREAD_PRIO_INHERIT;
|   ;
|   return 0;
| }
configure:14812: result: no

This issue can easily be avoided by adding a "return i;". See attached
patch.

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-2-amd64 (SMP w/8 CPU cores)
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages autoconf-archive depends on:
ii  dpkg  1.19.4

Versions of packages autoconf-archive recommends:
ii  autoconf  2.69-11+local2

autoconf-archive suggests no packages.

-- no debconf information
Description: Avoid a -Wunused-variable warning on PTHREAD_PRIO_INHERIT.
Author: Vincent Lefevre <[email protected]>

--- ax_pthread.m4~      2019-01-04 19:01:05.000000000 +0100
+++ ax_pthread.m4       2019-01-27 22:17:03.654823777 +0100
@@ -438,7 +438,8 @@
         AC_CACHE_CHECK([for PTHREAD_PRIO_INHERIT],
             [ax_cv_PTHREAD_PRIO_INHERIT],
             [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <pthread.h>]],
-                                             [[int i = 
PTHREAD_PRIO_INHERIT;]])],
+                                             [[int i = PTHREAD_PRIO_INHERIT;
+                                               return i;]])],
                             [ax_cv_PTHREAD_PRIO_INHERIT=yes],
                             [ax_cv_PTHREAD_PRIO_INHERIT=no])
             ])

--- End Message ---
--- Begin Message ---
Source: autoconf-archive
Source-Version: 20220211-1
Done: Bastien Roucariès <[email protected]>

We believe that the bug you reported is fixed in the latest version of
autoconf-archive, 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 [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bastien Roucariès <[email protected]> (supplier of updated autoconf-archive 
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 [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Fri, 12 Aug 2022 15:02:23 +0000
Source: autoconf-archive
Architecture: source
Version: 20220211-1
Distribution: unstable
Urgency: medium
Maintainer: Bastien Roucariès <[email protected]>
Changed-By: Bastien Roucariès <[email protected]>
Closes: 911655 920653 985458
Changes:
 autoconf-archive (20220211-1) unstable; urgency=medium
 .
   * New upstream release
   * New macros AX_BOOST_ATOMIC, AX_BOOST_RANDOM, AX_MS_CPPREST
   * Bug fix: "AX_PATH_BDB_NO_OPTIONS makes broken assumptions for cross
     compilation", thanks to Helmut Grohne (Closes: #911655).
   * Bug fix: "ax_pthread.m4 uses the obsolete $as_echo", thanks to Vincent
     Lefevre (Closes: #985458).
   * Bug fix: "-Wunused-variable warning on PTHREAD_PRIO_INHERIT, which can
     be turned into an error", thanks to Vincent Lefevre (Closes: #920653).
   * Bump standard version no changes
Checksums-Sha1:
 2895e0c7c6d4199d00e13ad873286c0d9f066f1e 2328 autoconf-archive_20220211-1.dsc
 1132f3e9e7ad8c2a38c442fab388eea5f96371d5 675264 
autoconf-archive_20220211.orig.tar.xz
 e703fa5226c6bb6e5eab574e9eb38abfada639c5 488 
autoconf-archive_20220211.orig.tar.xz.asc
 f46985753d64fc3d00e7e1bda23dfd95c274394e 20468 
autoconf-archive_20220211-1.debian.tar.xz
 90828bdcac82ce290c66d59364e98813a27c978e 6244 
autoconf-archive_20220211-1_source.buildinfo
Checksums-Sha256:
 903ee2821d41522bf516db8f5ea4de319d7260dc73a150b84ddd21bf2c702792 2328 
autoconf-archive_20220211-1.dsc
 78a61b611e2eeb55a89e0398e0ce387bcaf57fe2dd53c6fe427130f777ad1e8c 675264 
autoconf-archive_20220211.orig.tar.xz
 8a52784bca16d9377a5fc86018a5019984136e87f9d2959a6e51d6ccbdf5f540 488 
autoconf-archive_20220211.orig.tar.xz.asc
 e3ba131f83f61d3e4b6afb57c528e8645aef50468b9b68dcd042953e8d18d70a 20468 
autoconf-archive_20220211-1.debian.tar.xz
 5c4fe6ddba40348b123298967a88fb061c1884eaa36b00772d040031ea6dc5dc 6244 
autoconf-archive_20220211-1_source.buildinfo
Files:
 cadf801e27c4e2b708d1129d392bc188 2328 devel optional 
autoconf-archive_20220211-1.dsc
 d140e95be64f0aa7369f82e3caae4730 675264 devel optional 
autoconf-archive_20220211.orig.tar.xz
 ea66a4e70e9879d3a9f4146a566a8000 488 devel optional 
autoconf-archive_20220211.orig.tar.xz.asc
 01ad781e546b99e7841666eb432022e9 20468 devel optional 
autoconf-archive_20220211-1.debian.tar.xz
 c4a0084218ac49876dff017bca524a20 6244 devel optional 
autoconf-archive_20220211-1_source.buildinfo

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

iQJFBAEBCgAvFiEEXQGHuUCiRbrXsPVqADoaLapBCF8FAmL2yKQRHHJvdWNhQGRl
Ymlhbi5vcmcACgkQADoaLapBCF/qmg/8CV64tYNQi0zlRN/LjoigYq8Ha1+IsWOT
s2ac9kJR33UIL0FwbuAJ2BLxK1+JFgqypm0C1LuCt15q1wvl089eyXa4IMB8Yeon
tuq9d/K/vEKZ0be8pkt3q7SyWkjhHlQ8jQ4/PEw61Ffhgj6Q//YTskrSyvS9LgHt
1C0mUBi0i4ouu+WAWMN/yggmjnhokvPoTyv8eganA8kNKbOYRGzk2XHD9/3CPvUG
zt3Kxi+s86FhcpBrn86AYldMZb3vTKFWC1ZjeP74gB3XNxXljFdNIzqkpM0ufpLg
oMLGPhI75KcyPmopA4rL9skkhDKImDLDxnx8R2IXilhEAk5nY5TBaSmUvYCD2slw
497XLcYE0TaNQZbkXFq/JDYKXhc70ZeWa9iRRS73Yd8BgWnyzPAMkJMX0E3hz5ro
VtRKnzAam1tsDtvqZ/EjFO62Ow1wg//M9FOoeHwuYNm1xED0VtdwfMZLQwWYJUeX
ci3WwxMfSNUkLK7ohJ9LdUTotZ/WtFqCSn3cs3Vyl+5AzZIp5ltSAn+7cOZYDe4a
zDuINbytSK6kvC062myMYa00zJf+i6UKq3irYsRzQfNmo/VJBdoYrERWtzGqtWNB
XKNQyjji4+knE6AMIWRzjdaME9ogJArqgcGKWl/CtINOe0/DL+Ni0wwSwirxPBH0
82X86e1/ZCs=
=4Qsl
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to