This shows you the differences between two versions of the page.
|
2.10_trouble_reports [2008/12/03 11:55] jesper |
2.10_trouble_reports [2009/03/20 11:10] (current) jesper |
||
|---|---|---|---|
| Line 374: | Line 374: | ||
| --- //Jesper Bengtsson 2008/12/03 11:46// | --- //Jesper Bengtsson 2008/12/03 11:46// | ||
| + | |||
| + | ===== sumversion.c fails to build after upgrading to Fedora 10 ===== | ||
| + | |||
| + | **Problem:** After upgrading to Fedora 10 it's not possible to build the 2.6.19 kernel. It fails with: | ||
| + | <code> | ||
| + | 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[5]: *** [scripts/mod/sumversion.o] Error 1 | ||
| + | make[4]: *** [scripts/mod] Error 2 | ||
| + | make[3]: *** [scripts] Error 2 | ||
| + | make[3]: Leaving directory `/home/jesper/pmt_dev/R2_10-fox832/os/linux-2.6' | ||
| + | make[2]: *** [zImage] Error 2 | ||
| + | make[2]: Leaving directory `/home/jesper/pmt_dev/R2_10-fox832/packages/os/linux-2.6' | ||
| + | make[1]: *** [do-install-recurse] Error 1 | ||
| + | make[1]: Leaving directory `/home/jesper/pmt_dev/R2_10-fox832' | ||
| + | make: *** [everything] Error 2 | ||
| + | </code> | ||
| + | The same problem has occurred on Debian Lenny as well. | ||
| + | |||
| + | **Solution:** Apply the patch below: | ||
| + | <code> | ||
| + | diff -b -u -p -r1.1.1.6 sumversion.c | ||
| + | --- os/linux-2.6/scripts/mod/sumversion.c 25 Jun 2006 12:58:28 -0000 1.1.1.6 | ||
| + | +++ os/linux-2.6/scripts/mod/sumversion.c 20 Mar 2009 10:08:11 -0000 | ||
| + | @@ -7,6 +7,7 @@ | ||
| + | #include <ctype.h> | ||
| + | #include <errno.h> | ||
| + | #include <string.h> | ||
| + | +#include <limits.h> | ||
| + | #include "modpost.h" | ||
| + | |||
| + | /* | ||
| + | </code> | ||
| + | |||
| + | --- //Jesper Bengtsson 2009/03/20 11:09// | ||