Gtk-Perl segmentation fault.

Hi Chris,

Check that you have the file '/usr/lib/'.
If you can't find it, do a 'locate libdb1' and see what comes up.
If all you can find is - say - '/usr/lib/', then make a

Now, I am confused about that program.  How can you run it if you can't
build Gtk-Perl?  Did you have Gtk-Perl installed from before?


Something is wrong with my Gtk-Perl installation. The
system is Red Hat 7.3. I installed Gtk-Perl from:
 (there are no 7.3 RPM's) after building from source: failed.
Here  is the error from the build:
gcc -c
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/X11R6/include  -I.
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/X11R6/include
-I/usr/X11R6/include -I/usr/include/gnome-1.0
-DNEED_GNOMESUPPORT_H -I/usr/lib/gnome-libs/include
-I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
-I/usr/lib/glib/include -I/usr/X11R6/include
-fno-strict-aliasing -I/usr/local/include
-DVERSION=\"0.7008\" -DXS_VERSION=\"0.7008\" -fPIC
-I/usr/lib/perl5/5.6.1/i386-linux/CORE -DPERL_POLLUTE
Running Mkbootstrap for Gnome ()
chmod 644
rm -f blib/arch/auto/Gnome/
LD_RUN_PATH="/usr/lib:/usr/X11R6/lib" gcc  -shared
-L/usr/local/lib xs/GnomeFileEntry.o
xs/GnomeAnimator.o xs/GnomeMDI.o xs/GnomeEntry.o
xs/GnomeClient.o xs/GnomeGeometry.o xs/GnomeDNS.o
xs/GnomeDateEdit.o xs/GnomePixmap.o xs/GtkClock.o
xs/GnomeLamp.o xs/GtkDial.o xs/GnomeDialogUtil.o
xs/GnomeAbout.o xs/GnomeLess.o xs/GnomeIconList.o
xs/GnomeCanvasLine.o xs/GnomeMessageBox.o
xs/GnomeNumberEntry.o xs/GnomeICE.o xs/GnomeMDIChild.o
xs/GnomeFontSelector.o xs/GnomeDruidPageStandard.o
xs/GnomeDruidPage.o xs/GnomeDEntryEdit.o
xs/GnomeRootWin.o xs/GnomeDialog.o xs/GnomeDockBand.o
xs/GnomeDruidPageFinish.o xs/GtkPixmapMenuItem.o
xs/GnomeStock.o xs/GnomeColorPicker.o
xs/GnomePropertyBox.o xs/GnomeCanvasText.o
xs/GnomeDock.o xs/GtkTed.o xs/GnomeHRef.o xs/Gnome.o
xs/GnomeAppBar.o xs/GnomeCalculator.o
xs/GnomeCanvasRect.o xs/GnomeCanvasEllipse.o
xs/GnomeMDIGenericChild.o xs/GnomeCanvasItem.o
xs/GnomeCanvas.o xs/GnomeDockLayout.o
xs/GnomeIconEntry.o xs/GnomeCanvasWidget.o
xs/GnomeApp.o xs/GnomeDruidPageStart.o
xs/GnomeScores.o xs/GnomeDockItem.o xs/GnomeSpell.o
xs/GnomePixmapEntry.o xs/GnomeCanvasGroup.o
xs/GnomeFontPicker.o xs/ZvtTerm.o xs/GnomeCanvasRE.o
xs/GnomeCanvasImage.o xs/GnomePaperSelector.o
xs/GnomeDruid.o xs/GnomeIconSelection.o
xs/GnomeCanvasPolygon.o build/GnomeDefs.o  -o
blib/arch/auto/Gnome/   -L/usr/X11R6/lib
-L/usr/lib -lgnomeui -lart_lgpl -lgnome -lgnomesupport
-lesd -laudiofile -ldb1 -lzvt -lutil -lSM -lICE
-lgdk_imlib -lgtk -lgdk -lgmodule -lglib -ldl -lXi
-lXext -lX11 -lm
/usr/bin/ld: cannot find -ldb1
collect2: ld returned 1 exit status
make[1]: *** [blib/arch/auto/Gnome/] Error 1
make[1]: Leaving directory
make: *** [subdirs] Error 2
[root inferno Gtk-Perl-0.7008]#

Now this is interesting. Here is some code that runs
file on my system:
#!/usr/bin/perl -w

# create a GTK+ window

use Gtk;
init Gtk;

my $win = new Gtk::Window( "toplevel");

main Gtk;

And this is code that causes a segmentation fault:

#!/usr/bin/perl -w

use Gtk;
use Gtk::Gdk::ImlibImage;
use Gtk::Gdk::Pixbuf;
init Gtk;

my $EVENT="";

sub gtkrc_refresh {
    Gtk::Gdk->event_send_clientmessage_toall ($EVENT);

sub kde_refresh {

print "ok\n";

OK, I need help! Please tell me if you need any more
information about my system. I don't know much about
debugging software and I gave very basic information.
I really want Gtk-Perl to work. Anyone out there in
GtkPerl-land listening?

Thanks for reading,

Do You Yahoo!?
Yahoo! Health - Feel better, live better


gtk-perl-list mailing list
gtk-perl-list gnome org

End of gtk-perl-list Digest

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