Your message dated Sat, 24 Feb 2018 17:05:27 +0000
with message-id <[email protected]>
and subject line Bug#891302: fixed in kali 3.1-18
has caused the Debian Bug report #891302,
regarding kali: FTBFS with glibc 2.27: error: 'HUGE' undeclared (first use in 
this function)
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.)


-- 
891302: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891302
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: kali
Version: 3.1-17
Severity: important
Tags: patch
User: [email protected]
Usertags: 2.27

kali 3.1-17 fails to build with glibc 2.27 (2.27-0experimental0 from
experimental):

| cc -DXFORM -Wdate-time -D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wall   -Wdate-time -D_FORTIFY_SOURCE=2 
-D_FILE_OFFSET_BITS=64  -c -o kali.o kali.c
| kali.c: In function 'handleRedraw':
| kali.c:124:3: warning: implicit declaration of function 'reshapeviewport' 
[-Wimplicit-function-declaration]
|    reshapeviewport();
|    ^~~~~~~~~~~~~~~
| kali.c:131:3: warning: implicit declaration of function 'swapbuffers'; did 
you mean 'setbuffer'? [-Wimplicit-function-declaration]
|    swapbuffers();
|    ^~~~~~~~~~~
|    setbuffer
| kali.c: In function 'doRedraw':
| kali.c:148:5: warning: implicit declaration of function 'user_event_cb' 
[-Wimplicit-function-declaration]
|      user_event_cb(&newev, NULL);
|      ^~~~~~~~~~~~~
| kali.c: In function 'handleKeyboard':
| kali.c:273:13: warning: implicit declaration of function 'StartLoadProc'; did 
you mean 'LoadProc'? [-Wimplicit-function-declaration]
|    case '<': StartLoadProc(NULL, 0); break;
|              ^~~~~~~~~~~~~
|              LoadProc
| kali.c:275:13: warning: implicit declaration of function 'StartSaveProc'; did 
you mean 'SaveProc'? [-Wimplicit-function-declaration]
|    case '>': StartSaveProc(NULL, 0); break;
|              ^~~~~~~~~~~~~
|              SaveProc
| kali.c:277:13: warning: implicit declaration of function 'set_mode'; did you 
mean 'memmove'? [-Wimplicit-function-declaration]
|    case 'z': set_mode(KALIZOOM); break;
|              ^~~~~~~~
|              memmove
| kali.c: In function 'user_event_cb':
| kali.c:333:10: warning: variable 'y' set but not used 
[-Wunused-but-set-variable]
|    int x, y, how = 0, button;
|           ^
| kali.c:333:7: warning: variable 'x' set but not used 
[-Wunused-but-set-variable]
|    int x, y, how = 0, button;
|        ^
| kali.c: In function 'main':
| kali.c:465:3: warning: implicit declaration of function 'foreground'; did you 
mean 'XNForeground'? [-Wimplicit-function-declaration]
|    foreground();
|    ^~~~~~~~~~
|    XNForeground
| kali.c:474:3: warning: implicit declaration of function 'forms_init'; did you 
mean 'flps_init'? [-Wimplicit-function-declaration]
|    forms_init(&pwin);
|    ^~~~~~~~~~
|    flps_init
| kali.c:475:3: warning: implicit declaration of function 'winset'; did you 
mean 'winopen'? [-Wimplicit-function-declaration]
|    winset(win);
|    ^~~~~~
|    winopen
| kali.c:476:10: warning: implicit declaration of function 'load_a_file' 
[-Wimplicit-function-declaration]
|    if (f) load_a_file(f);
|           ^~~~~~~~~~~
| kali.c: In function 'DrawCurrent':
| kali.c:61:21: warning: implicit declaration of function 'cpack' 
[-Wimplicit-function-declaration]
|  #define SET_COLOR   cpack
|                      ^
| kali.c:573:3: note: in expansion of macro 'SET_COLOR'
|    SET_COLOR(BACKCOLOR);
|    ^~~~~~~~~
| kali.c:574:3: warning: implicit declaration of function 'clear'; did you mean 
'GXclear'? [-Wimplicit-function-declaration]
|    clear();
|    ^~~~~
|    GXclear
| kali.c: In function 'MakeWindow':
| kali.c:636:3: warning: implicit declaration of function 'GXinit'; did you 
mean 'lrint'? [-Wimplicit-function-declaration]
|    GXinit(&GXDraw, fl_display, 0);
|    ^~~~~~
|    lrint
| kali.c:639:3: warning: implicit declaration of function 'RGBmode' 
[-Wimplicit-function-declaration]
|    RGBmode();
|    ^~~~~~~
| kali.c:641:3: warning: implicit declaration of function 'winconstraints'; did 
you mean 'XK_containsas'? [-Wimplicit-function-declaration]
|    winconstraints();
|    ^~~~~~~~~~~~~~
|    XK_containsas
| kali.c:643:3: warning: implicit declaration of function 'doublebuffer'; did 
you mean 'XStoreBuffer'? [-Wimplicit-function-declaration]
|    doublebuffer();
|    ^~~~~~~~~~~~
|    XStoreBuffer
| kali.c:644:3: warning: implicit declaration of function 'gconfig' 
[-Wimplicit-function-declaration]
|    gconfig();
|    ^~~~~~~
| kali.c: In function 'AdjustWindowRectangle':
| kali.c:652:3: warning: implicit declaration of function 'getsize'; did you 
mean 'getline'? [-Wimplicit-function-declaration]
|    getsize(&x,&y);
|    ^~~~~~~
|    getline
| kali.c: In function 'closest':
| kali.c:662:18: error: 'HUGE' undeclared (first use in this function)
|    float dist,min=HUGE;
|                   ^~~~
| kali.c:662:18: note: each undeclared identifier is reported only once for 
each function it appears in
| kali.c: In function 'PrintLine':
| kali.c:674:12: warning: format '%x' expects argument of type 'unsigned int', 
but argument 2 has type 'LINE * {aka struct s_line *}' [-Wformat=]
|    printf("%x ",l);
|            ~^
| kali.c:676:15: warning: format '%x' expects argument of type 'unsigned int', 
but argument 3 has type 'LINE * {aka struct s_line *}' [-Wformat=]
|    printf("%d %x \n",l->id,l->next);
|               ~^           ~~~~~~~
| kali.c: In function 'DefineSymWindow':
| kali.c:749:11: warning: unused variable 'y' [-Wunused-variable]
|    float x,y;
|            ^
| kali.c:749:9: warning: unused variable 'x' [-Wunused-variable]
|    float x,y;
|          ^
| kali.c: In function 'user_event_cb':
| kali.c:396:1: warning: control reaches end of non-void function 
[-Wreturn-type]
|  }
|  ^
| kali.c: In function 'LoadProc':
| kali.c:724:3: warning: ignoring return value of 'fscanf', declared with 
attribute warn_unused_result [-Wunused-result]
|    fscanf(pat,"%d\n",&sym_index);
|    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| kali.c:725:3: warning: ignoring return value of 'fscanf', declared with 
attribute warn_unused_result [-Wunused-result]
|    fscanf(pat,"%f %f\n",&dummy,&dummy);
|    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
| kali.c:727:3: warning: ignoring return value of 'fscanf', declared with 
attribute warn_unused_result [-Wunused-result]
|    fscanf(pat,"%f %f\n",
|    ^~~~~~~~~~~~~~~~~~~~~
|    &(sym->v1.x),&(sym->v1.y));
|    ~~~~~~~~~~~~~~~~~~~~~~~~~~
| kali.c:729:3: warning: ignoring return value of 'fscanf', declared with 
attribute warn_unused_result [-Wunused-result]
|    fscanf(pat,"%f %f\n",
|    ^~~~~~~~~~~~~~~~~~~~~
|    &(sym->v2.x),&(sym->v2.y));
|    ~~~~~~~~~~~~~~~~~~~~~~~~~~
| kali.c:731:3: warning: ignoring return value of 'fscanf', declared with 
attribute warn_unused_result [-Wunused-result]
|    fscanf(pat,"%f \n",
|    ^~~~~~~~~~~~~~~~~~~
|    &zoom);
|    ~~~~~~
| At top level:
| kali.c:169:13: warning: 'modechars' defined but not used [-Wunused-variable]
|  static char modechars[] = "?dcptmza/rD";  /* draw, cut, pick, transform,
|              ^~~~~~~~~
| <builtin>: recipe for target 'kali.o' failed
| make[2]: *** [kali.o] Error 1
| make[2]: Leaving directory '/<<PKGBUILDDIR>>'
| dh_auto_build: make -j1 FORMSINCL= FORMSLIB=-lforms "COPTS=-Wdate-time 
-D_FORTIFY_SOURCE=2 -D_FILE_OFFSET_BITS=64 -g -O2 
-fdebug-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -Wformat 
-Werror=format-security -Wall" "LDFLAGS=-Wl,-z,relro -Wl,-z,now" returned exit 
code 2
| debian/rules:12: recipe for target 'override_dh_auto_build' failed
| make[1]: *** [override_dh_auto_build] Error 2
| make[1]: Leaving directory '/<<PKGBUILDDIR>>'
| debian/rules:9: recipe for target 'build-arch' failed
| make: *** [build-arch] Error 2
| dpkg-buildpackage: error: debian/rules build-arch subprocess returned exit 
status 2

A full build log is available there:
http://aws-logs.debian.net/2018/02/07/glibc-exp/kali_3.1-17_unstable_glibc-exp.log

Starting with glibc 2.27, support for SVID error handling has been
removed, including the corresponding HUGE constant. This causes this
package to FTBFS. The attached patch fixes that by using HUGE_VAL
instead. Note that HUGE_VAL actually corresponds to infinity, but that
looks the right value to use there.
diff -Nru kali-3.1/debian/patches/huge.patch kali-3.1/debian/patches/huge.patch
--- kali-3.1/debian/patches/huge.patch  1970-01-01 01:00:00.000000000 +0100
+++ kali-3.1/debian/patches/huge.patch  2018-02-24 12:01:24.000000000 +0100
@@ -0,0 +1,11 @@
+--- kali-3.1.orig/kali.c
++++ kali-3.1/kali.c
+@@ -659,7 +659,7 @@ void AdjustWindowRectangle(RECTANGLE *r)
+ /* Find closest center of symmetry to new motif point */
+ int closest(POINT *new_pt, POINT *pts, int maxpts) {
+   int i,min_i;
+-  float dist,min=HUGE;
++  float dist,min=HUGE_VAL;
+  
+   for (i=0; i<maxpts; i++)
+     {
diff -Nru kali-3.1/debian/patches/series kali-3.1/debian/patches/series
--- kali-3.1/debian/patches/series      2014-01-27 08:48:48.000000000 +0100
+++ kali-3.1/debian/patches/series      2018-02-24 12:01:24.000000000 +0100
@@ -8,3 +8,4 @@
 ldflags.patch
 arg-parse-crash.patch
 print-symtab-bounds.patch
+huge.patch

--- End Message ---
--- Begin Message ---
Source: kali
Source-Version: 3.1-18

We believe that the bug you reported is fixed in the latest version of
kali, 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.
Colin Watson <[email protected]> (supplier of updated kali 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: SHA256

Format: 1.8
Date: Sat, 24 Feb 2018 16:45:13 +0000
Source: kali
Binary: kali
Architecture: source
Version: 3.1-18
Distribution: unstable
Urgency: medium
Maintainer: Colin Watson <[email protected]>
Changed-By: Colin Watson <[email protected]>
Description:
 kali       - Draw tilings, frieze patterns, and so on
Closes: 891302
Changes:
 kali (3.1-18) unstable; urgency=medium
 .
   [ Colin Watson ]
   * Move VCS to salsa.debian.org.
 .
   [ Aurelien Jarno ]
   * Use HUGE_VAL rather than HUGE (closes: #891302).
Checksums-Sha1:
 c860b2158dfeb641542bada70824f3e6d5646da1 1858 kali_3.1-18.dsc
 3f5126e6b6be25ce83c2901d6f0dbb8bea2e3e8c 9208 kali_3.1-18.debian.tar.xz
 3698b86fdeef6dc76a4f1f69cdc3c89630c7443d 6759 kali_3.1-18_source.buildinfo
Checksums-Sha256:
 13badc63000577acec0181a8bda2e1a51b37e3acd38de2f7e94f44e5771f69a8 1858 
kali_3.1-18.dsc
 3f218b282ce0d20677e250b6d1bd60e95daf5f22786006cc3fc1d768aee5c754 9208 
kali_3.1-18.debian.tar.xz
 1c2f8d0ce99e689043d85c580e6c1fe1b1e6895a9fa0ec116f1aebd44e8aa086 6759 
kali_3.1-18_source.buildinfo
Files:
 ea80fcc688c8584c1aabc83110d485d3 1858 math optional kali_3.1-18.dsc
 4c64ff4ffb0c941ac9b9b1a67a0f6a8d 9208 math optional kali_3.1-18.debian.tar.xz
 00ac7c5a6cc8e942cf52b843a09c1b62 6759 math optional 
kali_3.1-18_source.buildinfo

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

iQIzBAEBCAAdFiEErApP8SYRtvzPAcEROTWH2X2GUAsFAlqRl4kACgkQOTWH2X2G
UAtgOA//VwDx8sWjxCUIC45xwlbUz06wwiS+/Utf7Ykn5SEKLAu3XWU7o8cumTIg
bHUaLKJFJBuHfu+60w+fUr4EXR4d5kyeCFl9B8HNqGfm+fjKAz8z10uUbxKwdQQi
DUb8r0QY/Z8eVnVxb+8Jw/YZyU14Pz2SXgrkmpUGtYIFtPIMEyUwBmx67yis5GI4
DMS+LYyLQplNI1U2jZIm0TQmaNur9fBx4GBSWLlHdqQt3A0bbYHk+Ed2M6Dnh9cm
DvHyfgEmQ/Y2ISI4sS5Iu+fHMhYSah9hsDJo2xnzSCsiQC61YDRs8XSLRkoXgDDQ
IJ9sNwjTalNNd8TBvtD5W/36Irn/ua63vtpSomz/lu5cJN7sKLKMnyscTsbO4979
ZmAuk5DFXqv1G2NsuFg0n/nTZkiXCnlzrcVIvqn9tSrLzqUxEFOT1fOFVEEdovIa
Ww/f7A0uvar1Xl8OtuugmFKCMwDv5hiWw+t5BLujhyI/+hqh/G+ZSai8PSKSoaM2
HgXYhlt0UlTiSPBLEuJ88u+AdWhb5phHFH/XLGfI+zqHxarj1RXndLglM8dAhZVH
dd4Ppt9OPdxKPEM31JtU7BmmaSNLCC5wJVfuQ/ij1T0Ze/fBXvB0ykvB50jIH+s2
jnjXXnER+rXyeQspQcYH4Wii37asorOCFQogNa7ZCB+qitsDnUQ=
=VXav
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to