[haiku] Re: Perl XS problems

  • From: scott mc <scottmc2@xxxxxxxxx>
  • To: haiku@xxxxxxxxxxxxx
  • Date: Thu, 12 Mar 2009 15:48:06 -0700

On Thu, Mar 12, 2009 at 3:09 PM, Sean Healy <jalopeura@xxxxxxxxxxx> wrote:
> Hello,
>
> I'm writing a Perl extension to interface with Haiku's kits. I'm getting
> errors from Perl's own header files. However, since somebody (apparently
> Ingo) was able to build Perl on Haiku in the first place, I'm sure there is
> a solution. If anyone can help point me in the right direction, that would
> be great.
>
> (By the way, I'm using the 2.95 compiler. I verified that Perl was also
> built with the 2.95 compiler.)
>
>
>
>
>
> /boot/common/bin/perl /boot/common/lib/perl5/5.10.0/ExtUtils/xsubpp -C++
> -typemap /boot/common/lib/perl5/5.10.0/ExtUtils/typemap -typemap typemap
>  ApplicationKit.xs > ApplicationKit.xsc && mv ApplicationKit.xsc
> ApplicationKit.c
>
> Please specify prototyping behavior for ApplicationKit.xs (see perlxs
> manual)
>
> g++ -c  -I. -fno-strict-aliasing -pipe -O   -DVERSION=\"0.01\"
> -DXS_VERSION=\"0.01\" -fpic
> "-I/boot/common/lib/perl5/5.10.0/BePC-haiku/CORE"   ApplicationKit.c
>
> In file included from
> /BeStuff/Perl_Haiku_Kits/working/Haiku-ApplicationKit/ApplicationKit.xs:5:
> /boot/common/lib/perl5/5.10.0/BePC-haiku/CORE/perl.h:1586: badly punctuated
> parameter list in `#define'
> /boot/common/lib/perl5/5.10.0/BePC-haiku/CORE/perl.h:1598: badly punctuated
> parameter list in `#define'
>
> In file included from
> /BeStuff/Perl_Haiku_Kits/working/Haiku-ApplicationKit/ApplicationKit.xs:5:
> /boot/common/lib/perl5/5.10.0/BePC-haiku/CORE/perl.h:2555: haiku/haikuish.h:
> No such file or directory
>
> In file included from
> /BeStuff/Perl_Haiku_Kits/working/Haiku-ApplicationKit/ApplicationKit.xs:11:
> /BeStuff/Perl_Haiku_Kits/working/Haiku-ApplicationKit/ppport.h:4267: Invalid
> token in expression
>
> In file included from
> /boot/common/lib/perl5/5.10.0/BePC-haiku/CORE/perl.h:4695,
>                 from
> /BeStuff/Perl_Haiku_Kits/working/Haiku-ApplicationKit/ApplicationKit.xs:5:
> /boot/common/lib/perl5/5.10.0/BePC-haiku/CORE/proto.h:211: parse error
> before `*'
>
> In file included from
> /boot/common/lib/perl5/5.10.0/BePC-haiku/CORE/perl.h:4725,
>                 from
> /BeStuff/Perl_Haiku_Kits/working/Haiku-ApplicationKit/ApplicationKit.xs:5:
> /boot/common/lib/perl5/5.10.0/BePC-haiku/CORE/intrpvar.h:85: syntax error
> before `;'
> /boot/common/lib/perl5/5.10.0/BePC-haiku/CORE/intrpvar.h:86: syntax error
> before `;'
>
> make: *** [ApplicationKit.o] Error 1
>
>
>

Here's Ingo's notes about this (and patch):
http://ports.haiku-files.org/wiki/dev-lang/perl/5.11.0/1
Not sure if it's of any help but thought I'd point it out.
-scottmc

Other related posts: