компиляция sk98lin
не идет
на ядрах 2.4
2.6
подскажите что не так
Код:
gcc -D__KERNEL__ -DMODULE -D__SMP__ -O2 -Wall -Wstrict-prototypes -I/usr/include -I. -DSK_USE_CSUM -c -o skge.o skge.c
In file included from /usr/include/linux/module.h:10,
from skge.c:366:
/usr/include/linux/config.h:5:2: #error Incorrectly using glibc headers for a kernel module
In file included from skge.c:369:
h/skdrv1st.h:125:26: linux/string.h: No such file or directory
h/skdrv1st.h:128:24: linux/slab.h: No such file or directory
In file included from /usr/include/linux/interrupt.h:9,
from h/skdrv1st.h:129,
from skge.c:369:
/usr/include/asm/bitops.h:327:2: warning: #warning This includefile is not available on all architectures.
/usr/include/asm/bitops.h:328:2: warning: #warning Using kernel headers in userspace: atomicity not guaranteed
In file included from h/skdrv1st.h:129,
from skge.c:369:
на 2.6 сетевуха запускается и без компиляции но работает не более минуты