[Bugme-new] [Bug 17561] New: scripts/mod/sumversion.c:384: error: 'PATH_MAX' undeclared
bugzilla-daemon at bugzilla.kernel.org
bugzilla-daemon at bugzilla.kernel.org
Tue Aug 31 11:39:41 PDT 2010
https://bugzilla.kernel.org/show_bug.cgi?id=17561
Summary: scripts/mod/sumversion.c:384: error: 'PATH_MAX'
undeclared
Product: Other
Version: 2.5
Kernel Version: 2.6.19.7
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: Configuration
AssignedTo: other_configuration at kernel-bugs.osdl.org
ReportedBy: mmokrejs at ribosome.natur.cuni.cz
Regression: No
I need to compile some older linux kernel, and with 2.6.17 and 2.6.19.7 I had
the following issue. I found it was known two years ago and here is the patch.
Please fix the older kernel releases, at least in svn, maybe.
HOSTCC scripts/mod/sumversion.o
scripts/mod/sumversion.c: In function 'get_src_version':
scripts/mod/sumversion.c:384: error: 'PATH_MAX' undeclared (first use in this
function)
scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported
only once
scripts/mod/sumversion.c:384: error: for each function it appears in.)
scripts/mod/sumversion.c:384: warning: unused variable 'filelist'
make[2]: *** [scripts/mod/sumversion.o] Error 1
Fixes:
http://bugs.gentoo.org/226169
http://article.gmane.org/gmane.comp.emulators.xen.devel/51901
diff -r 557a4a0a5eac scripts/mod/sumversion.c
--- a/scripts/mod/sumversion.c Fri May 30 19:08:50 2008 +0100
+++ b/scripts/mod/sumversion.c Mon Jun 02 19:47:43 2008 +0900
@@ -8,6 +8,7 @@
#include <errno.h>
#include <string.h>
#include "modpost.h"
+#include <linux/limits.h>
/*
* Stolen form Cryptographic API.
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the Bugme-new
mailing list