Ethereal-dev: Re: [ethereal-dev] AIX: gtk problem solved, now an ethereal problem

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

Date: Thu, 11 Nov 1999 10:04:20 -0500

> Now, I'm having some problems if I click on Open or Save in
> ethereal.  Things coredump inside gdk_string_width() if that
> function is called from gtk_file_selection_populate().
> This looks more like a GTK problem now, so that's not too bad.

I was seeing the same problem (AIX 4.3.3, glib 1.2.6, gtk 1.2.6,
ethereal 0.7.7).  When linking ethereal, I received a lot of
duplicate symbol warnings, most of them conflicts between libgtk.a
and gtk/libui.a[gtkclist.o].  Running ethereal and choosing File->
Open would result in a long list of assert messages beginning with:

  Gtk-WARNING **: gtk_type_create(): type `GtkCList' already exists.

  Gtk-CRITICAL **: file gtktypeutils.c: line 361: assertion `node != NULL'
failed.

  Gtk-CRITICAL **: file gtkclist.c: line 997: assertion `clist != NULL'
failed.

  Gtk-CRITICAL **: file gtkwidget.c: line 3789: assertion `widget != NULL'
failed.

This was followed by the core dump.

After removing gtkclist.o from gtk/libui.a and re-linking ethereal,
File->Open works OK.

The only differences between gtkclist.c in the gtk distribution and
gtkclist.c in the ethereal distribution relate to the ROW_ELEMENT
macro.  It looks like an optimization for retrieving the GList item
when the requested row is the last row in the list.  Any ideas why
this causes trouble?

--
Stephen Lee
sdlee@xxxxxxxxxx