LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Why the errors occur after I used "make" command? (https://www.linuxquestions.org/questions/linux-hardware-18/why-the-errors-occur-after-i-used-make-command-53169/)

Xiangbuilder 04-03-2003 01:12 AM

Why the errors occur after I used "make" command?
 
Why the errors occur after I used "make" command?
I want to drive my RADTEK RTK8189C Based Fast Ethernet Card.
The Ethernet Card's driver has six files:
kern_compat.h; Makefile; pci-scan.c; pci-scan.h; RTK8189C.c; Readme.txt;
This is the Readme file:
RADTEK RTK8189C Based Fast Ethernet Card
Linux 2.4.X Driver Installation Guide
Installation Procedure
1. Make network adapter driver modules
touch *
make clean
make
*Under some distribution, such as SuSe 7.2 and BluePoint 2.0, there is no version.h.
You have to run "make config" or "make menuconfig" at /usr/src/linux to create it.
**If you are using Mandrake 8.0 and you have problems when insmod the dirver, please
remove "-DMODVERSIONS" option from makefile.
***On SMP system, the driver may NOT work well. The bug will be fixed in the future.
***On SMP system, the driver may NOT work well. The bug will be fixed in the future.
2. Insert network adapter driver modules
insmod pciscan.o
insmod RTK8189C.o
.......
After I used "make" command, the errors occur:
......
usr/include/linux/string.h:8:2: warning:#warning Using kernel header in userhand!
......
usr/include/asm/bitops.h:333:2: warning:#warning this includefile in not available on all architectures.
usr/include/asm/bitops.h:334:2: warning:#warning Using kernel header in userhand!
......
usr/include/asm/signal.h:107: parse error before "sigset_t"
usr/include/asm/signal.h:110: parse error before "}" token.
......
usr/include/linux/timer.h:45: parse error before "spinlock_t"
usr/include/linux/timer.h:53: parse error before "}" token"
......
usr/include/linux/timer.h:67: parse error before "tvec_base_t"
usr/include/linux/timer.h:101: parse error before "tvec_bases"
......
usr/include/linux/malloc.h:3:2: warning: #warning The Use of linux/malloc.h is deprecated, use linux/slab.h
pci-scan.c: In funtion 'pci_drv_register':
pci-scan.c:149: warning: implicit declaration of funtion 'pci_find_class'
pci-scan.c:149: warning: assignment makes pointer from integer without a cast
pci-scan.c:157: warning: implicit declaration of funtion 'pci_read_config_dword'
pci-scan.c:163: warning: implicit declaration of funtion 'printk'
......
make ***[pci-scan.o] Error 1
It is not a famous and very good Ethernet Card.
Because the errors' information is very heavy,
so I have posted the pictures on the websit:
http://www.linuxfans.org/nuke/module...wtopic&t=16342
Please go to the fifth post, there are three pictures.
This is a Chinese website, but I use Chinese and English to explain the meaning.
Thank you.


All times are GMT -5. The time now is 11:30 AM.