Package: apt-show-versions Version: 2.6.21.3 When we configure the kernal using the command "make menuconfig" we got the following error
scripts/mod/sumversion.c: 384: error: 'PATH_MAX' undeclared (first use in this function) scripts/mod/sumversion.c: 384: error: 'PATH_MAX' undeclared (Each undeclared variable is reported only once for each function it appears in) Source Code which has error in following function in the highlighted line of code. void get_src_version(const char *modname, char sum[], unsigned sumlen) { void *file; unsigned long len; struct md4_ctx md; char *sources, *end, *fname; const char *basename; char filelist[PATH_MAX + 1]; char *modverdir = getenv("MODVERDIR"); if (!modverdir) modverdir = "."; /* Source files for module are in .tmp_versions/modname.mod, after the first line. */ if (strrchr(modname, '/')) basename = strrchr(modname, '/') + 1; else basename = modname; sprintf(filelist, "%s/%.*s.mod", modverdir, (int) strlen(basename) - 2, basename); file = grab_file(filelist, &len); if (!file) { warn("could not find versions for %s\n", filelist); return; } sources = strchr(file, '\n'); if (!sources) { warn("malformed versions file for %s\n", modname); goto release; } sources++; end = strchr(sources, '\n'); if (!end) { warn("bad ending versions file for %s\n", modname); goto release; } *end = '\0'; md4_init(&md); while ((fname = strsep(&sources, " ")) != NULL) { if (!*fname) continue; if (!parse_source_files(fname, &md)) goto release; } md4_final_ascii(&md, sum, sumlen); release: release_file(file, len); } * Suggested Solution:* We suggest to declare this global variable "PATH_MAX" somewhere in the global configuration file. We are using Debian GNU/Ubuntu, kernel 2.6.21.3 Arshad Abbas Imtiaz Ahmed