In the following example the line \renewcommand\emshape works fine on one Linux computer using Kile but has to be commented out on another Linux computer also using Kile.
There are not other differences between the files and no known differences between the computers.
The error message is Command \emshape undefined.
\documentclass[a4paper,12pt]{letter}
\usepackage{fontspec}
\usepackage{graphicx}
\usepackage{wrapfig}
\defaultfontfeatures{Ligatures=TeX}
\setmainfont{UnifrakturMaguntia16}
\renewcommand\emshape{\addfontfeature{LetterSpace=20.0,Ligatures=Required,Ligatures=NoCommon}}
\renewcommand*{\thefootnote}{\fnsymbol{footnote}}
\begin{document}
\begin{letter}{Fred,}
\address{The earth}
\opening{Hi,}
Lots of waffle
\end{letter}
\end{document}
