Strange errors occurred during module Compilation

Source: Internet
Author: User

 

[Root @ qljt globalmem] # Make-C/linux_kernel/linux-2.6.30/M =/linux_drivers/06/globalmem/modules

Make: Entering directory '/linux_kernel/linux-2.6.30'

CC [m]/linux_drivers/06/globalmem. o

In file encoded ded from include/Linux/green. h: 4,

From include/Linux/kmod. h: 22,

From include/Linux/module. h: 13,

From/linux_drivers/06/globalmem. C: 7:

Include/Linux/mmzone. h: 18: 26: Error: Linux/bounds. h: no such file or directory

Include/Linux/mmzone. h: 256: 5: Warning: "max_nr_zones" is not defined

In file encoded ded from include/Linux/green. h: 4,

From include/Linux/kmod. h: 22,

From include/Linux/module. h: 13,

From/linux_drivers/06/globalmem. C: 7:

Include/Linux/mmzone. h: 290: Error: 'max _ nr_zones 'undeclared here (not in a function)

In file encoded ded from/linux_drivers/06/globalmem. C: 11:

Include/Linux/mm. h: 446: 63: Warning: "nr_pageflags" is not defined

Include/Linux/mm. h: 494: 62: Warning: "nr_pageflags" is not defined

/Linux_drivers/06/globalmem. C: In function 'globalmem _ read ':

/Linux_drivers/06/globalmem. C: 89: Warning: Format '% d' expects type 'int', but argument 3 has type 'long unsigned int'

/Linux_drivers/06/globalmem. C: In function 'globalmem _ write ':

/Linux_drivers/06/globalmem. C: 118: Warning: Format '% d' expects type 'int', but argument 3 has type 'long unsigned int'

Make [1]: *** [/linux_drivers/06/globalmem. O] Error 1

Make: *** [_ module _/linux_drivers/06/globalmem] Error 2

Make: Leaving directory '/linux_kernel/linux-2.6.30

Solution:

Run the command in the root directory of your kernel.

# Make zimageOr

# Make prepare

 

This article is from csdn For blog reposted, indicate the source: http://blog.csdn.net/qiaoliang328/archive/2010/01/14/5191063.aspx

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.