Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 893908 - app-misc/rlwrap: possible configure breakage with clang 16
Summary: app-misc/rlwrap: possible configure breakage with clang 16
Status: CONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Common Lisp Bugs
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: implicit-in-configure gcc-14-stable
  Show dependency tree
 
Reported: 2023-02-11 05:17 UTC by Sam James
Modified: 2025-01-15 14:07 UTC (History)
1 user (show)

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:17:02 UTC
```
--- /tmp/clang/home/tinderbox/img/17.1_systemd-j4_test-20221211-060004/var/tmp/clang/app-misc/rlwrap-0.46.1/clang16-safe.log    2023-02-11 03:38:28.030229993 +0000
+++ /tmp/clang/home/tinderbox/img/17.1_systemd-j4_test-20221211-060004/var/tmp/clang/app-misc/rlwrap-0.46.1/clang16-errors.log  2023-02-11 03:38:28.030229993 +0000
@@ -105,13 +105,12 @@
 ignoreme: warning: non-void function does not return a value [-Wreturn-type]
                int f(char i) { }
                                ^
-ignoreme: warning: incompatible function pointer types passing 'int (char)' to parameter of type 'int (*)(int)' [-Wincompatible-function-pointer-types]
+ignoreme: error: incompatible function pointer types passing 'int (char)' to parameter of type 'int (*)(int)' [-Werror,-Wincompatible-function-pointer-types]
 tputs("a", 1, f);
               ^
 /usr/include/term.h:832:60: note: passing argument to parameter here
 extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int));
                                                            ^
```
Comment 1 NHO 2025-01-15 13:55:08 UTC
That's intentional error:
configure:6467: checking argument type of tputs putc function
configure:6494: x86_64-pc-linux-gnu-gcc -c -O2 -pipe -march=native -ggdb -ftree-vectorize -std=gnu23  conftest.c >&5
conftest.c: In function 'main':
conftest.c:84:15: error: passing argument 3 of 'tputs' from incompatible pointer type [-Wincompatible-pointer-types]
   84 | tputs("a", 1, f);
      |               ^
      |               |
      |               int (*)(char)
In file included from conftest.c:69:
/usr/include/term.h:829:54: note: expected 'int (*)(int)' but argument is of type 'int (*)(char)'
  829 | extern NCURSES_EXPORT(int) tputs (const char *, int, int (*)(int));
      |                                                      ^~~~~~~~~~~~
... program skipped ...
configure:6501: result: int

Should be ignored
Comment 2 NHO 2025-01-15 14:07:21 UTC
Doesn't check if ac value is predefined, can't be fixed by "export ac_cv_type_tputs_putc=int"