Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
* Building xdbx?
@ 1995-01-23 21:51 Younk
  0 siblings, 0 replies; only message in thread
From: Younk @ 1995-01-23 21:51 UTC (permalink / raw)


Hi,


I am trying to build xdbx 2.1 on an Alpha DEC 3000. Has anyone done
this? I keep getting these errors from the cc compiler.


cc -g   -I/usr/include     -DSUNOS4    -c command.c -o command.o
/usr/lib/cmplrs/cc/cfe: Error: command.c, line 246: storage size for 'status' isn't known
     union wait status;
 ---------------^
make: *** [command.o] Error 1
cc -g   -I/usr/include     -DSUNOS4    -c signals.c -o signals.o
/usr/lib/cmplrs/cc/cfe: Error: signals.c, line 75: storage size for 'status' isn't known
     union wait status;
 ---------------^
/usr/lib/cmplrs/cc/cfe: Error: signals.c, line 81: Reference an expression of void type or an incomplete type.
     if (((((status) & 0177     ) == 0) || (((status) & 0177    ) != 0177        && ((status) & 0177      ) != 0)) && !( (((status) & 0177        ) == 0177       ) && !(((status) & 0377) == 0377) )) {
 ------------^


 I think the compiler is confused on how much storage to allocate to
status, which is a "union wait"

The union wait is defined in sys/wait.h as:


union wait
{
        int     w_status;               /* used in syscall              */

        struct                          /* terminated process status    */
        {
#if     BYTE_ORDER == BIG_ENDIAN
                unsigned short  w_PAD16;
                unsigned        w_Retcode:8;    /* exit code if w_termsig==0 */
                unsigned        w_Coredump:1;   /* core dump indicator */
                unsigned        w_Termsig:7;    /* termination signal */
#else
                unsigned        w_Termsig:7;    /* termination signal */
                unsigned        w_Coredump:1;   /* core dump indicator */
                unsigned        w_Retcode:8;    /* exit code if w_termsig==0 */
                unsigned short  w_PAD16;
#endif
        } w_T;
        /*
         * Stopped process status.  Returned
         * only for traced children unless requested
         * with the WUNTRACED option bit.
         */
        struct {
#if     BYTE_ORDER == BIG_ENDIAN
                unsigned short  w_PAD16;
                unsigned        w_Stopsig:8;    /* signal that stopped us */
                unsigned        w_Stopval:8;    /* == _WSTOPPED if stopped */
#else
                unsigned        w_Stopval:8;    /* == _WSTOPPED if stopped */
                unsigned        w_Stopsig:8;    /* signal that stopped us */
                unsigned short  w_PAD16;
#endif
        } w_S;
};


 Does anyone know why cc is complaining about this.  I would really
like to get xdbx or something similar running.



Thanks

Ed Younk



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~1995-01-23 21:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1995-01-23 21:51 Building xdbx? Younk

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