The baby went on sleeping peacefully, unware of any danger, but the two creatures fought savagely, Gelert to protect the infant and the wolf to devour it, for it was ravenously hungry after days of futile roaming the hills and forests.

what does 'for it was ravenously hungry after days of futile roaming the hills and forests'?

What do these two words mean?

ravenous

futile