On the solvability of a boundary value problem on the real line