Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.bugs.dist > #1178932 > unrolled thread
| Started by | Sven Joachim <svenjoac@gmx.de> |
|---|---|
| First post | 2023-12-16 19:50 +0100 |
| Last post | 2023-12-16 21:40 +0100 |
| Articles | 2 — 2 participants |
Back to article view | Back to linux.debian.bugs.dist
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Bug#1057545: bosh: FTBFS: bosh.c:453:23: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’} Sven Joachim <svenjoac@gmx.de> - 2023-12-16 19:50 +0100
Bug#1057545: bosh: FTBFS: bosh.c:453:23: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’} Salvatore Bonaccorso <carnil@debian.org> - 2023-12-16 21:40 +0100
| From | Sven Joachim <svenjoac@gmx.de> |
|---|---|
| Date | 2023-12-16 19:50 +0100 |
| Subject | Bug#1057545: bosh: FTBFS: bosh.c:453:23: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’} |
| Message-ID | <HLHTz-e1IX-3@gated-at.bofh.it> |
[Multipart message — attachments visible in raw view] — view raw
Control: tags -1 + patch
On 2023-12-05 23:03 +0100, Santiago Vila wrote:
> Package: src:bosh
> Version: 0.6-11
> Severity: serious
> Tags: ftbfs
>
> Dear maintainer:
>
> During a rebuild of all packages in unstable, your package failed to build:
>
> --------------------------------------------------------------------------------
> [...]
> gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"bosh\" -DVERSION=\"0.6\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_LIBNCURSES=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o bosh.o bosh.c
> In file included from bosh.c:23:
> bosh.c: In function ‘keyhandler_readstr’:
> bosh.c:453:23: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
> 453 | mvaddch(stdscr->_cury,stdscr->_curx-1,' ');
> | ^~
> bosh.c:453:37: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
> 453 | mvaddch(stdscr->_cury,stdscr->_curx-1,' ');
> | ^~
> bosh.c:454:20: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
> 454 | move(stdscr->_cury,stdscr->_curx-1);
> | ^~
> bosh.c:454:34: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
> 454 | move(stdscr->_cury,stdscr->_curx-1);
> | ^~
The attached patch fixes that, using the getcury()/getcurx() functions
rather than accessing the stdscr structure directly which no longer
works in current ncurses. It is straightforward, but I have only tested
that bosh builds, not if it works.
Cheers,
Sven
[toc] | [next] | [standalone]
| From | Salvatore Bonaccorso <carnil@debian.org> |
|---|---|
| Date | 2023-12-16 21:40 +0100 |
| Message-ID | <HLJC2-e2Nj-11@gated-at.bofh.it> |
| In reply to | #1178932 |
Hi Sven,
On Sat, Dec 16, 2023 at 07:44:21PM +0100, Sven Joachim wrote:
> Control: tags -1 + patch
>
> On 2023-12-05 23:03 +0100, Santiago Vila wrote:
>
> > Package: src:bosh
> > Version: 0.6-11
> > Severity: serious
> > Tags: ftbfs
> >
> > Dear maintainer:
> >
> > During a rebuild of all packages in unstable, your package failed to build:
> >
> > --------------------------------------------------------------------------------
> > [...]
> > gcc -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"bosh\" -DVERSION=\"0.6\" -DHAVE_STDIO_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_STRINGS_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_UNISTD_H=1 -DSTDC_HEADERS=1 -DHAVE_LIBNCURSES=1 -I. -Wdate-time -D_FORTIFY_SOURCE=2 -Wall -g -O2 -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -c -o bosh.o bosh.c
> > In file included from bosh.c:23:
> > bosh.c: In function ‘keyhandler_readstr’:
> > bosh.c:453:23: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
> > 453 | mvaddch(stdscr->_cury,stdscr->_curx-1,' ');
> > | ^~
> > bosh.c:453:37: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
> > 453 | mvaddch(stdscr->_cury,stdscr->_curx-1,' ');
> > | ^~
> > bosh.c:454:20: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
> > 454 | move(stdscr->_cury,stdscr->_curx-1);
> > | ^~
> > bosh.c:454:34: error: invalid use of incomplete typedef ‘WINDOW’ {aka ‘struct _win_st’}
> > 454 | move(stdscr->_cury,stdscr->_curx-1);
> > | ^~
>
> The attached patch fixes that, using the getcury()/getcurx() functions
> rather than accessing the stdscr structure directly which no longer
> works in current ncurses. It is straightforward, but I have only tested
> that bosh builds, not if it works.
Thanks a lot for the patch!
Regards,
Salvatore
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.bugs.dist
csiph-web