The bew error you got is discussed in https://forum.mysensors.org/topic/11448/config-h-39-first-defined-here/4
Easiest way is probably to switch to the development branch of mysensors.
Run git checkout development
and then start over from the configure step. Or follow the step ”To use the development version with the latest updates” on the raspberry pi gateway build page.