hookem1994
Technical User
I am trying to install a new NIC card on Redhat 7.1 server.
When I run the compile file/script I receive an error tha tthe rtl8139.o fiel has not been found. I am attaching the compile script and the errors that I get.
Thanks in advance,
David
Here is the executible compile file I have:
gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c rtl8139.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`
if [ ! -x /usr/src/linux/modules ]
then
mkdir /usr/src/linux/modules
fi
cp ./rtl8139.o /usr/src/linux/modules/rtl8139.o
Here are the errors I recieved:
In file included from rtl8139.c:70:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but headers from an appropriate kernel-source
mkdir: cannot create directory `/usr/src/linux/modules': No such file or directory
cp: cannot stat `./rtl8139.o': No such file or directory
When I run the compile file/script I receive an error tha tthe rtl8139.o fiel has not been found. I am attaching the compile script and the errors that I get.
Thanks in advance,
David
Here is the executible compile file I have:
gcc -DMODULE -D__KERNEL__ -Wall -Wstrict-prototypes -O6 -c rtl8139.c `[ -f /usr/include/linux/modversions.h ] && echo -DMODVERSIONS`
if [ ! -x /usr/src/linux/modules ]
then
mkdir /usr/src/linux/modules
fi
cp ./rtl8139.o /usr/src/linux/modules/rtl8139.o
Here are the errors I recieved:
In file included from rtl8139.c:70:
/usr/include/linux/modversions.h:1:2: #error Modules should never use kernel-headers system headers,
/usr/include/linux/modversions.h:2:2: #error but headers from an appropriate kernel-source
mkdir: cannot create directory `/usr/src/linux/modules': No such file or directory
cp: cannot stat `./rtl8139.o': No such file or directory