[pso] Torrente masini virtuale

Faur Andrei da3drus at gmail.com
Mon Mar 9 22:03:16 EET 2009


Ca sa imi intru in mana am zis sa reiau cateva exercitii de
la labul 2 (vorbesc de partea de linux). Din cate tineam minte
in primul exercitiu compilarea mergea din prima, fara nici
o modificare. Acum, apar urmatoarele:

so at faust:~/test/lab-02/lin/test-mod$ make
make -C /lib/modules/`uname -r`/build M=`pwd`
make[1]: Entering directory `/usr/src/linux-2.6.28.4'
  CC [M]  /home/so/test/lab-02/lin/test-mod/hello_mod.o
In file included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /home/so/test/lab-02/lin/test-mod/hello_mod.c:5:
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 included from include/linux/gfp.h:4,
                 from include/linux/kmod.h:22,
                 from include/linux/module.h:13,
                 from /home/so/test/lab-02/lin/test-mod/hello_mod.c:5:
include/linux/mmzone.h:277: error: ‘MAX_NR_ZONES’ undeclared here (not in a
function)
make[2]: *** [/home/so/test/lab-02/lin/test-mod/hello_mod.o] Error 1
make[1]: *** [_module_/home/so/test/lab-02/lin/test-mod] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.28.4'
make: *** [kbuild] Error 2
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://cursuri.cs.pub.ro/pipermail/pso/attachments/20090309/1fd2ac6c/attachment.html 


More information about the pso mailing list