Daniel Thaler
2004-Oct-18 15:07 UTC
[klibc] Error building ash: trap.c:398: error: conflicting types for 'onsig'
Hello, I get this error building ash (with gcc 3.4.2): trap.c:398: error: conflicting types for 'onsig' trap.h:43: error: previous declaration of 'onsig' was here trap.c:398: error: conflicting types for 'onsig' trap.h:43: error: previous declaration of 'onsig' was here trap.c: In function `onsig': trap.c:399: warning: passing arg 2 of `bsd_signal' from incompatible pointer type make[1]: *** [trap.o] Error 1 make[1]: Leaving directory `/home/daniel/kernel/klibc-0.186/ash' make: *** [all] Error 2 This fixes it for me: --- ash/trap.h.old 2004-10-19 00:04:21.021269720 +0000 +++ ash/trap.h 2004-10-19 00:04:37.218807320 +0000 @@ -40,7 +40,7 @@ void clear_traps(int); long setsignal(int, int); void ignoresig(int, int); -void onsig(int); +__cdecl void onsig(int); void dotrap(void); void setinteractive(int); void exitshell(int) __attribute__((__noreturn__)); Daniel Thaler