[comp.windows.x] Problems building xdbx with gcc

carrow@itd.nrl.navy.mil (Steven A. Carrow) (03/06/91)

Versions: xdbx - 2.1, gcc - 1.37.1, SunOS - 4.0.3 (on a 3)

Problem #1: File - calldbx.c

Compile line: gcc -DNOSTDHDRS -fstrength-reduce -fpcc-struct-return -O
-I/usr/local/public_domain/include -I/usr/local/public_domain/include/X11
-I/usr/local/public_domain/lib/X11 -DSUNOS4 -DXAW_BC  -c  calldbx.c

(The above was one line; broken up for readability).

I got the following two messages:

/usr/local/public_domain/lib/gcc-include/sys/termios.h:44: warning: 
parameter name starts with a digit in #define

/usr/local/public_domain/lib/gcc-include/sys/termios.h:44: badly punctuated
parameter list in #define

This is the offending line:

#define _CTRL('c')      ('c'&037)

When I remove the quotes in the #define, I then get the following errors:

calldbx.c: In function calldbx:
calldbx.c:160: `T' undeclared (first use this function)
calldbx.c:160: (Each undeclared identifier is reported only once
calldbx.c:160: for each function it appears in.)

This is the offending line in this case:

ioctl(slave, TCGETA, &Termio);
where Termio is a struct termio.

Any enlightenment would be appreciated, as this is the only obstacle between
me and a working xdbx.

								Steve
--
*****************************************************************************
* Steven A Carrow               *      ARPA: carrow@itd.nrl.navy.mil        *
* Code 5570                     *      UUCP: {backbone}!uunet!              *
* Naval Research Lab            *            nrl-css!carrow (I think)       *
* Washington, DC 20375          *      Disclaimer: I can barely speak for   *
* (202) 767-9125                *      myself, much less the government.    *
*****************************************************************************