Subject: Re: emacs doesn't compile
To: Daniel R. Killoran,Ph.D. <drkilloran@speakeasy.net>
From: Valeriy E. Ushakov <uwe@ptc.spbu.ru>
List: netbsd-help
Date: 03/19/2005 17:30:08
On Fri, Mar 18, 2005 at 10:43:16 -0500, Daniel R. Killoran,Ph.D. wrote:

> >>>frame.h:88: error: redefinition of `struct frame'
> >
> >Haven't checked, but I wonder if you hit kernel's 'struct frame' b/c
> >some system header exposes it to userland incorrectly.  cc -E is your
> >friend.
> 
> I don't understand. I have compiled emacs twice before from srs, once 
> for rev 1.4 or NetBSD, once for 1.6.
> This time I am doing it for 2.0 & all of a sudden I get this 
> inexplicable error?
> I also don't see how cc -E would help.

Why inexplicable?  It tells you that struct frame is redefined.  Go to
that directory, and re-run the failed command with -E instead of -c -o
This gives you preprocessed output, so you can see where the first
struct frame definition comes from.


> I tried removing the include from the offending file, but that
> produced a LOT of errors.

That is obviously not a solution.  That include must be there.  The
problem is somewhere else.


SY, Uwe
-- 
uwe@ptc.spbu.ru                         |       Zu Grunde kommen
http://www.ptc.spbu.ru/~uwe/            |       Ist zu Grunde gehen