Summary: | net-print/mtink-1.0.16-r2 fails to compile (CLANG-STRICTER-SYSTEM): error: call to undeclared library function strncmp with type int (const char , const char , unsigned long); ISO C99 and later do not support implicit function declarations [-Werror,-Wimp | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Agostino Sarubbo <ago> |
Component: | Current packages | Assignee: | Printing Team <printing> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 870412 | ||
Attachments: | build.log |
Description
Agostino Sarubbo
2022-12-14 15:12:37 UTC
Created attachment 842639 [details]
build.log
build log and emerge --info
Error(s) that match a know pattern in addition to what has been reported in the summary: ".Da.inkOutError: Der er ikke nok bl<E6>k", ".Da.paperJamError: Fejl ved papirfremf<F8> if ( strncmp(buf, "Recv:",5) == 0 )ring", ".Fr.inkOutError: Encre { ".colorChoicesNb:", A_NB, OFFSET(color_choices) },<E9> ".Hu.inkOutError: Tintakifogy<E1>s hiba", ".Hu.paperJamError: Pap<ED>r akad<E1>s hiba", ".Hu.paperOutError: Nincs pap<ED>r hiba", ".Sv.inkOutError: Bl<E4>cket <E4>r slut", ".Sv.paperOutError: Pappret <E4>r slut", 51:16: ".Da.dyellow: M error: call to undeclared library function 'strncmp' with type 'int (const char *, const char *, unsigned long)'; ISO C99 and later do not support implicit function declarations [-Werror,-Wimplicit-function-declaration]<F8> The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=65c4d815a053b023f48cf96ca632a2afe8cb394a commit 65c4d815a053b023f48cf96ca632a2afe8cb394a Author: Eli Schwartz <eschwartz93@gmail.com> AuthorDate: 2024-03-12 04:07:17 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2024-03-12 05:15:39 +0000 net-print/mtink: fix LTO and Modern C bugs Import a patch from debian which fixes both issues by: - including the correct headers - avoiding conflicting definitions of two functions by deleting the conflicting one and #include'ing the other one everywhere Closes: https://bugs.gentoo.org/861854 Closes: https://bugs.gentoo.org/885963 Signed-off-by: Eli Schwartz <eschwartz93@gmail.com> Signed-off-by: Sam James <sam@gentoo.org> .../mtink-1.0.16-fix-function-declarations.patch | 57 ++++++++++++++++++++++ net-print/mtink/mtink-1.0.16-r2.ebuild | 1 + 2 files changed, 58 insertions(+) |