From: gnome-perl (bugzilla.gnome.org) <bug...@bu...> - 2006-05-09 23:24:14
|
Do not reply to this via email (we are currently unable to handle email responses and they get discarded). You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=3D341090 gnome-perl | Gtk2 | Ver: unspecified ------- Comment #5 from Sergei Steshenko 2006-05-09 23:24 UTC ------- I did some debugging, and the problem is that only "require 'CodeGen.pm';= " is present, but "use Glib::CodeGen;" is not, rather, it is present in the place it has no effect. If one reads perldoc /mnt/removable4/sergei/build_work/install/Glib-1.120/lib/perl5/site_perl/= 5.8.7/i386-linux/Glib/CodeGen.pm (my locally installed 'Glib'), he/she sees in the very beginning: " Glib::CodeGen(3) = =20 User Contributed Perl Documentation = =20 Glib::CodeGen(3) NAME Glib::CodeGen - code generation utilities for Glib-based bindings. SYNOPSIS # usually in Makefile.PL use Glib::CodeGen; ". The "# usually in Makefile.PL" is indeed important. Please reread manpage on 'require' - it's runtime, not compiletime, opera= tor. That's why "use Glib::CodeGen;" has no effect, even though it is present in Makefile.PL: " 63 require 'CodeGen.pm'; # other modules should 'use Gtk2::CodeGen;'= -- 64 # we can't because it's not installed yet. ". 'CodeGen.pm' in its turn contains "use base 'Glib::CodeGen';" 1 package Gtk2::CodeGen; 2 3 use strict; 4 use warnings; 5 use Carp; 6 use IO::File; 7 use base 'Glib::CodeGen'; , but, as I said, it has no effect, since 'use' statements are not execut= ed at runtime, unless they are eval'ed. I have found two very simple solution, and I have proof that with the ori= ginal Makefile.PL Glib::CodeGen is not "in the picture". Wait a little, I'll upload the files. --=20 Configure bugmail: http://bugzilla.gnome.org/userprefs.cgi?tab=3Demail ------- You are receiving this mail because: ------- You are the QA contact for the bug. You are the assignee for the bug. |