I believe Begin_rootsx is deprecated; you should use `CAMLlocal3(name, err, arg);` which also declares them.