The host variable hostvar is either not declared, or it is misspelled. If hostvar is not declared as a host variable, declare it. Otherwise, correct the misspelling.