Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: ehyounk@mtu.edu (Younk)
Subject: Building xdbx?
Date: 23 Jan 1995 16:51:22 -0500	[thread overview]
Message-ID: <3g18cq$1st@maxwell12.ee> (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



                 reply	other threads:[~1995-01-23 21:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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