compile error under hp-ux 10.20
Gert Doering (gert@greenie.muc.de)
Sun, 10 Oct 1999 09:16:33 +0200
Hi,
On Sun, Oct 10, 1999 at 01:06:14AM -0500, Robert J. Brown wrote:
> Joerg> If i grep the whole source code for "MDCD" there is no such
> Joerg> string :( Could anybody explain whats wrong here ?
>
> Maybe it is the result of a macro expansion that splices two strings
> together to form the identifier? Try passing mgetty.c thru only the
> preprocessor and looking at the preprocessor output to try to
> determine what is happening. For gcc, the options are -E -C instead
> of -c to get commented cpp output.
Good thought, but it seems to come from some system header file - the line
in question uses TIO_F_DCD, which is defined to be TIOCM_CAR, which seems
to be defined to MDCD "somewhere in a header file". Seems I missed one,
somewhere.
Interesting enough, that's the first report of this kind I ever got.
Hmmm, Joerg, could you please try compiling with CFLAGS=-D_HPUX_SOURCE ?
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