bug-ncurses
[Top][All Lists]
Advanced

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

Re: [bug-ncurses] patch 6.2-20200829 broken somehow


From: Dr. Werner Fink
Subject: Re: [bug-ncurses] patch 6.2-20200829 broken somehow
Date: Mon, 31 Aug 2020 15:03:24 +0200

On 2020/08/31 11:41:33 +0200, Dr. Werner Fink wrote:
> Hi,
> 
> I see errors in build below test directory

Seems that the new mk-hdr.awk ignores the

  # Support for termcap (and tic, etc.), which can be a separate library
  @ termlib
  term.h
  termcap.h

entry in include/headers which leads to missed declarations due missed
term.h:

 @@ -4833,7 +5269,7 @@ checking for mbtowc... yes
  checking for wcsrtombs... yes
  checking for wcstombs... yes
  checking definition to turn on extended curses functions... none
 -checking for term.h... (cached) unknown
 +checking for term.h... (cached) term.h
  checking for unctrl.h... unctrl.h
  checking for alloc_pair... yes
  checking for assume_default_colors... yes

for configure script in test/


> [  244s] gcc -c -I. -I. -I../test -DHAVE_CONFIG_H 
> -DDATA_DIR=\"/home/abuild/rpmbuild/BUILD/ncurses-6.2/test/share\" 
> -D_FORTIFY_SOURCE=2 -D_REENTRANT 
> -I/var/tmp/ncurses-6.2.20200829-store/usr/include/ncursesw/ 
> -I/var/tmp/ncurses-6.2.20200829-store/usr/include/    -I/usr/include/ncursesw 
>    -I/usr/include/ncursesw -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -O2 -Wall 
> -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables 
> -fstack-clash-protection -flto=auto -ffat-lto-objects -g -pipe 
> -Werror=return-type -DNCURSES_STATIC -DMODULE_NAME="demo_terminfo" 
> ./demo_terminfo.c
> [  244s] ./demo_terminfo.c: In function 'brute_force':
> [  244s] ./demo_terminfo.c:275:5: warning: implicit declaration of function 
> 'setupterm'; did you mean 'set_term'? [-Wimplicit-function-declaration]
> [  244s]   275 |     setupterm((NCURSES_CONST char *) name, 1, (int *) 0);
> [  244s]       |     ^~~~~~~~~
> [  244s]       |     set_term
> [  244s] ./demo_terminfo.c:317:5: warning: implicit declaration of function 
> 'del_curterm' [-Wimplicit-function-declaration]
> [  244s]   317 |     del_curterm(cur_term);
> [  244s]       |     ^~~~~~~~~~~
> [  244s] ./demo_terminfo.c:317:17: error: 'cur_term' undeclared (first use in 
> this function)
> [  244s]   317 |     del_curterm(cur_term);
> [  244s]       |                 ^~~~~~~~
> [  244s] ./demo_terminfo.c:317:17: note: each undeclared identifier is 
> reported only once for each function it appears in
> [  244s] ./demo_terminfo.c: In function 'demo_terminfo':
> [  244s] ./demo_terminfo.c:344:27: error: 'boolfnames' undeclared (first use 
> in this function)
> [  244s]   344 |      dumpit(cap, fullname(bool, n));
> [  244s]       |                           ^~~~
> [  244s] ./demo_terminfo.c:321:34: note: in definition of macro 'fullname'
> [  244s]   321 | #define fullname(type,n) f_opt ? type##fnames[n] : cap
> [  244s]       |                                  ^~~~
> [  244s] ./demo_terminfo.c:353:27: error: 'numfnames' undeclared (first use 
> in this function)
> [  244s]   353 |      dumpit(cap, fullname(num, n));
> [  244s]       |                           ^~~
> [  244s] ./demo_terminfo.c:321:34: note: in definition of macro 'fullname'
> [  244s]   321 | #define fullname(type,n) f_opt ? type##fnames[n] : cap
> [  244s]       |                                  ^~~~
> [  244s] ./demo_terminfo.c:362:27: error: 'strfnames' undeclared (first use 
> in this function)
> [  244s]   362 |      dumpit(cap, fullname(str, n));
> [  244s]       |                           ^~~
> [  244s] ./demo_terminfo.c:321:34: note: in definition of macro 'fullname'
> [  244s]   321 | #define fullname(type,n) f_opt ? type##fnames[n] : cap
> [  244s]       |                                  ^~~~
> [  244s] gcc -c -I. -I. -I../test -DHAVE_CONFIG_H 
> -DDATA_DIR=\"/home/abuild/rpmbuild/BUILD/ncurses-6.2/test/share\" 
> -D_FORTIFY_SOURCE=2 -D_REENTRANT 
> -I/var/tmp/ncurses-6.2.20200829-store/usr/include/ncursesw/ 
> -I/var/tmp/ncurses-6.2.20200829-store/usr/include/    -I/usr/include/ncursesw 
>    -I/usr/include/ncursesw -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -O2 -Wall 
> -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables 
> -fstack-clash-protection -flto=auto -ffat-lto-objects -g -pipe 
> -Werror=return-type -DNCURSES_STATIC -DMODULE_NAME="ditto" ./ditto.c
> [  244s] ./demo_terminfo.c:416:17: error: 'cur_term' undeclared (first use in 
> this function)
> [  244s]   416 |     del_curterm(cur_term);
> [  244s]       |                 ^~~~~~~~
> [  244s] ./demo_terminfo.c: In function 'main':
> [  244s] ./demo_terminfo.c:893:36: error: 'boolnames' undeclared (first use 
> in this function)
> [  244s]   893 |      my_boolcodes = copy_code_list(boolnames);
> [  244s]       |                                    ^~~~~~~~~
> [  244s] gcc -c -I. -I. -I../test -DHAVE_CONFIG_H 
> -DDATA_DIR=\"/home/abuild/rpmbuild/BUILD/ncurses-6.2/test/share\" 
> -D_FORTIFY_SOURCE=2 -D_REENTRANT 
> -I/var/tmp/ncurses-6.2.20200829-store/usr/include/ncursesw/ 
> -I/var/tmp/ncurses-6.2.20200829-store/usr/include/    -I/usr/include/ncursesw 
>    -I/usr/include/ncursesw -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -O2 -Wall 
> -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables 
> -fstack-clash-protection -flto=auto -ffat-lto-objects -g -pipe 
> -Werror=return-type -DNCURSES_STATIC -DMODULE_NAME="dots" ./dots.c
> [  244s] ./demo_terminfo.c:894:35: error: 'numnames' undeclared (first use in 
> this function)
> [  244s]   894 |      my_numcodes = copy_code_list(numnames);
> [  244s]       |                                   ^~~~~~~~
> [  244s] ./demo_terminfo.c:895:35: error: 'strnames' undeclared (first use in 
> this function)
> [  244s]   895 |      my_strcodes = copy_code_list(strnames);
> [  244s]       |                                   ^~~~~~~~
> [  244s] gcc -c -I. -I. -I../test -DHAVE_CONFIG_H 
> -DDATA_DIR=\"/home/abuild/rpmbuild/BUILD/ncurses-6.2/test/share\" 
> -D_FORTIFY_SOURCE=2 -D_REENTRANT 
> -I/var/tmp/ncurses-6.2.20200829-store/usr/include/ncursesw/ 
> -I/var/tmp/ncurses-6.2.20200829-store/usr/include/    -I/usr/include/ncursesw 
>    -I/usr/include/ncursesw -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -O2 -Wall 
> -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables 
> -fstack-clash-protection -flto=auto -ffat-lto-objects -g -pipe 
> -Werror=return-type -DNCURSES_STATIC -DMODULE_NAME="dots_curses" 
> ./dots_curses.c
> [  244s] gcc -c -I. -I. -I../test -DHAVE_CONFIG_H 
> -DDATA_DIR=\"/home/abuild/rpmbuild/BUILD/ncurses-6.2/test/share\" 
> -D_FORTIFY_SOURCE=2 -D_REENTRANT 
> -I/var/tmp/ncurses-6.2.20200829-store/usr/include/ncursesw/ 
> -I/var/tmp/ncurses-6.2.20200829-store/usr/include/    -I/usr/include/ncursesw 
>    -I/usr/include/ncursesw -D_DEFAULT_SOURCE -D_XOPEN_SOURCE=600 -O2 -Wall 
> -fstack-protector-strong -funwind-tables -fasynchronous-unwind-tables 
> -fstack-clash-protection -flto=auto -ffat-lto-objects -g -pipe 
> -Werror=return-type -DNCURSES_STATIC -DMODULE_NAME="dots_mvcur" ./dots_mvcur.c
> [  244s] make: *** [Makefile:660: ../test/demo_terminfo.o] Error 1
> [  244s] make: *** Waiting for unfinished jobs....
> [  244s] + rm -rf /tmp/ncurses.aFBLORSq
> [  244s] error: Bad exit status from /var/tmp/rpm-tmp.DUY5ka (%build)
> [  244s] 
> [  244s] 
> [  244s] RPM build errors:
> [  244s]     Bad exit status from /var/tmp/rpm-tmp.DUY5ka (%build)
> [  245s] 
> [  245s] noether failed "build ncurses.spec" at Mon Aug 31 08:54:20 UTC 2020.
> [  245s] 


-- 
  "Having a smoking section in a restaurant is like having
          a peeing section in a swimming pool." -- Edward Burr

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]