The only camera/lens combination I've ever seen that will not produce these distortions is a swing lens panoramic camera. Since the film to lens distance is the same across from one side of the frame to the other due to the curved film plane you don't get the distortions you mention. This will only get you the correction in the direction of the swing of the lens, the other direction will still have the distortions. This is mitigated by being a much smaller dimension than the swing dimension.