Re: Problem compiling Gtk-Perl-0.7008

Marcus Claesson said:
I have a problem compiling Gtk-Perl-0.7008 on RedHat 8.0.

gtk-perl is included in the RH8 distro but for some reason is not installed by
default.  you can install it rather easily from the cds or by looking on for Gtk-Perl; e.g.:

gcc: build/PerlGtkExt.o: No such file or directory
gcc: build/GtkDefs.o: No such file or directory
make[1]: *** [../blib/arch/auto/Gtk/] Error 1
make[1]: Leaving directory `/tmp/Gtk-Perl-0.7008/Gtk'
make: *** [subdirs] Error 2

from what i can tell, there seems to be some difference in MakeMaker between
5.6.x and 5.8.0 that makes it not build *.o in the same subdir as the source
*.xs ... the Makefile.PL for GtkPerl expects to find the *.o in various
subdirectories, but they all get created in the directory in which you invoked
make.  ugly.

i found that you can fix that by adding this code to the Makefile.PL:


# --- MakeMaker const_cccmd section:
package MY; # so that SUPER works right
sub const_cccmd {
        my $inherited = shift->SUPER::const_cccmd (@_);
        $inherited .= " -o \$@";
package MAIN;


you'll have to add that to the Makefile.PL in each of the various module
subdirs (Gtk, GtkHTML, Gnome, etc).  wouldn't you rather install a binary rpm?

is there anybody still reading the list who has commit access to the old
gtk-perl tree who can commit this patch?

muppet <scott asofyet org>

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]