Equilibrium theory of polymer liquids: Linear chains