Subject: Anyone using Mozilla-current?
To: None <>
From: Tom Ivar Helbekkmo <>
List: port-i386
Date: 11/23/1998 08:53:16
I'm trying to get Mozilla (current; using CVS) to work on NetBSD/i386
version 1.3.2.  It builds with no problems, after I modify the setup
to build shared libraries using "ld -Bshareable" instead of the
specified "cc -shared -Wl,-h -Wl,", which I assume
presupposes a newer compiler tool chain -- but it crashes when run.

Specifically, it bombs out in the first call from main(), where it
tries to use an object without initializing it with "new".  The call
is to NS_NewImageManager(), in gfx/src/nsImageManager.cpp, which
dereferences the static pointer variable gImageManager without there
having been a call to the constructor ImageManagerInit().  This causes
me to wonder if this is something that would have worked with gcc 2.8;
perhaps the newer gcc builds code that automatically calls object
constructors?  I'm just guessing, of course, since I know very little
about C++.  It seems a little too weird that this should be a bug in
the Mozilla source code, since it prevents startup, and thus should be
immediately obvious.

Any clues would be appreciated!

Popularity is the hallmark of mediocrity.  --Niles Crane, "Frasier"