Frank Heckenbach frank@g-n-u.de writes:
Honda Hirotaka wrote:
I'm trying to build gpc-20001019 on an old i486DX2 DECpc running FreBSD 2.2.8 , but I get the error message of "gcc-2.95.2/gcc/p/rts/rts.c:326: `T_RESADFLT' undeclared here (not in a function)" .
I can't find the word "T_RESADFLT" in rts.c. I want to know what is happenning.
No, this word doesn't occur. However, the line refers to ILL_RESAD_FAULT (and two lines below to ILL_RESOP_FAULT).
So, it may be that these symbols are defined to T_RESADFLT and T_RESOPFLT in some system header, but the latter symbols are not defined. Now, why would one define something to something undefined? I don't know, I guess only a C programmer can understand this...
FreeBSD doesn't use T_RESADFLT or T_RESOPFLT and therefore doesn't define them.
The ILL_* macros are defined as placeholders for a time when they might be used.
So for FreeBSD, you will need to check that the definitions of T_RESADFLT and T_RESOPFLT exist and then fix the definition of ILL_RESAD_FAULT and ILL_RESOP_FAULT accordingly.
The ILL_RESAD_FAULT and ILL_RESOP_FAULT are defined by FreeBSD in machine/trap.h if you are curious. This is also where the corresponding T_* macros are defined.
Regards,
Nick.