[prev in list] [next in list] [prev in thread] [next in thread]
List: mozilla-builds
Subject: Re: Can't build Linux
From: Steve Lamm <slamm () netscape ! com>
Date: 1998-12-29 23:27:24
[Download RAW message or body]
There was a thread on this ealier titled,
"undefined reference to nsDerivedSafe... ?"
-slamm
Here's the text from one of the ealier posts,
Cesar Rincon wrote:
>
> Jeremy Lea wrote:
> > Hi,
> >
> > On Sun, Dec 20, 1998 at 07:03:56AM +0000, Cesar Rincon wrote:
> > > Heaven knows I tried, but I can't find what's going on. My build fails
> > > almost at the end, during the linking of viewer.
> > >
> > > I'm running Linux 2.0.33, gcc 2.7.2.3. Just updated my GTK to 1.1.9,
> > > pulled the source on Saturday (Dec 19) at about 22:00. My seamonkey was
> > > building nicely last Friday.
> >
> > Same problem on FreeBSD with gcc 2.7.2.x but it goes away for egcs 1.1, so
> > I'm guessing it's a bug in the template support for the old gcc (which is
> > not known for good C++ support.)
> >
> > Don't have a fix yet...
>
> I looked around a bit after posting that. nsDerivedSafe<T>::AddRef and
> Remove are declared in xpcom/public/nsCOMPtr.h as
>
> #ifndef NSCAP_NO_MEMBER_USING_DECLARATIONS
> using T::AddRef;
> using T::Release;
> #else
> nsrefcnt AddRef();
> nsrefcnt Release();
> #endif
>
> NSCAP_NO_MEMBER_USING_DECLARATIONS is defined a bit earlier in the same
> file:
>
> #if defined(__GNUG__) && (__GNUC_MINOR__ <= 90) && !defined(SOLARIS)
> #define NSCAP_NO_MEMBER_USING_DECLARATIONS
>
> For gcc 2.7, it is NSCAP_NO_MEMBER_USING_DECLARATIONS then. Now, the
> implementations of that methods are in that file, too, but they don't
> get compiled unless the macro NSCAP_NEED_UNUSED_VIRTUAL_IMPLEMENTATIONS
> is defined too, which is not.
>
> So, I guess gcc 2.7 needs unused virtual implementations. However, I
> tried defining it, and it builds, but then both viewer and appruner
> crash with a segmentation fault at startup, so I don't know if what I
> did is a fix at all.
>
> I can't remember right now, but I think gdb mentioned something about
> NSPR and threads and timers, when digging in the core file (I was
> falling asleep at the keyboard; I'll check again later today).
>
> Salud.
>
> --
> César Rincón
> Guadalajara, México http://www.geocities.com/SiliconValley/Park/6244/
> ------------------------------------------------------------------------
> Sex, Unix & Rock'n'roll!
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic