United Nations Secretary-General Kofi Annan says a peace agreement that ended the civil war in southern Sudan appears to be floundering .