Re: gtk2 Segmentation faults
- From: Owen Taylor <otaylor redhat com>
- To: Kristian Peters <kristian peters korseby net>
- Cc: gtk-list gnome org
- Subject: Re: gtk2 Segmentation faults
- Date: Sun, 17 Mar 2002 14:28:25 -0500 (EST)
Kristian Peters <kristian peters korseby net> writes:
> Hello.
>
> Please cc me. I'm not subscribed (yet).
>
> No matter what gtk2-code I compile, every time it crashes immediately after the first gtk-statement.
>
> Even that simple tutorial from gtk.org crashes (here: "GtkWidget *window;") :
>
> #include <gtk/gtk.h>
>
> int main( int argc,
> char *argv[] )
> {
> GtkWidget *window;
>
> gtk_init (&argc, &argv);
>
> window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
> gtk_widget_show (window);
>
> gtk_main ();
>
> return 0;
> }
>
> I compile it using:
>
> gcc test.c -o test $(pkg-config --cflags --libs gtk+-2.0)
>
> Output of pkg-config --cflags --libs:
>
> -I/usr/include/gtk-2.0 -I/usr/lib/gtk-2.0/include -I/usr/include/atk-1.0 -I/usr/include/pango-1.0 -I/usr/X11R6/include -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgdk_pixbuf-2.0 -lm -lpangox-1.0 -lpangoxft-1.0 -lpango-1.0 -lgobject-2.0 -lgmodule-2.0 -ldl -lglib-2.0
>
> I'm using gcc 2.96 (that from Redhat 7.2). (BTW: I used the src-rpms from Redhat's Rawhide. pkgconfig, glib2, pango, atk, gtk2)
Is your system Red Hat 7.2 in other ways?
> So what is wrong here ? Or is it a stupid fault of mine ?
Porbably something to do with config files or the set of files in your packages. Maybe you could try the i386.rpm
from ftp.gtk.org; they are built against 7.2 with almost exactly the SRPMs as the ones in rawhide. (They
have debugging information, however.)
* As Sven says, is anything printed on the console?
* If you do a backtrace, where is it crashing?
If you are using Xft, the problem may be a bug in XFree86-4.1; upgrading to 4.2 is really necessary to use
Xft fonts.
Regards,
Owen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]