Error: redefinition of a variable

Yep,
so that’s it. Please check https://root.cern/install for available ways to upgrade to a more recent ROOT version.

Cheers,
Enrico