Ethereal-dev: [ethereal-dev] Re: [ethereal-users] Problems compiling 0.7.7 under AIX 4.3.2
(Forwarded to the list - Craig mistakenly replied just to me, not to the
list.)
> > > Hi,
> > >
> > > I had loads of problems compiling ethereal 0.7.7 under
> > > AIX 4.3.2 with the IBM xlc 3.6.6 compiler.
> >
> > > but when I tried to run it, I got a coredump. The stack
> > > trace is:
> > >
> > > Segmentation fault in glink.g_main_pending at 0xd1088884 ($t1)
> > > 0xd1088884 (g_main_pending+0x80) 800c0000 lwz r0,0x0(r12)
>
> OK, it turns out that this is a gtk+/glib problem and not
> an ethereal problem. It turns out that *ANY* program
> that links with the GTK+ shared object libraries will coredump.
> I got rid of the glink error by recompiling glib with xlc_r
> (this links in re-entrant libraries).
>
> However, now I am getting a gdk error:
> % helloworld
> Segmentation fault (core dumped)
>
> % dbx helloworld core
> [using memory image in core]
>
> Segmentation fault in gdk_init_check at 0xd18b5884
> 0xd18b5884 (gdk_init_check+0x8) 800c0000 lwz r0,0x0(r12)
Hmm.
Looks suspiciously similar to the previous error; have you tried
recompiling GTK+ with "xlc_r"?
(Boy, IBM sure did a good job of giving the user a clear indication of
precisely what mistake he or she made, and how to fix it - NOT. "The
magic box" can, at times, be a bit annoying....
Unfortunately, the magic box in Austin that serves up the AIX 4.3
documentation either isn't helping, either, or the AIX 4.3 documentation
itself isn't helpiing; I couldn't find anything to explain what the
difference between "cc" and "cc_r", or "xlc" and "xlc_r", is, so I'm not
sure why linking in the re-entrant libraries would make a difference.)
> (dbx) where
> gdk_init_check() at 0xd18b5884
> gtk_init_check(0x2ff22b28, 0x2ff22b2c), line 199 in "gtkmain.c"
> gtk_init(0x2ff22b28, 0x2ff22b2c), line 423 in "gtkmain.c"
> main(0x1, 0x2ff22b5c) at 0x100003bc
>
> I know this is not quite an ethereal problem, so I apologize
> for wasting the bandwith. Is there an AIX expert on this
> list who can help? I tried looking at the http://bugs.gnome.org,
> but not much AIX expertise there.
>
> Thanks.
> --
> Craig Rodrigues
> http://www.gis.net/~craigr
> rodrigc@xxxxxxxxxxxx