Summary: | net-misc/telnet-bsd-1.2-r2 : ./misc-proto.h: fatal error: sys/cdefs.h: No such file or directory | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Toralf Förster <toralf> |
Component: | Current packages | Assignee: | Gentoo musl team <musl> |
Status: | CONFIRMED --- | ||
Severity: | normal | CC: | awkravchuk, mschiff |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | cdefs.h | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 713786 | ||
Attachments: |
emerge-info.txt
emerge-history.txt environment etc.portage.tbz2 logs.tbz2 net-misc:telnet-bsd-1.2-r1:20200321-123122.log temp.tbz2 musl.patch |
Description
Toralf Förster
2020-03-21 14:13:17 UTC
Created attachment 623828 [details]
emerge-info.txt
Created attachment 623830 [details]
emerge-history.txt
Created attachment 623832 [details]
environment
Created attachment 623834 [details]
etc.portage.tbz2
Created attachment 623836 [details]
logs.tbz2
Created attachment 623838 [details]
net-misc:telnet-bsd-1.2-r1:20200321-123122.log
Created attachment 623840 [details]
temp.tbz2
Patches welcome... Are there any patch proposals? thx musl upstream has a FAQ entry specifically for this error: https://wiki.musl-libc.org/faq.html#Q:-When-compiling-something-against-musl,-I-get-error-messages-about-%3Ccode%3Esys/cdefs.h%3C/code%3E We will need to check/report upstream and patch affected code temporarily. Created attachment 671125 [details, diff]
musl.patch
This musl.patch resolves #713790.
However, the ebuild also fails if ncurses is built with tinfo. You will need to pass -ltinfo to Makefile in order to build successfully.
tinderbox_musl has reproduced this issue with version 1.2-r2 - Updating summary. I've been affected by this on Raspberry Pi installation. The patch from #10 helped. Does anyone mind adding the patch to the portage tree for musl? The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c9ac47f26ac2f21c5e42f9143c1276379884cc97 commit c9ac47f26ac2f21c5e42f9143c1276379884cc97 Author: Marc Schiffbauer <mschiff@gentoo.org> AuthorDate: 2022-03-27 08:42:50 +0000 Commit: Marc Schiffbauer <mschiff@gentoo.org> CommitDate: 2022-03-27 08:43:45 +0000 net-misc/telnet-bsd: fix bug 713790 Bug: https://bugs.gentoo.org/713790 Signed-off-by: Marc Schiffbauer <mschiff@gentoo.org> .../telnet-bsd/files/telnet-bsd-1.2-musl.patch | 42 +++++++++++++++++++ net-misc/telnet-bsd/telnet-bsd-1.2-r3.ebuild | 49 ++++++++++++++++++++++ 2 files changed, 91 insertions(+) Does this fix it for you? Or do you have any suggestion/patch for ncurses[tinfo]? Sorry for the late reply, the SD card on my RPi got busted. Yes, unmasking r3 indeed fixes the problem, thank you Marc! Regarding the tinfo useflag on ncurses, it is on by default in musl profile and I haven't had any problems with it. |