Check that ROOTSYS is defined before attempting to compile the package.