Informix Error -21612: Unexpected EOF. Expected an ^endif.
Cause and resolution
Unexpected EOF. Expected an ^endif.
If this internal error recurs, note all circumstances and contact IBM Informix Technical Support.
Oninit® Troubleshooting Guidance
Reasons / Common Causes
-21612 fires when an mkmessage input file ends while a preprocessor ^ifdef/^ifndef
block is still open — per the official guidance, an ^endif was expected but the file
ended first.
- The input file ending before a closing
^endiffor an open^ifdef/^ifndefblock, per the official guidance — the direct, only cause.
Solutions / Resolution
- Add the missing
^endifto close the open block, per the official guidance's implication.
Examples
A missing ^endif
^ifdef SOME_MACRO
Some text.
Corrected
^ifdef SOME_MACRO
Some text.
^endif
Diagnostic Checks
- Check the input file for an
^ifdef/^ifndefblock with no matching^endif, and add one.
Related Errors / Related Topics
- -21610 — "Unmatched ^ENDIF at line line-number." The mirror-image condition — an
^ENDIFfound with no matching opener, rather than reaching end-of-file with an open block.
The input file ended with an open ^ifdef/^ifndef block — add the missing ^endif.