[pkg-uWSGI-devel] Bug#1114429: Bug#1114429: uwsgi: FTBFS: plugins/pty/pty.c:310:34: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]

Alexandre Rossi niol at zincube.net
Mon Sep 8 09:44:27 BST 2025


Control: -1 tag patch pending
Control: -1 forwarded https://github.com/unbit/uwsgi/pull/2733

Hi,

> CFLAGS="-g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/<<PKGBUILDDIR>>=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection" CPPFLAGS="-Wdate-time -D_FORTIFY_SOURCE=2" LDFLAGS="-Wl,-z,relro" python3 uwsgiconfig.py -v \
> 	--plugin plugins/`basename build/plugins-core/pty` \
> 	debian/buildconf/uwsgi-plugin.ini
> plugins/pty/pty.c: In function ‘uwsgi_pty_client’:
> plugins/pty/pty.c:310:34: error: passing argument 2 of ‘signal’ from incompatible pointer type [-Wincompatible-pointer-types]
>   310 |                 signal(SIGWINCH, uwsgi_pty_winch);
>       |                                  ^~~~~~~~~~~~~~~
>       |                                  |
>       |                                  void (*)(void)
> In file included from ./uwsgi.h:168,
>                  from plugins/pty/pty.c:1:
> /usr/include/signal.h:88:57: note: expected ‘__sighandler_t’ {aka ‘void (*)(int)’} but argument is of type ‘void (*)(void)’
>    88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
>       |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
> plugins/pty/pty.c:262:13: note: ‘uwsgi_pty_winch’ declared here
>   262 | static void uwsgi_pty_winch() {
>       |             ^~~~~~~~~~~~~~~
> /usr/include/signal.h:72:16: note: ‘__sighandler_t’ declared here
>    72 | typedef void (*__sighandler_t) (int);
>       |                ^~~~~~~~~~~~~~

Thanks, patch found upstream to fix this.

Alex



More information about the pkg-uWSGI-devel mailing list