develooper Front page | perl.perl5.porters | Postings from April 2006

Re: [perl #36951] POSIX build fails in bleadperl (RTMAX patch)

Thread Previous | Thread Next
From:
Nicholas Clark
Date:
April 27, 2006 13:16
Subject:
Re: [perl #36951] POSIX build fails in bleadperl (RTMAX patch)
Message ID:
20060427201640.GJ45236@plum.flirble.org
This problem:

On Fri, Aug 19, 2005 at 12:03:20PM -0700, David Dyck wrote:

> 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 <jhietaniemi@gmail.com>
> +             Date: Tue, 19 Jul 2005 12:06:00 +0300
> +             Message-ID: <42DCC278.2010009@gmail.com>
> +     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
> 
> 
> 

On Sun, Nov 27, 2005 at 06:25:51PM -0800, Steve Peters via RT wrote:

> Shoot, I forgot one thing.  Your problems with SIGRTMAX are with the
> generated code in the const-c.inc file.  Let me see if I can think of
> another way around this.


This problem is still live and unsolved, isn't it?

Nicholas Clark

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About