On Thu, Mar 12, 2009 at 11: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 `;' As I remember, this bug was fixed a few months ago in this patch http://svn.gna.org/viewcvs/pingwinek/trunk/packages/perl/perl-haiku.patch -- Grzegorz Dąbrowski (kaliber) http://tiltos.com http://home.gna.org/pingwinek/