Sturm-Liouville spectral problem for equation $-(y/r)+qy=lambda py$ with generalized functions $rge 0$, $q$ and $p$ is considered. It is shown that the problem may be reduced to analogous problem with $requiv 1$. The case of $q=0$ and self-similar $r$ and $p$ is considered as an example.