Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#1057930: cunit: FTBFS: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}

108 views
Skip to first unread message

Santiago Vila

unread,
Dec 10, 2023, 2:30:06 PM12/10/23
to
Package: src:cunit
Version: 2.1-3-dfsg-2.6
Severity: serious
Tags: ftbfs

Dear maintainer:

During a rebuild of all packages in unstable, your package failed to build:

--------------------------------------------------------------------------------
[...]
debian/rules binary
dh binary --with autoreconf
dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
dh_update_autotools_config
cp -an --reflink=auto config.guess debian/.debhelper/bucket/files/1d9048b0ac9d4d1dfce7aa4e3a0b59ccfd32db2f7693814aa6f4c778560f5669.tmp
mv debian/.debhelper/bucket/files/1d9048b0ac9d4d1dfce7aa4e3a0b59ccfd32db2f7693814aa6f4c778560f5669.tmp debian/.debhelper/bucket/files/1d9048b0ac9d4d1dfce7aa4e3a0b59ccfd32db2f7693814aa6f4c778560f5669
cp -f /usr/share/misc/config.guess ./config.guess
cp -an --reflink=auto config.sub debian/.debhelper/bucket/files/4add30a10b137a5a4667e12868fb4783e385dbf865cfb7017b205321bd1a2f39.tmp
mv debian/.debhelper/bucket/files/4add30a10b137a5a4667e12868fb4783e385dbf865cfb7017b205321bd1a2f39.tmp debian/.debhelper/bucket/files/4add30a10b137a5a4667e12868fb4783e385dbf865cfb7017b205321bd1a2f39
cp -f /usr/share/misc/config.sub ./config.sub
dh_autoreconf
find ! -ipath "./debian/*" -a ! \( -path '*/.git/*' -o -path '*/.hg/*' -o -path '*/.bzr/*' -o -path '*/.svn/*' -o -path '*/CVS/*' \) -a -type f -exec md5sum {} + -o -type l -printf "symlink %p
" > debian/autoreconf.before
grep -q ^XDT_ configure.in

[... snipped ...]

| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:504:29: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
504 | fprintf(stdout, "\n%*s %-*s%*s%*s%*s%*s\n",
| ~~^~
| |
| int
505 | width[0], _("#"),
506 | width[1], _("Suite Name"),
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:504:32: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 7 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
504 | fprintf(stdout, "\n%*s %-*s%*s%*s%*s%*s\n",
| ~^~
| |
| int
......
507 | width[2], _("Init?"),
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:504:35: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 9 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
504 | fprintf(stdout, "\n%*s %-*s%*s%*s%*s%*s\n",
| ~^~
| |
| int
......
508 | width[3], _("Cleanup?"),
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:504:38: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 11 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
504 | fprintf(stdout, "\n%*s %-*s%*s%*s%*s%*s\n",
| ~^~
| |
| int
......
509 | width[4], _("#Tests"),
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:504:41: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 13 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
504 | fprintf(stdout, "\n%*s %-*s%*s%*s%*s%*s\n",
| ~^~
| |
| int
......
510 | width[5], _("Active?"));
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:514:25: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
514 | fprintf(stdout, "\n%*d. %-*.*s%*s%*s%*u%*s",
| ~^~
| |
| int
515 | width[0], i,
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:514:31: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
514 | fprintf(stdout, "\n%*d. %-*.*s%*s%*s%*u%*s",
| ~~^~~~
| |
| int
515 | width[0], i,
516 | width[1], width[1] - 1, pCurSuite->pName,
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:514:33: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
514 | fprintf(stdout, "\n%*d. %-*.*s%*s%*s%*u%*s",
| ~~~~^~
| |
| int
515 | width[0], i,
516 | width[1], width[1] - 1, pCurSuite->pName,
| ~~~~~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:514:36: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
514 | fprintf(stdout, "\n%*d. %-*.*s%*s%*s%*u%*s",
| ~^~
| |
| int
......
517 | width[2]-1, (NULL != pCurSuite->pInitializeFunc) ? _("Yes") : _("No"),
| ~~~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:514:39: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 10 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
514 | fprintf(stdout, "\n%*d. %-*.*s%*s%*s%*u%*s",
| ~^~
| |
| int
......
518 | width[3], (NULL != pCurSuite->pCleanupFunc) ? _("Yes") : _("No"),
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:514:42: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 12 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
514 | fprintf(stdout, "\n%*d. %-*.*s%*s%*s%*u%*s",
| ~^~
| |
| int
......
519 | width[4], pCurSuite->uiNumberOfTests,
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:514:45: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 14 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
514 | fprintf(stdout, "\n%*d. %-*.*s%*s%*s%*u%*s",
| ~^~
| |
| int
......
520 | width[5], (CU_FALSE != pCurSuite->fActive) ? _("Yes") : _("No"));
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c: In function ‘list_tests’:
Console.c:560:23: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
560 | fprintf(stdout, "\n%*s %-*s%*s\n",
| ~^~
| |
| int
561 | width[0], _("#"),
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:560:29: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
560 | fprintf(stdout, "\n%*s %-*s%*s\n",
| ~~^~
| |
| int
561 | width[0], _("#"),
562 | width[1], _("Test Name"),
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:560:32: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 7 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
560 | fprintf(stdout, "\n%*s %-*s%*s\n",
| ~^~
| |
| int
......
563 | width[2], _("Active?"));
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:569:25: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 3 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
569 | fprintf(stdout, "\n%*u. %-*.*s%*s",
| ~^~
| |
| int
570 | width[0], uiCount,
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:569:31: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 5 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
569 | fprintf(stdout, "\n%*u. %-*.*s%*s",
| ~~^~~~
| |
| int
570 | width[0], uiCount,
571 | width[1], width[1]-1, pCurTest->pName,
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:569:33: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
569 | fprintf(stdout, "\n%*u. %-*.*s%*s",
| ~~~~^~
| |
| int
570 | width[0], uiCount,
571 | width[1], width[1]-1, pCurTest->pName,
| ~~~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c:569:36: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
569 | fprintf(stdout, "\n%*u. %-*.*s%*s",
| ~^~
| |
| int
......
572 | width[2]-1, (CU_FALSE != pCurTest->fActive) ? _("Yes") : _("No"));
| ~~~~~~~~~~
| |
| size_t {aka long unsigned int}
Console.c: In function ‘console_registry_level_run’:
Console.c:167:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
167 | fgets(szTemp, 256, stdin); /* flush any chars out of the read buffer */
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Console.c: In function ‘console_suite_level_run’:
Console.c:246:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
246 | fgets(szTemp, 256, stdin); /* flush any chars out of the read buffer */
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Console.c: In function ‘select_test’:
Console.c:423:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
423 | fgets(buffer, 100, stdin);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Console.c: In function ‘select_suite’:
Console.c:462:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
462 | fgets(buffer, 100, stdin);
| ^~~~~~~~~~~~~~~~~~~~~~~~~
Console.c: In function ‘console_set_options_run’:
Console.c:325:5: warning: ignoring return value of ‘fgets’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
325 | fgets(szTemp, 256, stdin); /* flush any chars out of the read buffer */
| ^~~~~~~~~~~~~~~~~~~~~~~~~
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../CUnit/Headers -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -g -DRELEASE=@RELEASE@ -Wall -W -pedantic -Wshadow -ansi -I/<<PKGBUILDDIR>>/debian/build-ncurses/CUnit/Headers -std=c99 -c Console.c -o Console.o >/dev/null 2>&1
/bin/bash ../../../libtool --tag=CC --mode=link gcc -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -g -DRELEASE=@RELEASE@ -Wall -W -pedantic -Wshadow -ansi -I/<<PKGBUILDDIR>>/debian/build-ncurses/CUnit/Headers -std=c99 -lncurses -L/<<PKGBUILDDIR>>/debian/build-ncurses/CUnit/Sources -o libcunitconsole.la Console.lo -lc
libtool: link: ar cr .libs/libcunitconsole.a .libs/Console.o
libtool: link: ranlib .libs/libcunitconsole.a
libtool: link: ( cd ".libs" && rm -f "libcunitconsole.la" && ln -s "../libcunitconsole.la" "libcunitconsole.la" )
make[6]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-ncurses/CUnit/Sources/Console'
Making all in Curses
make[6]: Entering directory '/<<PKGBUILDDIR>>/debian/build-ncurses/CUnit/Sources/Curses'
/bin/bash ../../../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../CUnit/Headers -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -g -DRELEASE=@RELEASE@ -Wall -W -pedantic -Wshadow -ansi -I/<<PKGBUILDDIR>>/debian/build-ncurses/CUnit/Headers -std=c99 -c -o Curses.lo Curses.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../../.. -I../../../CUnit/Headers -Wdate-time -D_FORTIFY_SOURCE=2 -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -g -DRELEASE=@RELEASE@ -Wall -W -pedantic -Wshadow -ansi -I/<<PKGBUILDDIR>>/debian/build-ncurses/CUnit/Headers -std=c99 -c Curses.c -fPIC -DPIC -o .libs/Curses.o
Curses.c: In function ‘initialize_windows’:
Curses.c:259:41: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
259 | f_nLeft = application_windows.pMainWin->_begx;
| ^~
Curses.c:260:40: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
260 | f_nTop = application_windows.pMainWin->_begy;
| ^~
Curses.c:261:42: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
261 | f_nWidth = application_windows.pMainWin->_maxx;
| ^~
Curses.c:262:43: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
262 | f_nHeight = application_windows.pMainWin->_maxy;
| ^~
Curses.c: In function ‘refresh_windows’:
Curses.c:361:41: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
361 | f_nLeft = application_windows.pMainWin->_begx;
| ^~
Curses.c:362:40: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
362 | f_nTop = application_windows.pMainWin->_begy;
| ^~
Curses.c:363:42: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
363 | f_nWidth = application_windows.pMainWin->_maxx;
| ^~
Curses.c:364:43: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
364 | f_nHeight = application_windows.pMainWin->_maxy;
| ^~
Curses.c: In function ‘curses_suite_level_run’:
Curses.c:739:41: warning: too many arguments for format [-Wformat-extra-args]
739 | snprintf(szTemp, STRING_LENGTH, "%s",
| ^~~~
Curses.c:772:43: warning: too many arguments for format [-Wformat-extra-args]
772 | snprintf(szTemp, STRING_LENGTH, "%s",
| ^~~~
Curses.c: In function ‘create_pad’:
Curses.c:910:52: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
910 | pPad->uiWinLeft = application_windows.pDetailsWin->_begx + 1;
| ^~
Curses.c:911:51: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
911 | pPad->uiWinTop = application_windows.pDetailsWin->_begy + 1;
| ^~
Curses.c:912:55: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
912 | pPad->uiWinColumns = application_windows.pDetailsWin->_maxx - 2;
| ^~
Curses.c:913:52: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
913 | pPad->uiWinRows = application_windows.pDetailsWin->_maxy - 2;
| ^~
Curses.c: In function ‘list_suites’:
Curses.c:1008:37: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1008 | snprintf(szTemp, STRING_LENGTH, "%*s %-*s%*s%*s%*s%*s",
| ~^~
| |
| int
1009 | width[0], _("#"),
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1008:43: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1008 | snprintf(szTemp, STRING_LENGTH, "%*s %-*s%*s%*s%*s%*s",
| ~~^~
| |
| int
1009 | width[0], _("#"),
1010 | width[1], _("Suite Name"),
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1008:46: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1008 | snprintf(szTemp, STRING_LENGTH, "%*s %-*s%*s%*s%*s%*s",
| ~^~
| |
| int
......
1011 | width[2], _("Init?"),
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1008:49: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 10 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1008 | snprintf(szTemp, STRING_LENGTH, "%*s %-*s%*s%*s%*s%*s",
| ~^~
| |
| int
......
1012 | width[3], _("Cleanup?"),
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1008:52: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 12 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1008 | snprintf(szTemp, STRING_LENGTH, "%*s %-*s%*s%*s%*s%*s",
| ~^~
| |
| int
......
1013 | width[4], _("#Tests"),
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1008:55: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 14 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1008 | snprintf(szTemp, STRING_LENGTH, "%*s %-*s%*s%*s%*s%*s",
| ~^~
| |
| int
......
1014 | width[5], _("Active?"));
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1019:39: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1019 | snprintf(szTemp, STRING_LENGTH, "%*d. %-*.*s%*s%*s%*u%*s",
| ~^~
| |
| int
1020 | width[0], i+1,
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1019:45: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1019 | snprintf(szTemp, STRING_LENGTH, "%*d. %-*.*s%*s%*s%*u%*s",
| ~~^~~~
| |
| int
1020 | width[0], i+1,
1021 | width[1], width[1] - 1, pCurSuite->pName,
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1019:47: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 7 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1019 | snprintf(szTemp, STRING_LENGTH, "%*d. %-*.*s%*s%*s%*u%*s",
| ~~~~^~
| |
| int
1020 | width[0], i+1,
1021 | width[1], width[1] - 1, pCurSuite->pName,
| ~~~~~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1019:50: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 9 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1019 | snprintf(szTemp, STRING_LENGTH, "%*d. %-*.*s%*s%*s%*u%*s",
| ~^~
| |
| int
......
1022 | width[2]-1, (NULL != pCurSuite->pInitializeFunc) ? _("Yes") : _("No"),
| ~~~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1019:53: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 11 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1019 | snprintf(szTemp, STRING_LENGTH, "%*d. %-*.*s%*s%*s%*u%*s",
| ~^~
| |
| int
......
1023 | width[3], (NULL != pCurSuite->pCleanupFunc) ? _("Yes") : _("No"),
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1019:56: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 13 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1019 | snprintf(szTemp, STRING_LENGTH, "%*d. %-*.*s%*s%*s%*u%*s",
| ~^~
| |
| int
......
1024 | width[4], pCurSuite->uiNumberOfTests,
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1019:59: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 15 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1019 | snprintf(szTemp, STRING_LENGTH, "%*d. %-*.*s%*s%*s%*u%*s",
| ~^~
| |
| int
......
1025 | width[5], (CU_FALSE != pCurSuite->fActive) ? _("Yes") : _("No"));
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c: In function ‘list_tests’:
Curses.c:1074:14: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1074 | "%*s %-*s%*s",
| ~^~
| |
| int
1075 | width[0], _("#"),
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1074:20: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1074 | "%*s %-*s%*s",
| ~~^~
| |
| int
1075 | width[0], _("#"),
1076 | width[1], _("Test Name"),
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1074:23: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 8 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1074 | "%*s %-*s%*s",
| ~^~
| |
| int
......
1077 | width[2], _("Active?"));
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1085:16: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 4 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1085 | "%*u. %-*.*s%*s",
| ~^~
| |
| int
1086 | width[0], i + 1,
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1085:22: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 6 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1085 | "%*u. %-*.*s%*s",
| ~~^~~~
| |
| int
1086 | width[0], i + 1,
1087 | width[1], width[1]-1, pCurTest->pName,
| ~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1085:24: warning: field precision specifier ‘.*’ expects argument of type ‘int’, but argument 7 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1085 | "%*u. %-*.*s%*s",
| ~~~~^~
| |
| int
1086 | width[0], i + 1,
1087 | width[1], width[1]-1, pCurTest->pName,
| ~~~~~~~~~~
| |
| size_t {aka long unsigned int}
Curses.c:1085:27: warning: field width specifier ‘*’ expects argument of type ‘int’, but argument 9 has type ‘size_t’ {aka ‘long unsigned int’} [-Wformat=]
1085 | "%*u. %-*.*s%*s",
| ~^~
| |
| int
......
1088 | width[2]-1, (CU_FALSE != pCurTest->fActive) ? _("Yes") : _("No"));
| ~~~~~~~~~~
| |
| size_t {aka long unsigned int}
make[6]: *** [Makefile:394: Curses.lo] Error 1
make[6]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-ncurses/CUnit/Sources/Curses'
make[5]: *** [Makefile:539: all-recursive] Error 1
make[5]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-ncurses/CUnit/Sources'
make[4]: *** [Makefile:364: all-recursive] Error 1
make[4]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-ncurses/CUnit'
make[3]: *** [Makefile:507: all-recursive] Error 1
make[3]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-ncurses'
make[2]: *** [Makefile:412: all] Error 2
make[2]: Leaving directory '/<<PKGBUILDDIR>>/debian/build-ncurses'
dh_auto_build: error: make -j1 returned exit code 2
make[1]: *** [debian/rules:26: override_dh_auto_build] Error 25
make[1]: Leaving directory '/<<PKGBUILDDIR>>'
make: *** [debian/rules:15: binary] Error 2
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
--------------------------------------------------------------------------------

The above is just how the build ends and not necessarily the most relevant part.
If required, the full build log is available here:

https://people.debian.org/~sanvila/build-logs/202312/

About the archive rebuild: The build was made using virtual machines
from AWS, with enough memory, enough disk, and either one or two
CPUs, using a reduced chroot with only build-essential packages.

If you could not reproduce the bug please contact me privately, as I
am willing to provide ssh access to a virtual machine where the bug is
fully reproducible.

If this is really a bug in one of the build-depends, please use
reassign and affects, so that this is still visible in the BTS web
page for this package.

Thanks.

Sudip Mukherjee

unread,
Jan 11, 2024, 12:00:05 PM1/11/24
to
Control: tags 1057930 + pending
--

Dear maintainer,

I've prepared an NMU for cunit (versioned as 2.1-3-dfsg-2.7) and
uploaded it to DELAYED/5. Please feel free to tell me if I
should delay it longer.


--
Regards
Sudip

diff -Nru cunit-2.1-3-dfsg/debian/changelog cunit-2.1-3-dfsg/debian/changelog
--- cunit-2.1-3-dfsg/debian/changelog 2023-04-01 07:01:17.000000000 +0100
+++ cunit-2.1-3-dfsg/debian/changelog 2024-01-11 16:36:37.000000000 +0000
@@ -1,3 +1,17 @@
+cunit (2.1-3-dfsg-2.7) unstable; urgency=medium
+
+ * Non-maintainer upload.
+
+ [ Mate Kukri ]
+ * d/p/curses_ftbfs.patch:
+ Fix FTBFS caused by incorrect use of WINDOW. (Closes: #1057930)
+
+ [ Sudip Mukherjee ]
+ * Fixed the patch from Mate Kukri.
+ - Thanks to Sven Joachim for pointing out getmaxx and getmaxy.
+
+ -- Sudip Mukherjee <sudipm.m...@gmail.com> Thu, 11 Jan 2024 16:36:37 +0000
+
cunit (2.1-3-dfsg-2.6) unstable; urgency=medium

* Non-maintainer upload.
diff -Nru cunit-2.1-3-dfsg/debian/patches/curses_ftbfs.patch cunit-2.1-3-dfsg/debian/patches/curses_ftbfs.patch
--- cunit-2.1-3-dfsg/debian/patches/curses_ftbfs.patch 1970-01-01 01:00:00.000000000 +0100
+++ cunit-2.1-3-dfsg/debian/patches/curses_ftbfs.patch 2024-01-11 16:36:37.000000000 +0000
@@ -0,0 +1,52 @@
+Description: Use getters for accessing fields of opaque type WINDOW in Curses.c
+Author: Mate Kukri <mate....@canonical.com>
+Last-Update: 2024-01-04
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/CUnit/Sources/Curses/Curses.c
++++ b/CUnit/Sources/Curses/Curses.c
+@@ -256,10 +256,10 @@
+
+ start_color();
+
+- f_nLeft = application_windows.pMainWin->_begx;
+- f_nTop = application_windows.pMainWin->_begy;
+- f_nWidth = application_windows.pMainWin->_maxx;
+- f_nHeight = application_windows.pMainWin->_maxy;
++ f_nLeft = getbegx(application_windows.pMainWin);
++ f_nTop = getbegy(application_windows.pMainWin);
++ f_nWidth = getmaxx(application_windows.pMainWin) - 1;
++ f_nHeight = getmaxy(application_windows.pMainWin) - 1;
+
+ if (NULL == (application_windows.pTitleWin = newwin(3, f_nWidth, 0, 0))) {
+ goto title_fail;
+@@ -358,10 +358,10 @@
+ {
+ refresh();
+
+- f_nLeft = application_windows.pMainWin->_begx;
+- f_nTop = application_windows.pMainWin->_begy;
+- f_nWidth = application_windows.pMainWin->_maxx;
+- f_nHeight = application_windows.pMainWin->_maxy;
++ f_nLeft = getbegx(application_windows.pMainWin);
++ f_nTop = getbegy(application_windows.pMainWin);
++ f_nWidth = getmaxx(application_windows.pMainWin) - 1;
++ f_nHeight = getmaxy(application_windows.pMainWin) - 1;
+
+ refresh_title_window();
+ refresh_progress_window();
+@@ -907,10 +907,10 @@
+ pPad->uiColumns = uiCols;
+ pPad->uiPadRow = 0;
+ pPad->uiPadCol = 0;
+- pPad->uiWinLeft = application_windows.pDetailsWin->_begx + 1;
+- pPad->uiWinTop = application_windows.pDetailsWin->_begy + 1;
+- pPad->uiWinColumns = application_windows.pDetailsWin->_maxx - 2;
+- pPad->uiWinRows = application_windows.pDetailsWin->_maxy - 2;
++ pPad->uiWinLeft = getbegx(application_windows.pDetailsWin) + 1;
++ pPad->uiWinTop = getbegy(application_windows.pDetailsWin) + 1;
++ pPad->uiWinColumns = getmaxx(application_windows.pDetailsWin) - 3;
++ pPad->uiWinRows = getmaxy(application_windows.pDetailsWin) - 3;
+
+ bStatus = true;
+
diff -Nru cunit-2.1-3-dfsg/debian/patches/series cunit-2.1-3-dfsg/debian/patches/series
--- cunit-2.1-3-dfsg/debian/patches/series 2023-03-31 14:53:05.000000000 +0100
+++ cunit-2.1-3-dfsg/debian/patches/series 2024-01-11 16:03:54.000000000 +0000
@@ -1,3 +1,4 @@
0003-fix-warnings-in-man.patch
0004-doc-intorduction-fix-links-to-headers-4K-in-size.patch
fix-string-format-errors-with-recent-ncu.patch
+curses_ftbfs.patch
0 new messages