Second toilet I've tackled and the first was easy. From this pic it looks the closet flange (cf) was cut too much and a PVC ring was glued to the cf and 90 deg fitting.
Last toilet I cut the cf away with the Reem cleanout tool so I could glue a piece of abs pipe to the fitting and the cf to...