compile error under hp-ux 10.20

"David L. Crow" (crow@dev.tivoli.com)
Sun, 10 Oct 1999 23:14:29 -0500


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

I don't have my HP-UX 10.20 machine anymore, but I think if you move the
#include of modem.h from tio.c to tio.h, this will get this symbol
defined.
--
 David L. Crow                     Texas!  It's like a
 crow@dev.tivoli.com               whole other country.