Building current cvs for Apache 2.0.50 on Debian GNU/Linux stable, perl 5.6.1.
The attached patch fixes a sv_copypv missing symbol error when starting apache with mod_perl mod_perl-1.99_15 and newer.
Thanks Jason for the spot and the patch.
After testing is completed I'll apply the following patch (this is sort of ppport.h, so no code needs to be changed).
I'll probably release 1.99_16 shortly, as this will be a problem for any 5.6.x users.
Index: src/modules/perl/modperl_perl_includes.h =================================================================== RCS file: /home/cvs/modperl-2.0/src/modules/perl/modperl_perl_includes.h,v retrieving revision 1.19 diff -u -r1.19 modperl_perl_includes.h --- src/modules/perl/modperl_perl_includes.h 4 Mar 2004 06:01:07 -0000 1.19 +++ src/modules/perl/modperl_perl_includes.h 23 Aug 2004 05:00:27 -0000 @@ -112,4 +112,21 @@ # define environ (*_NSGetEnviron()) #endif
+/* sv_copypv was added in perl 5.7.3 */ +#ifndef sv_copypv +# define sv_copypv(dsv, ssv) \ + STMT_START { \ + STRLEN len; \ + char *s; \ + s = SvPV(ssv, len); \ + sv_setpvn(dsv, s, len); \ + if (SvUTF8(ssv)) { \ + SvUTF8_on(dsv); \ + } \ + else { \ + SvUTF8_off(dsv); \ + } \ + } STMT_END +#endif + #endif /* MODPERL_PERL_INCLUDES_H */
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]