编译linux-2.6.20内核出现scripts/mod/sumversion.c:384: error: ‘PATH_MAX’ undeclared 错误

Gentoo Full Text Bug Listing

Bug 226169 - xen-sources doesn't compile
Bug#: 226169 Product:  Gentoo Linux Version: unspecified Platform: AMD64
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: NEEDINFO Assigned To: [email protected] Reported By: [email protected]
Component: Ebuilds  
URL: 
Summary: xen-sources doesn't compile
Keywords:  
Status Whiteboard: 
Opened: 2008-06-13 05:54 0000

:   Opened: 2008-06-13 05:54 0000
xen-sources 2.6.21-xen doesn't compile with ACCEPT_KEYWORDS=~amd64

Reproducible: Always

Steps to Reproduce:
1.make
2.
3.

Actual Results:  
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[3]: *** [scripts/mod/sumversion.o] Error 1
make[2]: *** [scripts/mod] Error 2
make[1]: *** [scripts] Error 2
make[1]: Leaving directory `/home/david/Download/uClinux-dist/linux-2.6.x'
make: *** [linux] Error 1

Expected Results:  
compile the xen kernel

modifying linux-2.6.x/scripts/mod/sumversion.c, and adding #include <limits.h>
fixes this issue.

原文链接: http://bugs.gentoo.org/show_bug.cgi?format=multiple&id=226169

你可能感兴趣的:(linux,function,url,Path,each,xen)