I am using the package manager el-get to install third-party emacs packages.
With el-get you can install packages from various sources (tar-ball, emacswiki, git-repo, ...)
and el-get will also handle the autoloads for you.
But when installing CEDET using el-get, the autoloads are messed up:
(No changes need to be saved) [2 times]
el-get: byte-compiling autoload file
error in process sentinel: el-get-installation-failed: Symbol's function definition is void: inversion-test
error in process sentinel: Symbol's function definition is void: inversion-test
The autoload file contains:
(if (or (featurep 'xemacs) (inversion-test 'emacs "22.0")) (defalias 'cedet-split-string 'cedet-split-string-1) (defalias 'cedet-split-string 'split-string))
But this defun is not autoloaded.
I've also filed a bug on el-get, because I don't know what is the cause: