Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 713618

Summary: net-misc/suite3270-4.1_p11 : ../.../screen.c: error: unknown type name wint_t when building against musl
Product: Gentoo Linux Reporter: Toralf Förster <toralf>
Component: Current packagesAssignee: Gentoo musl team <musl>
Status: RESOLVED FIXED    
Severity: normal CC: robbat2, s390
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/26545
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 430702    
Attachments: emerge-info.txt
emerge-history.txt
environment
etc.portage.tbz2
logs.tbz2
net-misc:suite3270-3.6_p8:20200320-035135.log
temp.tbz2

Description Toralf Förster gentoo-dev 2020-03-20 14:52:18 UTC
x86_64-gentoo-linux-musl-gcc -Wall -Wsign-compare -std=c99 -pedantic -Wno-variadic-macros -MMD -MP  -I. -I../../../c3270 -I../../../Common/c3270 -I../../../Common -I../../../include -DLIBX3270DIR=\/etc/x3270\ -D_POSIX_SOURCE -D_BSD_SOURCE -D_DEFAULT_SOURCE -D_XOPEN_SOURCE   -c -o screen.o ../../../c3270/screen.c
../../../c3270/screen.c: In function kybd_input:
../../../c3270/screen.c:1360:3: error: unknown type name wint_t; did you mean ino_t?
 1360 |   wint_t wch;
      |   ^~~~~~
      |   ino_t

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 17.0_musl-20200316-165821

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-gentoo-linux-musl-9.3.0 *
clang version 10.0.0 
Target: x86_64-gentoo-linux-musl
Thread model: posix
InstalledDir: /usr/lib/llvm/10/bin
/usr/lib/llvm/10
10.0.0
Available Python interpreters, in order of preference:
  [1]   python3.8
  [2]   python3.7
  [3]   python3.6
  [4]   python2.7 (fallback)
Available Ruby profiles:
  [1]   ruby24 (with Rubygems)
  [2]   ruby25 (with Rubygems) *
Available Rust versions:
  [1]   rust-1.41.1 *

repository:
==> /var/db/repos/gentoo/metadata/timestamp.chk <==
Wed, 18 Mar 2020 13:38:27 +0000
emerge -qpvO net-misc/suite3270
[ebuild  N    ] net-misc/suite3270-3.6_p8  USE="ncurses ssl -X -cjk -doc -tcl"
Comment 1 Toralf Förster gentoo-dev 2020-03-20 14:52:21 UTC
Created attachment 623086 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-20 14:52:24 UTC
Created attachment 623088 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-20 14:52:26 UTC
Created attachment 623090 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-20 14:52:29 UTC
Created attachment 623092 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-20 14:52:32 UTC
Created attachment 623094 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2020-03-20 14:52:35 UTC
Created attachment 623096 [details]
net-misc:suite3270-3.6_p8:20200320-035135.log
Comment 7 Toralf Förster gentoo-dev 2020-03-20 14:52:38 UTC
Created attachment 623098 [details]
temp.tbz2
Comment 8 Agostino Sarubbo gentoo-dev 2022-02-02 07:59:00 UTC
tinderbox_musl has reproduced this issue with version 4.1_p11 - Updating summary.
Comment 9 SpanKY gentoo-dev 2022-02-07 01:03:26 UTC
i'm not invested in musl, so maybe someone who is can take a look.  or just report it upstream.  either way, it builds fine for glibc.
Comment 10 Larry the Git Cow gentoo-dev 2022-07-30 16:26:05 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4682f355ba2c7615e1b5fe2f80b5bfa3e1bf2896

commit 4682f355ba2c7615e1b5fe2f80b5bfa3e1bf2896
Author:     brahmajit das <listout@protonmail.com>
AuthorDate: 2022-07-23 18:38:40 +0000
Commit:     Arthur Zamarin <arthurzam@gentoo.org>
CommitDate: 2022-07-30 16:26:00 +0000

    net-misc/suite3270: Fix unknown type name wint_t on musl
    
    While building on musl we get build error 'error: unknown type name
    wint_t; did you mean ino_t?'. This patch fixes it.
    
    Closes: https://bugs.gentoo.org/713618
    
    Signed-off-by: brahmajit das <listout@protonmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/26545
    Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>

 net-misc/suite3270/files/suite3270-4.1-musl-wint-t-fix.patch | 12 ++++++++++++
 net-misc/suite3270/suite3270-4.1_p11.ebuild                  |  4 ++++
 2 files changed, 16 insertions(+)