Usenet comp.unix.tru64 (2000-2013)
 help / color / mirror / Atom feed
From: banny52@yahoo.com (Ginny E. Kim)
Subject: Re: BUG of Tru64UNIX V5.1
Date: 23 Aug 2001 22:42:46 -0700	[thread overview]
Message-ID: <2f6bec0a.0108232142.6bdd9430@posting.google.com> (raw)
In-Reply-To: 3B852645.D92BD669@zk3.dec.com

Joe Mario <mario@zk3.dec.com> wrote in message news:<3B852645.D92BD669@zk3.dec.com>...
> > Isn't it a OS bug that"((int)(&((struct stack_layout
> > ...)(0))->pcb)&127)?-1:1" can't be positive interger?
> 
> Ginny:
> 	This is a poor-man's way to ensure that the pcb member of
>    	the stack_layout structure is properly aligned.  In your
> 	compilation, the pcb member was not aligned properly so
> 	the the size of the _pcb_align_check array was -1, which
>  	intentionally results in a compile-time error.  
> 	(Note that since this was added, the compiler has added 
> 	pragmas to support this kind of compile-time checking.)
> 
> 	It looks like you are either building your module wrong or
> 	you've modified something that caused the size/layout of
> 	the stack_layout struct to change.
> Joe
> 

My program doesn't have something that cased the size/layout of the
stack_layout struct to change.
It just includes <sys/mbuf.h>. <sys/mbuf.h> includes <machine/pcb.h>
in several stages...
Is it needed other includeing header file?


      reply	other threads:[~2001-08-24  5:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-23  2:27 BUG of Tru64UNIX V5.1 Ginny E. Kim
2001-08-23 15:50 ` Joe Mario
2001-08-24  5:42   ` Ginny E. Kim [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox