compile error under hp-ux 10.20

Gert Doering (gert@greenie.muc.de)
Sun, 10 Oct 1999 09:14:30 +0200


Hi,

On Fri, Oct 08, 1999 at 11:18:15AM +0000, Joerg Hartmann wrote:
> i try to compile megtty 1.1.21 at a HP9000/730 under HP-UX 10.20.
> My Compiler is gcc 2.8.1 .
> 
> But i get only an error-message:
> 
> /usr/local/mgetty-1.1.21 # make
> gcc -pipe -DHPUX_SOURCE -DFAX_SPOOL_IN=\"/var/spool/fax/incoming\" -c mgetty.c
> 
> mgetty.c: In function Main':
> mgetty.c:1054: MDCD' undeclared (first use in this function)
> mgetty.c:1054: (Each undeclared identifier is reported only once
> mgetty.c:1054: for each function it appears in.)
> *** Error exit code 1
> 
> If i grep the whole source code for "MDCD" there is no such string :(
> Could anybody explain whats wrong here ?

This has something to do with the serial line control stuff - mgetty's
define for that is TIO_F_DCD, and on HP/UX, the system define is MDCD.

Could you find out the file in /usr/include/* or /usr/include/sys/* where
that #define appears (MDCD) and try including that at the beginning of
mgetty.c?  (#include <blabla.h>).

gert
-- 
USENET is *not* the non-clickable part of WWW!
                                                           //www.muc.de/~gert/
Gert Doering - Munich, Germany                             gert@greenie.muc.de
fax: +49-89-35655025                        gert.doering@physik.tu-muenchen.de