On Thu, Nov 01, 2007 at 09:32:35PM +0100, [EMAIL PROTECTED] wrote:
> /usr/local/bin/perl5.6.2 /usr/perl5.6.2/lib/5.6.2/ExtUtils/xsubpp  -typemap 
> /usr/perl5.6.2/lib/5.6.2/ExtUtils/typemap -typemap typemap  EV.xs > EV.xsc && 
> mv EV.xsc EV.c
> ccache cc -c  -Ilibev  -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H 
> -fno-strict-aliasing -I/usr/local/include -O2 -pipe    -DVERSION=\"0.1\"  
> -DXS_VERSION=\"0.1\" -DPIC -fPIC 
> "-I/usr/perl5.6.2/lib/5.6.2/amd64-freebsd/CORE"  -DEV_USE_MONOTONIC EV.c
> In file included from EV.xs:10:
> libev/ev.c:357: warning: static declaration of 'Perl_sighandler' follows 
> non-static declaration
> /usr/perl5.6.2/lib/5.6.2/amd64-freebsd/CORE/proto.h:699: warning: previous 
> declaration of 'Perl_sighandler' was here
> EV.xs: In function `sv_signum':
> EV.xs:37: error: `SIG_SIZE' undeclared (first use in this function)
> EV.xs:37: error: (Each undeclared identifier is reported only once
> EV.xs:37: error: for each function it appears in.)
> *** Error code 1

Hmm, I copied that code straight from perl, but I guess 5.6 had diferent
code, or didn't bother to export this symbol to modules?

Sorry for bothering you so much, could you find out how to get perls SIG_SIZE
in your version of perl?

(Background: I need it to convert signal names to numbers).

Also, the warnings are frightening, it seems that perl overrides sigaction
with its own version or so. This doesn't happen here (with 5.8.9 to be), but
namespace pollution is pretty common in earlier versions.

Of course, one could simply require 5.8, but I don't think EV needs any
5.8 features, so maybe it could be ported wiht some minimal loss.

Thanks a lot for your continued help :)

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [EMAIL PROTECTED]
      -=====/_/_//_/\_,_/ /_/\_\

Reply via email to