it finally found the reason for this strange behaviour. I copied the directories containing the ROOT macros from one computer to another. ROOT creates several files during compilation (*.d , *.so, etc.). It is necessary to delete ALL of these files! If you compile again ROOT recreates these files for the new system and everything works fine.