GNOME Bugzilla – Bug 92516
perl-5.8.0 break file generation
Last modified: 2004-12-22 21:47:04 UTC
Have unintentially perl-5.8.0 results in a desaster: /home/software/bin/perl -I../../tools/pm ../../tools/gtkmmproc -I ../../tools/m4 --defs . thread . ./../glibmm Illegal character in prototype for Enum::parse_values : $,$ at ../../tools/pm/Enum.pm line 78. Illegal character in prototype for Enum::build_element_list : $,$,$,$ at ../../tools/pm/Enum.pm line 151. Illegal character in prototype for GtkDefs::lookup_property : $,$ at ../../tools/pm/GtkDefs.pm line 305. Illegal character in prototype for GtkDefs::Function::parse_param : $,$ at ../../tools/pm/GtkDefs.pm line 436. Illegal character in prototype for Function::new : $,$ at ../../tools/pm/Function.pm line 53. Illegal character in prototype for Function::new_ctor : $,$ at ../../tools/pm/Function.pm line 106. Illegal character in prototype for Function::parse_param : $,$ at ../../tools/pm/Function.pm line 156. Illegal character in prototype for Function::add_parameter_autoname : $,$ at ../../tools/pm/Function.pm line 283. Illegal character in prototype for Function::add_parameter : $,$,$ at ../../tools/pm/Function.pm line 292. Illegal character in prototype for WrapParser::error : $,$ at ../../tools/pm/WrapParser.pm line 152. Illegal character in prototype for WrapParser::on_class : $,$class_command at ../../tools/pm/WrapParser.pm line 401. Illegal character in prototype for WrapParser::on_wrap_vfunc : $,$ at ../../tools/pm/WrapParser.pm line 888. Illegal character in prototype for WrapParser::output_wrap_check : $,$,$,$,$,$ at ../../tools/pm/WrapParser.pm line 1003. Illegal character in prototype for WrapParser::output_wrap_signal : $,$,$,$,$,$ at ../../tools/pm/WrapParser.pm line 1027. Illegal character in prototype for WrapParser::output_wrap_vfunc : $,$,$,$,$,$ at ../../tools/pm/WrapParser.pm line 1078. Use of uninitialized value in string eq at ../../tools/pm/WrapParser.pm line 175. The 'illegal character in prototype' message come from the prototype like for subs, eg: sub parse_values($, $)
By changing sub parse_values($, $) to sub parse_values it works, The 'uninitialized value' error message seem to be more difficult to understand.
A real patch would be nice. This does not seem to be very important because it only affects building from cvs.
Created attachment 10956 [details] [review] Fix sub prototypes in perl scripts, perl 5.8 got pickier about this
Applied. Thanks.