"Bernhard Rosenkraenzer via RT" <bug-Class-MethodMaker@rt.cpan.org>
writes:
Show quoted text> Queue: Class-MethodMaker
> Ticket <URL:
http://rt.cpan.org/Ticket/Display.html?id=31943 >
>
> On Thu Dec 27 18:14:14 2007, bero wrote:
>> MethodMaker.xs: In function 'XS_Class__MethodMaker_set_sub_name':
>> MethodMaker.xs:12: error: incompatible types in assignment
>
> Attaching a fix ("works for me" state -- compiles and make test
> passes, no other tests run)
> --- Class-MethodMaker-2.08/MethodMaker.xs.ark 2007-12-27 23:56:54.000000000 +0100
> +++ Class-MethodMaker-2.08/MethodMaker.xs 2007-12-28 00:15:13.000000000 +0100
> @@ -9,5 +9,4 @@
> CODE:
> CvGV((GV*)SvRV(sub)) = gv_fetchpv(stashname, TRUE, SVt_PV);
> GvSTASH(CvGV((GV*)SvRV(sub))) = gv_stashpv(pname, 1);
> - GvNAME(CvGV((GV*)SvRV(sub))) = savepv(subname);
> - GvNAMELEN(CvGV((GV*)SvRV(sub))) = strlen(subname);
> + gv_name_set(CvGV((GV*)SvRV(sub)), subname, strlen(subname), 0);
Thanks for your report and patch.
Did you already try Class::MethodMaker version 2.10? The versions
after 2.08 already contain patches for working with Perl 5.10. Maybe
they already do the trick.
(Greeti+Tha)nX
Steffen
--
Steffen Schwigon <schwigon@webit.de>
Dresden Perl Mongers <
http://dresden-pm.org/>
Deutscher Perl-Workshop <
http://www.perl-workshop.de/>