I need to compile some older linux kernel, and with 2.6.17 and 18.104.22.168 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.
scripts/mod/sumversion.c: In function 'get_src_version':
scripts/mod/sumversion.c:384: error: 'PATH_MAX' undeclared (first use in this
scripts/mod/sumversion.c:384: error: (Each undeclared identifier is reported
scripts/mod/sumversion.c:384: error: for each function it appears in.)
scripts/mod/sumversion.c:384: warning: unused variable 'filelist'
make: *** [scripts/mod/sumversion.o] Error 1
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 @@
* Stolen form Cryptographic API.
That file now includes <limits.h> so I'll assume the bug has been fixed.
But would it be possible to release updates of the 2.6.17 and 2.6.19 branches?
In 2.6.20 there were some api changes and some drivers do not compile against them without code changes.
I see it is fixed in 2.6.23 while I haven't inspected .2[0-2].
To summarize, I have this problem with 2.6.17, 22.214.171.124, 126.96.36.199, 188.8.131.52. I still haven't tried neither 2.6.20.x not 2.6.21.x series.