Giving them a massage and a warm bath is unlikely to do any harm and may help them relax. This could help them poop. Gently moving your baby's legs in a cycling action may also help.