Andy Wardley wrote: > On Wed, Mar 13, 2002 at 08:25:10AM -0500, Chris Winters wrote: > >>I got the following error trying to compile on Win32. Hopefully it makes >>sense to you: >> > > Not a lot, unfortunately. It seems that Stathy's patch to make the XS > Stash work under threaded Perl breaks the compile under various different > versions/platforms. > > http://tt2.org/pipermail/templates/2002-January/002359.html > http://tt2.org/pipermail/templates/2002-February/002722.html > > I'm trying to resolve the problem now, but I suspect that will mean > backing out the threading patch until we can more thoroughly test it > on different platforms. > > Stathy, Stas, you guys know more about this than I do. What can we do > to get this compiling on Win32 and older Perls such as 5.00503? I can see where the problem comes from. The patch at the end should solve it. or you could include in the distro the ppport.h file from the latest perl (autogenerated during the perl build) which is created especially for backporting and then:
#include "pport.h" This will allow you to use the newer perl constructs in the old perls. Index: xs/Stash.xs =================================================================== RCS file: /template-toolkit/Template2/xs/Stash.xs,v retrieving revision 1.9 diff -u -r1.9 Stash.xs --- xs/Stash.xs 2002/03/12 14:33:20 1.9 +++ xs/Stash.xs 2002/03/13 15:13:38 @@ -54,6 +54,13 @@ } #endif +#ifndef pTHX +# define pTHX +# define pTHX_ +# define aTHX +# define aTHX_ +#endif + #define TT_STASH_PKG "Template::Stash::XS" #define TT_LIST_OPS "Template::Stash::LIST_OPS" #define TT_HASH_OPS "Template::Stash::HASH_OPS" _____________________________________________________________________ Stas Bekman JAm_pH -- Just Another mod_perl Hacker http://stason.org/ mod_perl Guide http://perl.apache.org/guide mailto:[EMAIL PROTECTED] http://ticketmaster.com http://apacheweek.com http://singlesheaven.com http://perl.apache.org http://perlmonth.com/
