[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [bug-ncurses] Patch ncurses-6.1-20191214 breaks cal from util-linux-
From: |
Dr. Werner Fink |
Subject: |
Re: [bug-ncurses] Patch ncurses-6.1-20191214 breaks cal from util-linux-2.34 |
Date: |
Wed, 18 Dec 2019 11:31:24 +0100 |
User-agent: |
Mutt/1.12.2 (2019-09-21) |
On 2019/12/18 10:51:27 +0100, Dr. Werner Fink wrote:
> On 2019/12/18 10:08:41 +0100, Dr. Werner Fink wrote:
> >
> > Looks like the (auto)config of util-linux can not handle ncursesw/term.h
> >
> > configure:21443: checking ncursesw/term.h usability
> > configure:21443: gcc -c -O2 -Wall -D_FORTIFY_SOURCE=2
> > -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables
> > -fstack-clash-protection -Werror=return-type -flto=auto -ffat-lto-objects
> > -g -D_GNU_SOURCE conftest.c >&5
> > In file included from conftest.c:206:
> > /usr/include/ncursesw/term.h: In function 'exit_terminfo':
> > /usr/include/ncursesw/term.h:856:51: error: expected declaration
> > specifiers before 'GCC_NORETURN'
> > 856 | extern NCURSES_EXPORT(void) exit_terminfo(int) GCC_NORETURN;
> > | ^~~~~~~~~~~~
> > /usr/include/ncursesw/term.h:856:46: error: parameter name omitted
> > 856 | extern NCURSES_EXPORT(void) exit_terminfo(int) GCC_NORETURN;
> > | ^~~
> > conftest.c:206: error: expected '{' at end of input
> > 206 | #include <ncursesw/term.h>
> > |
> > configure:21443: $? = 1
> > configure: failed program was:
> >
> > ... it seems that there is missed in term.h something like
> >
> > #ifndef GCC_NORETURN
> > #define GCC_NORETURN /* nothing */
> > #endif
> >
> > indeed with this before exit_terminfo() the cal(1) does not crash anymore
>
> There is more broken:
>
> abuild@noether:~/rpmbuild/BUILD/util-linux-2.34> ./cal -3sjw 1 2009
>
> December 2008 January 2009
> February 2009
> Sun Mon Tue Wed Thu Fri Sat Sun Mon Tue Wed Thu Fri Sat Sun Mon
> Tue Wed Thu Fri Sat
> 49 336 337 338 339 340 341 1 1 2 3 6 32 33
> 34 35 36 37 38
> 50 342 343 344 345 346 347 348 2 4 5 6 7 8 9 10 7 39 40
> 41 42 43 44 45
> 51 349 350 351 352 353 354 355 3 11 12 13 14 15 16 17 8 46 47
> 48 49 50 51 52
> 52 356 357 358 359 360 361 362 4 18 19 20 21 22 23 24 9 53 54
> 55 56 57 58 59
> 53 363 364 365 366 5 25 26 27 28 29 30 31
>
>
>
> abuild@noether:~/rpmbuild/BUILD/util-linux-2.34> ./cal -3sjw 1 2009 >
> /dev/null
> Segmentation fault (core dumped)
This is my fault ... instead of "1" I should use "/* nothing */"
as shown ;)
--
"Having a smoking section in a restaurant is like having
a peeing section in a swimming pool." -- Edward Burr
signature.asc
Description: PGP signature