Subject: Re: bug#12327: Signal-handler cleanup for Emacs

From: Eli Zaretskii <[email-masked]>
Date: Fri, 07 Sep 2012 11:27:06 +0300

> Date: Fri, 07 Sep 2012 10:26:17 +0300
> From: Eli Zaretskii <[email-masked]>
> Cc: [email-masked], [email-masked]
> 
> The following link failure _is_ Windows-specific, stand by for a fix.
> 
>   gcc -o oo/i386/temacs.bin  -gdwarf-2 -g3    -Wl,-stack,0x00800000 -Wl,-heap,0x00100000 -Wl,-image-base,0x01000000 -Wl,-subsystem,console -Wl,-entry,__start -Wl,-Map,oo/i386/temacs.map oo/i386/firstfile.o oo/i386/emacs.res oo/i386/temacs0.a oo/i386/temacs1.a       oo/i386/temacs2.a       oo/i386/lastfile.a      ../lib/oo/i386/libgnu.a         -lwinmm         -ladvapi32      -lgdi32         -lcomdlg32      -luser32        -lmpr           -lshell32       -lwinspool      -lole32         -lcomctl32      -lusp10
>   oo/i386/temacs0.a(emacs.o)(.text+0x1066): In function `main':
>   D:\gnu\bzr\emacs\trunk\src/emacs.c:1129: undefined reference to `sigaction'
>   oo/i386/temacs0.a(emacs.o)(.text+0x1091):D:\gnu\bzr\emacs\trunk\src/emacs.c:1133: undefined reference to `sigaction'
>   oo/i386/temacs0.a(emacs.o)(.text+0x10ff):D:\gnu\bzr\emacs\trunk\src/emacs.c:1157: undefined reference to `sigaction'
>   oo/i386/temacs0.a(emacs.o)(.text+0x111a):D:\gnu\bzr\emacs\trunk\src/emacs.c:1184: undefined reference to `sigaction'
>   oo/i386/temacs0.a(emacs.o)(.text+0x1135):D:\gnu\bzr\emacs\trunk\src/emacs.c:1188: undefined reference to `sigaction'
>   oo/i386/temacs0.a(emacs.o)(.text+0x1159):D:\gnu\bzr\emacs\trunk\src/emacs.c:1198: more undefined references to `sigaction' follow
>   collect2: ld returned 1 exit status
>   makefile:501: recipe for target `oo/i386/temacs.exe' failed
>   make[1]: *** [oo/i386/temacs.exe] Error 1
>   make[1]: Leaving directory `D:/gnu/bzr/emacs/trunk/src'
>   makefile:432: recipe for target `all-other-dirs-gmake' failed
>   make: *** [all-other-dirs-gmake] Error 2

Should be fixed with trunk revision 109919.

(Why are there still calls to 'signal', as opposed to 'sigaction', in
some parts of Emacs?)