compile error under hp-ux 10.20

"Robert J. Brown" (rj@eli.elilabs.com)
Sun, 10 Oct 1999 01:06:14 -0500


>>>>> "Joerg" == Joerg Hartmann <joerg@de-relay.boerde.de> writes:

    Joerg> Hi,

    Joerg> i try to compile megtty 1.1.21 at a HP9000/730 under HP-UX
    Joerg> 10.20.  My Compiler is gcc 2.8.1 .

    Joerg> But i get only an error-message:

    Joerg> /usr/local/mgetty-1.1.21 # make gcc -pipe -DHPUX_SOURCE
    Joerg> -DFAX_SPOOL_IN=\"/var/spool/fax/incoming\" -c mgetty.c

    Joerg> mgetty.c: In function Main': mgetty.c:1054: MDCD'
    Joerg> undeclared (first use in this function) mgetty.c:1054:
    Joerg> (Each undeclared identifier is reported only once
    Joerg> mgetty.c:1054: for each function it appears in.)  *** Error
    Joerg> exit code 1

    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.

-- 
--------  "And there came a writing to him from Elijah"  [2Ch 21:12]  --------
R. J. Brown III  rj@elilabs.com http://www.elilabs.com/~rj  voice 847 543-4060
Elijah Laboratories Inc. 457 Signal Lane, Grayslake IL 60030  fax 847 543-4061
-----  M o d e l i n g   t h e   M e t h o d s   o f   t h e   M i n d  ------