logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Gtk-Perl segmentation fault.: msg#00005

Subject: Gtk-Perl segmentation fault.
Hi Chris,

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

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?

Daniel.

> Something is wrong with my Gtk-Perl installation. The
> system is Red Hat 7.3. I installed Gtk-Perl from:
> ftp://rpmfind.net/linux/redhat/7.2/en/os/i386/RedHat/RPMS/Gtk-Perl-0.7008-3.i386.rpm
>  (there are no 7.3 RPM's) after building from source:
> http://www.gtkperl.org/Gtk-Perl-0.7008.tar.gz failed.
> Here  is the error from the build:
> .
> .
> .
> gcc -c
> -I/usr/local/src/Gtk-Perl-0.7008/Gnome/../Gtk/../blib/arch/Gtk/Install/
> -I/usr/include/gtk-1.2 -I/usr/include/glib-1.2
> -I/usr/lib/glib/include -I/usr/X11R6/include  -I.
> -I./build
> -I/usr/local/src/Gtk-Perl-0.7008/Gnome/../GdkImlib/blib/arch/Gtk/Gdk/ImlibImage/Install/
> -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
> -DLAZY_LOAD -DGTK_HVER=0x01020a -DGNOME_HVER=0x010401
> build/GnomeDefs.c
> Running Mkbootstrap for Gnome ()
> chmod 644 Gnome.bs
> rm -f blib/arch/auto/Gnome/Gnome.so
> 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/Gnome.so   -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/Gnome.so] Error 1
> make[1]: Leaving directory
> `/usr/local/src/Gtk-Perl-0.7008/Gnome'
> 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");
> $win->set_border_width(5);
> $win->set_usize(100,100);
> $win->show;
>
> 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="";
> $EVENT=Gtk::Gdk->event_new();
> $EVENT->{'send_event'}=1;
> $EVENT->{'button'}=3;
> $EVENT->{'type'}="client-event";
> $EVENT->{'message_type'}=Gtk::Gdk::Atom->intern("_GTK_READ_RCFILES",
> 0);
> $EVENT->{'data_format'}=8;
> $EVENT->{'data'}=0;
> $EVENT->{'window'}=undef;
>
> sub gtkrc_refresh {
>     Gtk::Gdk->event_send_clientmessage_toall ($EVENT);
> }
>
> sub kde_refresh {
>     system("kderefresh");
> }
> gtkrc_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,
> Chris
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Health - Feel better, live better
> http://health.yahoo.com
>
>
> --__--__--
>
> _______________________________________________
> gtk-perl-list mailing list
> gtk-perl-list@xxxxxxxxx
> http://mail.gnome.org/mailman/listinfo/gtk-perl-list
>
>
> End of gtk-perl-list Digest
>


<Prev in Thread] Current Thread [Next in Thread>