Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.bugs.dist > #1255103

Bug#1097999: time: ftbfs with GCC-15

From Florian Ernst <florian@debian.org>
Newsgroups linux.debian.bugs.dist
Subject Bug#1097999: time: ftbfs with GCC-15
Date 2025-08-06 08:30 +0200
Message-ID <LgFOV-5ufO-9@gated-at.bofh.it> (permalink)
References <LgFOV-5ufO-11@gated-at.bofh.it> <LgFOV-5ufO-11@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Control: tag 1097999 patch

On Mon, Feb 17, 2025 at 05:57:14PM +0000, Matthias Klose wrote:
> [...]
> The package fails to build in a test rebuild on at least amd64 with
> gcc-15/g++-15, but succeeds to build with gcc-14/g++-14. The
> severity of this report will be raised before the forky release.
> [...]
> src/time.c:750:20: error: assignment to 'sighandler' {aka 'void (*)(void)'} from incompatible pointer type '__sighandler_t' {aka 'void (*)(int)'} [-Wincompatible-pointer-types]
>   750 |   interrupt_signal = signal (SIGINT, SIG_IGN);
>       |                    ^
> [...]
> src/time.c:751:15: error: assignment to 'sighandler' {aka 'void (*)(void)'} from incompatible pointer type '__sighandler_t' {aka 'void (*)(int)'} [-Wincompatible-pointer-types]
>   751 |   quit_signal = signal (SIGQUIT, SIG_IGN);
> [...]
> /usr/include/signal.h:88:57: note: expected '__sighandler_t' {aka 'void (*)(int)'} but argument is of type 'sighandler' {aka 'void (*)(void)'}
>    88 | extern __sighandler_t signal (int __sig, __sighandler_t __handler)
>       |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
> [...]

A patch fixing this has been proposed in
<https://lists.gnu.org/archive/html/bug-time/2025-01/msg00000.html>.
Here copied for reference:

| Signed-off-by: Ondřej Pohořelský <opohorel@redhat.com>
| ---
|  src/time.c | 2 +-
|  1 file changed, 1 insertion(+), 1 deletion(-)
| 
| diff --git a/src/time.c b/src/time.c
| index 7b401bc..c8d7ab0 100644
| --- a/src/time.c
| +++ b/src/time.c
| @@ -803,7 +803,7 @@ run_command (cmd, resp)
|       RESUSE *resp;
|  {
|    pid_t pid; /* Pid of child.  */
| -  sighandler interrupt_signal, quit_signal;
| +  __sighandler_t interrupt_signal, quit_signal;
|    int saved_errno;
| 
|    resuse_start (resp);
| --
| 2.48.1

HTH,
Flo

Back to linux.debian.bugs.dist | Previous | Next | Find similar | Unroll thread


Thread

Bug#1097999: time: ftbfs with GCC-15 Florian Ernst <florian@debian.org> - 2025-08-06 08:30 +0200

csiph-web