Hi, I've had the same issue when trying to compile emacs and install it with the checkinstall tool that creates a quick Debian package. Its my first patch to emacs hope it helps, Laurent