Menu

#4 RH 7.2 with DSB-650

open
nobody
None
5
2002-04-04
2002-04-04
Thomas Ruiz
No

I am using RH 7.2 with Kernel 2.4.7. When I run make, it tells me the error of where modversion.h is
located. I searched and found error in the path so I edited Makefile with correct path. For RH 7.2,
the path should read /usr/src/linux-2.4.7-10/include/linux instead of /usr/src/linux/include/linux.
Also, I changed kgcc to gcc in Makefile. Once I fixed that, I got several warnings. It said that
malloc.h is deprecated, use slab.h so I edit kaweth.c and changed without qoutes, "#include
<malloc.h>;" to "#include <slab.h>;" and that warning went away.

Only remaining warnings are noted below as I see on the screen:

[root@mymachine kaweth]# make
gcc -I/usr/src/linux-2.4.7-10/include -O2 -Wall -Wstrict-prototypes -Winline -fn
o-strict-aliasing -fno-strength-reduce -malign-loops=2 -malign-functions=2 -mal
ign-jumps=2 -DCPU=686 -D__SMP__ -D__KERNEL__ -DMODULES -DMODVERSIONS -include /usr
/src/linux-2.4.7-10/include/linux/modversions.h -c -fomit-frame-pointer kaweth.c
In file included from kaweth.c:33:
/usr/src/linux-2.4.7-10/include/linux/sched.h: In function 'mmdrop':
/usr/src/linux-2.4.7-10/include/linux/sched.h:741: warning: can't inline call to
'__mmdrop'
/usr/src/linux-2.4.7-10/include/linux/sched.h:745: warning: called from here
kaweth.c: At top level:
kaweth.c: 82: warning: initialization from incompatible pointer type
[root@mymachine kaweth]#

so what should be done with sched.h and line 82 in kaweth.c?

Discussion


Log in to post a comment.

MongoDB Logo MongoDB