Langer's comparison equation method is employed to obtain a uniform asymptotic solution for a nonhomogeneous linear ordinary differential equation with several double poles. Asymptotic validity is proved. The results are applied to the acoustic wave scattering by an ellipsoid.