Boundary-value problems for second-order ordinary differential equations