Helloworld on Solaris Sparc, error



Hello,

when trying to run sample helloworld program, the program just dumps
core.

I've included information about my system and also the output when I
try to run the program in the debugger. See bellow.

My setup:

Solaris 9 sparc, Sun Workshop:

 CC: Sun C++ 5.8 2005/10/13 

with pkgsrc-2006Q1 which comes with:

gtk2+-2.8.15nb1
gtkmm-2.8.3

installed fine, without any problems (plus all the dependencies,
everything is compiled with Sun's CC, from scratch, using pkgsrc).

I can also compile programs just fine too:

hw:
        CC -g -c helloworld.cc  `pkg-config gtkmm-2.4 --cflags`
        CC -g -o hw main.cc helloworld.o `pkg-config gtkmm-2.4 --cflags --libs`


Running this I get a core dump. Running it under 'dbx hw core' I get:

Reading hw
core file header read successfully
Reading ld.so.1
Reading libgtkmm-2.4.so.1.0.25
Reading libgdkmm-2.4.so.1.0.25
Reading libatkmm-1.6.so.1.0.25
Reading libgtk-x11-2.0.so.0.100.0
Reading libpangomm-1.4.so.1.0.25
Reading libglibmm-2.4.so.1.0.21
Reading libsigc-2.0.so.0.0.0
Reading libgdk-x11-2.0.so.0.100.0
Reading libatk-1.0.so.0.103.0
Reading libgdk_pixbuf-2.0.so.0.100.0
Reading libm.so.1
Reading libpangocairo-1.0.so.0.1200.0
Reading libpango-1.0.so.0.0.5
Reading libcairo.so.2.2.3
Reading libgobject-2.0.so.0.7.0
Reading libgmodule-2.0.so.0.7.0
Reading libdl.so.1
Reading libglib-2.0.so.0.7.0
Reading libintl.so.3.4.3
Reading libiconv.so.2.3.0
Reading libCstd.so.1
Reading libCrun.so.1
Reading libc.so.1
Reading libgtk-x11-2.0.so.0.800.15
Reading libgdk-x11-2.0.so.0.800.15
Reading libatk-1.0.so.0.1010.3
Reading libgdk_pixbuf-2.0.so.0.800.15
Reading libpango-1.0.so.0.1200.0
Reading libgobject-2.0.so.0.1000.1
Reading libgmodule-2.0.so.0.1000.1
Reading libglib-2.0.so.0.1000.1
Reading libXext.so.0
Reading libX11.so.4
Reading libpangox-1.0.so.0.0.5
Reading libpangoft2-1.0.so.0.1200.0
Reading libfontconfig.so.1.0.4
Reading libfreetype.so.6.3.8
Reading libz.so.1.0.2
Reading libXrender.so.1.3.0
Reading libpng.so.3.0.2
Reading libglitz.so.1.0.0
Reading libpthread.so.1
Reading librt.so.1
Reading libsocket.so.1
Reading libnsl.so.1
Reading libXi.so.5
Reading libXrandr.so.2.0.1
Reading libXcursor.so.1.0.2
Reading libXfixes.so.0.1.0
Reading libexpat.so.1.5.0
Reading libaio.so.1
Reading libmd5.so.1
Reading libmp.so.2
Reading libCstd_isa.so.1
Reading libc_psr.so.1
Reading libthread.so.1
Reading UTF-8%646.so
t 1 (l 1) program terminated by signal ABRT (Abort)
0xfe49f82c: __lwp_kill+0x0008:  bgeu,a   __lwp_kill+0x1c        ! 0xfe49f840
Current function is main
   27     Gtk::Main::run(helloworld); //Shows the window and returns when it is closed.


The error when executing the program is this:


(hw:448): GLib-GObject-WARNING **: cannot create class for `GtkFileChooser', derived from non-classed parent type `GIn
terface'

(hw:448): GLib-GObject-CRITICAL **: file gtype.c: line 1155: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed

(hw:448): GLib-GObject-CRITICAL **: file gtype.c: line 1873: assertion `g_type_parent (interface_type) == G_TYPE_INTER
FACE' failed

(hw:448): GLib-GObject-WARNING **: cannot create class for `GtkFileChooser', derived from non-classed parent type `GIn
terface'

(hw:448): GLib-GObject-CRITICAL **: file gtype.c: line 1155: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed

(hw:448): GLib-GObject-CRITICAL **: file gtype.c: line 1873: assertion `g_type_parent (interface_type) == G_TYPE_INTER
FACE' failed

(hw:448): GLib-GObject-WARNING **: cannot create class for `GtkFileChooser', derived from non-classed parent type `GIn
terface'

(hw:448): GLib-GObject-CRITICAL **: file gtype.c: line 1155: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed

(hw:448): GLib-GObject-CRITICAL **: file gtype.c: line 1873: assertion `g_type_parent (interface_type) == G_TYPE_INTER
FACE' failed

(hw:448): GLib-GObject-WARNING **: cannot create class for `GtkFileChooserEmbed', derived from non-classed parent type
 `GInterface'

(hw:448): GLib-GObject-CRITICAL **: file gtype.c: line 1155: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed

(hw:448): GLib-GObject-CRITICAL **: file gtype.c: line 1873: assertion `g_type_parent (interface_type) == G_TYPE_INTER
FACE' failed

(hw:448): GLib-GObject-WARNING **: cannot create class for `GtkFileChooser', derived from non-classed parent type `GIn
terface'

(hw:448): GLib-GObject-CRITICAL **: file gtype.c: line 1155: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed

(hw:448): GLib-GObject-CRITICAL **: file gtype.c: line 1873: assertion `g_type_parent (interface_type) == G_TYPE_INTER
FACE' failed

(hw:448): GLib-GObject-WARNING **: cannot create class for `GtkFileChooser', derived from non-classed parent type `GIn
terface'

(hw:448): GLib-GObject-CRITICAL **: file gtype.c: line 1155: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed

(hw:448): GLib-GObject-CRITICAL **: file gtype.c: line 1873: assertion `g_type_parent (interface_type) == G_TYPE_INTER
FACE' failed

(hw:448): GLib-GObject-WARNING **: cannot create class for `GtkFileChooser', derived from non-classed parent type `GIn
terface'

(hw:448): GLib-GObject-CRITICAL **: file gtype.c: line 1155: assertion `G_TYPE_IS_INTERFACE (interface_type)' failed

(hw:448): GLib-GObject-CRITICAL **: file gtype.c: line 1873: assertion `g_type_parent (interface_type) == G_TYPE_INTER
FACE' failed

Gdk-ERROR **: The program 'hw' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadAtom (invalid Atom parameter)'.
  (Details: serial 11 error_code 5 request_code 18 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
aborting...

Any idea how can I resolve this ?


Thank you :)



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