Your message dated Sun, 15 Apr 2018 10:20:43 +0000
with message-id <e1f7em3-000dli...@fasolo.debian.org>
and subject line Bug#893601: fixed in perl 5.26.2-1
has caused the Debian Bug report #893601,
regarding libperl5.26: printf_format_null Configure test is broken on 64-bits
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 ow...@bugs.debian.org
immediately.)


-- 
893601: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893601
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Package: libperl5.26
Version: 5.26.1-5
Severity: normal
Tags: patch

Hi,

I recently noticed a build failure in the "mrs" package which embeds the
perl interpreter. The strange part was that the error looked completely
generic but only failed on 32-bit for some reason. I traced this to the
value of the PRINTF_FORMAT_NULL_OK config,h option in perl which is
defined on 32-bit, but not defined on 64-bit architectures. This is a
bug because this check detects the behavior of the compiler and should
be the same on all architectures with the same GCC version.

The underlying bug is that the check for this warning causes GCC to emit
an unrelated warning on 64-bit arches which tricks the check into not
defining PRINTF_FORMAT_NULL_OK.

The line which causes the warning is:
 int null_printf (char* pat,...) { return (int)pat; }

GCC complains about the pointer to integer cast of the wrong size but
only on 64-bits. I've attached a patch to fix this by casting through
intptr_t first.

Thanks,
James
--- a/regen-configure/U/modified/d_attribut.U
+++ b/regen-configure/U/modified/d_attribut.U
@@ -159,8 +159,15 @@ $cat >attrib.c <<EOCP
 #ifdef I_STDLIB
 #include <stdlib.h>
 #endif
+#$i_inttypes I_INTTYPES
+#ifdef I_INTTYPES
+#include <inttypes.h>
+#endif
+#ifndef INTPTR_MAX
+#define intptr_t int
+#endif
 int null_printf (char* pat,...) __attribute__((__format__(__printf__,1,2)));
-int null_printf (char* pat,...) { return (int)pat; }
+int null_printf (char* pat,...) { return (int)(intptr_t)pat; }
 int main () { exit(null_printf(NULL)); }
 EOCP
 	if $cc $ccflags -o attrib attrib.c >attrib.out 2>&1 ; then

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: perl
Source-Version: 5.26.2-1

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

Debian distribution maintenance software
pp.
Niko Tyni <nt...@debian.org> (supplier of updated perl 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 ftpmas...@ftp-master.debian.org)


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

Format: 1.8
Date: Sun, 15 Apr 2018 12:07:39 +0300
Source: perl
Binary: perl-base perl-doc perl-debug libperl5.26 libperl-dev perl-modules-5.26 
perl
Architecture: source
Version: 5.26.2-1
Distribution: experimental
Urgency: medium
Maintainer: Niko Tyni <nt...@debian.org>
Changed-By: Niko Tyni <nt...@debian.org>
Description:
 libperl-dev - Perl library: development files
 libperl5.26 - shared Perl library
 perl       - Larry Wall's Practical Extraction and Report Language
 perl-base  - minimal Perl system
 perl-debug - debug-enabled Perl interpreter
 perl-doc   - Perl documentation
 perl-modules-5.26 - Core Perl modules
Closes: 890242 893601
Changes:
 perl (5.26.2-1) experimental; urgency=medium
 .
   * Import new upstream minor release.
   * Apply Configure patch from James Cowgill fixing a pointer to integer
     cast in null_printf check. (Closes: #893601)
   * Update cross build support files for glibc 2.27 _LIB_VERSION removal.
     (Closes: #890242)
Checksums-Sha1:
 4706113ac2f09eefeba4603d8d2a397721bd986a 2678 perl_5.26.2-1.dsc
 dd7b89840c9faae3884f88b3c859b04c17dfa64e 712883 
perl_5.26.2.orig-regen-configure.tar.gz
 bfa5c7921ed7bf5e035dbf2f7ff81367b81e372c 11931624 perl_5.26.2.orig.tar.xz
 e8cfde5e20c63c4aecb67be3f2dc9659e806ddb0 163576 perl_5.26.2-1.debian.tar.xz
 067e6ab542ea90bce4b6c78a31a723a615654721 4812 perl_5.26.2-1_source.buildinfo
Checksums-Sha256:
 a2f04485cfc606337c7f316c8e83b3a9776783c24a67ce124a050db9a4490482 2678 
perl_5.26.2-1.dsc
 918f054a64b2835bc1c6ed79c1e082e7dcdb76735a95b54ee39c25ea9e245ca4 712883 
perl_5.26.2.orig-regen-configure.tar.gz
 0f8c0fb1b0db4681adb75c3ba0dd77a0472b1b359b9e80efd79fc27b4352132c 11931624 
perl_5.26.2.orig.tar.xz
 f849897f8ccfaf60a0bbf17d7403b608443f5fe19be2f2a4feb17a4a20c2b8f5 163576 
perl_5.26.2-1.debian.tar.xz
 cdc5f5755c7d9f3fdb2f54b87a34df3e26a2de70b6c69cdc47fce94b5674e225 4812 
perl_5.26.2-1_source.buildinfo
Files:
 9a48fa986fb67735a28f2f2b168b9406 2678 perl standard perl_5.26.2-1.dsc
 5ab1da75e624ff1ae95642d0774fdcac 712883 perl standard 
perl_5.26.2.orig-regen-configure.tar.gz
 1fa1b53eeff76aa37b17bfc9b2771671 11931624 perl standard perl_5.26.2.orig.tar.xz
 2edfedc8039ec98dbfdfd87fd8f4c605 163576 perl standard 
perl_5.26.2-1.debian.tar.xz
 e1a2a0d5631dae943567937219c6a47b 4812 perl standard 
perl_5.26.2-1_source.buildinfo

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

iQJFBAEBCAAvFiEEdqKOQsmBHZHoj7peLsD/s7cwGx8FAlrTHSwRHG50eW5pQGRl
Ymlhbi5vcmcACgkQLsD/s7cwGx/yWA/+LnkqkbIOtA9qsrkWeSyu9MDQKgclmMKV
2uhQdyCoFKk6eSrxo67QE6ViRkUc6qCXTg/VORi78XmhMjblVHSPltGztUxIXDxf
rDzWT4Axi1pkKMAe8oJPZrIDkhx8+YUHUD9U0lijgIWJBL4n+SoextQ+JSpjSHN7
u0lJxaqE0idNctZFCkBNmjd52Wqlu2CGvgVv4EtF7ADFSAB5iNYYGf7mYyQRInXF
faa/rwfShBjQ1wCx9D+jtypLPXQ//DC3hyv0xpTnUxK52hMope0Hvjxf0Yf7KBv7
aEUe6xOJS+yl+1BvHYHFGbvUsvoBliAhSpyKpVNKzgn7K2D6LujvYwb3IFyK00Aj
aAcaeKFzdT99AP8ZkVhNA9apC2SeW/KbS4Fvubd50tC857UAPYCEsvxlataVmQVS
AJ2gZu4uQia2uLMKTwJP/j5WATVWJvyhmKLdZYlZzy3TlTmtN7MBwBNJQVFGDD7K
LOhFm4yqFcrig5+uy6o749yMjVv4C944F85NpoDCZORZoCgfk7aRrztDvshBMpds
TFRciLrbOPlY0ghuOq98/Nku9WwNOG2pHr/knQPFmhIX1z1hNJVXQ6Ue4SoFoTgM
rTs3+sM6iGWwfvzMt3QllfuqRE6RxLgpNHpjzz8YdAZz0A6AEYk1nGCodVRWLErQ
KG1qk+tZbC8=
=14br
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to