On Fri, 19 Aug 2005 at 08:24 -0700, David Dyck <[EMAIL PROTECTED]> wrote:
On Fri, 19 Aug 2005 at 12:07 +0200, Rafael Garcia-Suarez
<[EMAIL PROTECTED]:
From: Rafael Garcia-Suarez <[EMAIL PROTECTED]>
David Dyck (via RT) wrote:
Just rsync'ed to the latest blead perl as was surprised
to get the following error (haven't dug through the diff's
to find out what might have triggered this)
Worksforme. Is this a clean build ?
Yes. This is an older libc5 base 'slackware' system with
a 2.4.32-pre1 kernel that has had trouble with signals
before. I think special code had been added to configure
to test all the signals individually. I was surprised when
these failures occured in the POSIX build - even though miniperl
build fine.
Just wanted to collect some more info for this bug report
The error
const-c.inc:2010: `_NSIG' undeclared (first use in this function)
is from the lines
#ifdef SIGRTMAX
*iv_return = SIGRTMAX;
return PERL_constant_ISIV;
#else
return PERL_constant_NOTDEF;
#endif
where my <asm/signal.h> (inherited libc5 style
from the 2.4 kernel sources) has SIGRTMAX
/* These should not be considered constants from userland. */
#define SIGRTMIN 32
#define SIGRTMAX (_NSIG-1)
but _NSIG is only defined when compiling the kernel (#ifdef __KERNEL__)
sig_name
Configure tests for, and doesn't place RTMAX in sig_name
$ perl -le ' use Config; print $Config{sig_name}'
reports:
ZERO HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM
TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF
WINCH IO PWR SYS CLD IOT POLL UNUSED
So now I'm wondering, why if Configure knows which signal names
are valid, does ext/POSIX/Makefile.pl seem to ignore this.
It looks like the patch triggered the problem, and since
I hadn't rebuild my perl since July 6, I didn't notice it till
now.
+____________________________________________________________________________
+[ 25185] By: merijn on 2005/07/19 11:06:22
+ Log: Subject: [PATCH] allow POSIX SIGRTMIN...SIGRTMAX signals (and
plug a core dump)
+ From: Jarkko Hietaniemi <[EMAIL PROTECTED]>
+ Date: Tue, 19 Jul 2005 12:06:00 +0300
+ Message-ID: <[EMAIL PROTECTED]>
+ Branch: perl
+ ! Configure ext/POSIX/Makefile.PL ext/POSIX/POSIX.pm
+ ! ext/POSIX/POSIX.pod ext/POSIX/POSIX.xs ext/POSIX/t/sigaction.t
+ ! handy.h