Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 908676 - sys-libs/ncurses-6.4_p20230401 has implicit function declarations in configure logs (MUSL-SYSTEM)
Summary: sys-libs/ncurses-6.4_p20230401 has implicit function declarations in configur...
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: implicit-in-configure
  Show dependency tree
 
Reported: 2023-06-17 12:32 UTC by Agostino Sarubbo
Modified: 2024-03-07 12:54 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log.xz (build.log.xz,42.00 KB, application/x-xz)
2023-06-17 12:32 UTC, Agostino Sarubbo
Details
build.log (ppc, 6.4_p20230401) (ncurses-6.4_p20230401:20240307-123755.log,557.08 KB, text/plain)
2024-03-07 12:54 UTC, ernsteiswuerfel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-06-17 12:32:53 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: sys-libs/ncurses-6.4_p20230401 has implicit function declarations in configure logs (MUSL-SYSTEM).
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
(MUSL-SYSTEM) in the summary means that bug was found on a machine that runs MUSL libc but this bug MAY or MAY NOT BE related to musl.
See also: https://bugs.gentoo.org/898488#c4.
Comment 1 Agostino Sarubbo gentoo-dev 2023-06-17 12:32:56 UTC
Created attachment 864041 [details]
build.log.xz

build log and emerge --info (compressed because it exceeds attachment limit, use 'xzless' to read it)
Comment 2 Agostino Sarubbo gentoo-dev 2023-06-17 12:32:57 UTC
Found the following implicit function declarations in configure logs:

config.log:719 - wcwidth
config.log:1926 - posix_openpt
config.log:1708 - posix_openpt
config.log:719 - wcwidth
config.log:1904 - posix_openpt
config.log:1686 - posix_openpt
Comment 3 ernsteiswuerfel archtester 2024-03-07 12:54:41 UTC
Created attachment 886900 [details]
build.log (ppc, 6.4_p20230401)

Fails to build with GCC 14 on ppc/musl:

[...]
powerpc-gentoo-linux-musl-gcc -DHAVE_CONFIG_H -DBUILDING_NCURSES -I../ncurses -I. -I/var/tmp/portage/sys-libs/ncurses-6.4_p20230401/work/ncurses-6.4/ncurses -I../include -I/var/tmp/portage/sys-libs/ncurses-6.4_p20230401/work/ncurses-6.4/ncurses/../include -D_POSIX_C_SOURCE=199506L -DNDEBUG -Os -mcpu=7450 -mtune=7450 -pipe --param max-inline-insns-single=1200  -W -Wall -Wbad-function-cast -Wcast-align -Wcast-qual -Wdeclaration-after-statement -Wextra -Winline -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wshadow -Wstrict-prototypes -Wundef -Wno-inline -Wignored-qualifiers -Wlogical-op -Wvarargs -Wwrite-strings -Wno-unknown-pragmas -Wswitch-enum -fPIC -DUSE_TERMLIB -c /var/tmp/portage/sys-libs/ncurses-6.4_p20230401/work/ncurses-6.4/ncurses/tinfo/lib_acs.c -o ../obj_s/lib_acs.o
/var/tmp/portage/sys-libs/ncurses-6.4_p20230401/work/ncurses-6.4/ncurses/tinfo/lib_acs.c: In function '_nc_wacs_width':
/var/tmp/portage/sys-libs/ncurses-6.4_p20230401/work/ncurses-6.4/ncurses/tinfo/lib_acs.c:321:18: error: implicit declaration of function 'wcwidth' [-Wimplicit-function-declaration]
  321 |         result = wcwidth(ch);
      |                  ^~~~~~~
/var/tmp/portage/sys-libs/ncurses-6.4_p20230401/work/ncurses-6.4/ncurses/tinfo/lib_acs.c:321:18: warning: nested extern declaration of 'wcwidth' [-Wnested-externs]
make[1]: *** [Makefile:1016: ../obj_s/lib_acs.o] Error 1
make[1]: Leaving directory '/var/tmp/portage/sys-libs/ncurses-6.4_p20230401/work/ncurses-6.4-.ppc/ncursesw/ncurses'
make: *** [Makefile:135: all] Error 2