Sounds like his anal glands need to be expressed. This is more common in dogs than in cats, but it can happen in cats. It's not a dire emergency, but it needs to be dealt with so the anal glands do not become impacted.