DEBUG: Executing shell function do_compile
x86_64-poky-linux-gcc  -m64 -march=core2 -mtune=core2 -msse3 -mfpmath=sse -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed  -ffile-prefix-map=TOPDIR/tmp/work/core2-64-poky-linux/chkrootkit/0.58b/chkrootkit-0.58b=/usr/src/debug/chkrootkit/0.58b  -ffile-prefix-map=TOPDIR/tmp/work/core2-64-poky-linux/chkrootkit/0.58b/chkrootkit-0.58b=/usr/src/debug/chkrootkit/0.58b  -ffile-prefix-map=TOPDIR/tmp/work/core2-64-poky-linux/chkrootkit/0.58b/recipe-sysroot=  -ffile-prefix-map=TOPDIR/tmp/work/core2-64-poky-linux/chkrootkit/0.58b/recipe-sysroot-native=  -Wl,-z,relro,-z,now -fstack-protector-strong  -O2 -D_FORTIFY_SOURCE=2 -Wformat -Wformat-security -Werror=format-security --sysroot=TOPDIR/tmp/work/core2-64-poky-linux/chkrootkit/0.58b/recipe-sysroot  -O2 -g  -ffile-prefix-map=TOPDIR/tmp/work/core2-64-poky-linux/chkrootkit/0.58b/chkrootkit-0.58b=/usr/src/debug/chkrootkit/0.58b  -ffile-prefix-map=TOPDIR/tmp/work/core2-64-poky-linux/chkrootkit/0.58b/chkrootkit-0.58b=/usr/src/debug/chkrootkit/0.58b  -ffile-prefix-map=TOPDIR/tmp/work/core2-64-poky-linux/chkrootkit/0.58b/recipe-sysroot=  -ffile-prefix-map=TOPDIR/tmp/work/core2-64-poky-linux/chkrootkit/0.58b/recipe-sysroot-native=  -pipe -DHAVE_LASTLOG_H -o chklastlog chklastlog.c
chklastlog.c: In function 'main':
chklastlog.c:134:25: error: passing argument 2 of 'signal' from incompatible pointer type [-Wincompatible-pointer-types]
  134 |         signal(SIGALRM, read_status);
      |                         ^~~~~~~~~~~
      |                         |
      |                         void (*)(void)
In file included from chklastlog.c:47:
TOPDIR/tmp/work/core2-64-poky-linux/chkrootkit/0.58b/recipe-sysroot/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)
      |                                          ~~~~~~~~~~~~~~~^~~~~~~~~
chklastlog.c:81:6: note: 'read_status' declared here
   81 | void read_status();
      |      ^~~~~~~~~~~
TOPDIR/tmp/work/core2-64-poky-linux/chkrootkit/0.58b/recipe-sysroot/usr/include/signal.h:72:16: note: '__sighandler_t' declared here
   72 | typedef void (*__sighandler_t) (int);
      |                ^~~~~~~~~~~~~~
make: *** [Makefile:43: chklastlog] Error 1
WARNING: exit code 2 from a shell command.

Error details

Submitted on:
25/05/25 21:16
Error type:
Recipe
Task:
do_compile
Recipe:
chkrootkit
Recipe version:
0.58b-r0
Machine:
qemux86-64
Distro:
poky
Build system:
x86_64-linux
Target system:
x86_64-poky-linux
Host distro:
ubuntu-22.04/ubuntu-22.04
Branch:
master
Commit:
caea04becc791316498275f957af9ab28012eea3
Build:
#206581
Submitter:
akuster808@gmail.com
Similar errors:
66
Open a bug