in reply to Perl-Gtk2 debugging help needed

The problem is that Mandrake have patched Gtk2-Perl specifically for some of their needs. I don't know the specifics, though. You should ask this question on the Gtk2-Perl mailing list. The Mandrake developers frequent it and will probably help you quickly.

Makeshifts last the longest.

Replies are listed 'Best First'.
Re^2: Perl-Gtk2 debugging help needed
by rbutcher (Beadle) on Aug 11, 2004 at 04:13 UTC
    Thanks Aristotle... I'll chase it up there as well.. I should have added that I tried copying all the Gtk2 stuff from the 5.8.3 distro to my 5.8.4 with the same non-result. Is it in fact OK to just copy components into my Perl "database", or does everything have to be properly installed with makefile etc ?
    Another question.. is the Perl "database" (i.e. /usr/local/ActivePerl58) self-contained ? I.e. is all the info relating to what perl modules etc I have installed contained within that directory, or does Linux keep info about perl libraries somewhetre else as well ?

    Also, my question is about perl gui debugging in general... how do the experts debug X display scripts ? I'm an amateur programmer (these days) doing community stuff, so I don't have access to work colleagues.
    thanks.. Rod

      If the modules are pure Perl, and if the Perl versions don't differ very much, then you might be able to get away with that. (It doesn't strike me as a great idea, regardless.) But Perl-GTK2 is not pure Perl. In that case you are very likely to run into native code library mismatches. I'd say "certain" instead of "very likely" in this case because you have both a Linux platform issue (what glibc did AS use to build their stuff? It's likely statically linked into their Perl, but their modules will expect it and other libraries to be just so.) and a Perl minor rev issue.

      "Even if you are on the right track, you'll get run over if you just sit there." - Will Rogers

      There is no "database". It's just a tree of files, and yes, it's self-contained because Perl doesn't use any metadata besides the directory tree and the filenames in it.

      However, as hbo explained, modules that used compiled parts, such as Gtk2 has to, may not be compatible between different versions of Perl. You can't necessarily move them around like that (though it's not out of the question).

      I'd think you can run the regular Perl debugger on Perl GUI programs; and of course, you can still use print to output diagnostic messages to the console the program was started from. In unixoid systems, there is nothing special about GUI applications.

      Makeshifts last the longest.