Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 893906 - net-misc/rwhoisd: possible configure breakage with clang 15 (-Wint-conversion)
Summary: net-misc/rwhoisd: possible configure breakage with clang 15 (-Wint-conversion)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 906027
  Show dependency tree
 
Reported: 2023-02-11 05:16 UTC by Sam James
Modified: 2023-12-09 18:10 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-02-11 05:16:16 UTC
```
--- /tmp/clang/home/tinderbox/img/17.1_no_multilib_hardened-j4-20221204-010004/var/tmp/clang/net-misc/rwhoisd-1.5.9.6-r2/clang16-safe.log       2023-02-11 03:38:30.736904353 +0000
+++ /tmp/clang/home/tinderbox/img/17.1_no_multilib_hardened-j4-20221204-010004/var/tmp/clang/net-misc/rwhoisd-1.5.9.6-r2/clang16-errors.log     2023-02-11 03:38:30.740237696 +0000
@@ -120,7 +120,7 @@
 /usr/include/stdio.h:332:12: note: previous declaration is here
 extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
            ^
-ignoreme: warning: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *' [-Wint-conversion]
+ignoreme: error: incompatible integer to pointer conversion passing 'int' to parameter of type 'char *' [-Wint-conversion]
 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
                                   ^~~~~~
 /usr/include/stdio.h:94:16: note: expanded from macro '_IOLBF'
@@ -129,12 +129,13 @@
 /usr/include/stdio.h:332:65: note: passing argument to parameter '__buf' here
 extern int setvbuf (FILE *__restrict __stream, char *__restrict __buf,
                                                                 ^
-ignoreme: warning: incompatible pointer to integer conversion passing 'char *' to parameter of type 'int' [-Wint-conversion]
+ignoreme: error: incompatible pointer to integer conversion passing 'char *' to parameter of type 'int' [-Wint-conversion]
 char buf; return setvbuf (stdout, _IOLBF, &buf, 1);
                                           ^~~~
 /usr/include/stdio.h:333:11: note: passing argument to parameter '__modes' here
                     int __modes, size_t __n) __THROW;
                         ^
+3 errors generated.
```
Comment 1 Larry the Git Cow gentoo-dev 2023-12-09 18:10:59 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8e0c7585f5ff58e7a5c9538ad7d60c69699032d4

commit 8e0c7585f5ff58e7a5c9538ad7d60c69699032d4
Author:     Pascal Jäger <pascal.jaeger@leimstift.de>
AuthorDate: 2022-12-15 21:55:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-12-09 18:06:02 +0000

    net-misc/rwhoisd: fix build for clang16
    
    Closes: https://bugs.gentoo.org/725194
    Closes: https://bugs.gentoo.org/861830
    Closes: https://bugs.gentoo.org/870940
    Closes: https://bugs.gentoo.org/893906
    Signed-off-by: Pascal Jäger <pascal.jaeger@leimstift.de>
    Closes: https://github.com/gentoo/gentoo/pull/28676
    Signed-off-by: Sam James <sam@gentoo.org>

 net-misc/rwhoisd/Manifest                          |  1 +
 net-misc/rwhoisd/files/rwhoisd-1.5.9.6-c99.patch   | 89 ++++++++++++++++++++++
 .../files/rwhoisd-1.5.9.6-fix-direct-ar-call.patch | 33 ++++++++
 net-misc/rwhoisd/rwhoisd-1.5.9.6-r3.ebuild         | 61 +++++++++++++++
 4 files changed, 184 insertions(+)