> Source: [sk105488](https://support.checkpoint.com/results/sk/sk105488)

# sk105488 - Policy installation fails with "Error: Inside #ifdef block at end of input"

| Property | Value |
|----------|-------|
| Solution ID | sk105488 |
| Date Created | 2015-03-31 |
| Last Modified | 2018-10-26 |
| Technical Level | Advanced |
| Products | Security Management Server, Multi-Domain Security Management Server |
| Versions | R82.10, R82, R81.20, R82.10, R82.20, R81.20, R82, R82.20 |

## Symptoms

- Installing policy on R77.X Security Gateway(s) ***and*** UTM-1 Edge device(s) at the same time might fail during Policy Compilation with the following error:

`cpp: line `*N* `, Error: Inside #ifdef block at end of input, depth = `*X*   
`
1 error in preprocessor`  
`
Error compiling IPv6 flavor.`  
`
Compilation failed.`  
`
Operation ended with errors.
`

*Example*:
![](https://sc1.checkpoint.com/sc/SolutionsStatics/NEW_SK_NOID1427803201888/Policy_Install_Error1503310528.png)

## Cause

As we see from the error message, policy installation fails on the preprocessor stage, because one of the required files (*updates.def*in this case) is truncated.

This was caused by the race condition between *fwcpp* and *vpnd* processes (*vpnd* process runs when installing policy on Edge devices): *fwcpp* reads the *updates.def* file, while *vpnd* runs database conversion and modifies this *updates.def* (among other files) at the same time.

## Solution

This solution requires authentication. Please log in to view the full solution.

---

# Agent Instructions

This content is from the Check Point Support Center (https://support.checkpoint.com), the official knowledge base for Check Point cybersecurity products.

## Navigating This Knowledge Base

- **Complete index**: [llms.txt](https://support.checkpoint.com/llms.txt)
- **All SK articles**: [SecureKnowledge Sitemap](https://support.checkpoint.com/sitemaps/secureknowledge-sitemap-index.xml)
- **SK article URL pattern**: `https://support.checkpoint.com/results/sk/{skId}`
- **Markdown responses**: AI bot User-Agents automatically receive `text/markdown` content
