error while trying to compile realtek8168 network driver package
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
error while trying to compile realtek8168 network driver package
I am trying to install the driver for realtek network 8111c chip on Linux kernel2.6.9-34ELsmp. I downloaded the package, unpacked the distribution and tried to compile but run into this error when I do a make all.
makefile details below.........
make -C src/ clean
make[1]: Entering directory `/root/r8168-8.008.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers *.order
make[1]: Leaving directory `/root/r8168-8.008.00/src'
make -C src/ modules
make[1]: Entering directory `/root/r8168-8.008.00/src'
make -C SUBDIRS=/root/r8168-8.008.00/src modules
make: *** SUBDIRS=/root/r8168-8.008.00/src: No such file or directory. Stop.
make: Entering an unknown directorymake: Leaving an unknown directorymake[1]: *** [modules] Error 2
make[1]: Leaving directory `/root/r8168-8.008.00/src'
make: *** [modules] Error 2
[root@localhost r8168-8.008.00]# ls
Makefile readme release_note.txt src
Hmmm. I would first try
cd /root/r8168-8.008.00
make modules
The '-C' makes it do a cd there before building. It seems to be attempting to cd into the src directory when it is already there. I am taking it the Makefile is in /root/r8168-8.008.00, and the .c and .h files in /root/r8168-8.008.00/src/
As a side point, it's safer not to build as root; build as a luser, install as root.
unable to compile realtek 8168 package on kernel 2.6.9-34.ELsmp
Has anybody tried to compile the realtek 8168 driver package on linux kernel 2.6.9-34.ELsmp. make tried to cd into lib/modules/2.6.9-34.ELsmp/build....this build directory does not exist. I am not sure what the contents are in the build directory but when I cd lib/modules/2.6.9-34.ELsmp I dont see a build directory there.
Any ideas..
[root@localhost r8168-8.011.00]# make
make -C src/ clean
make[1]: Entering directory `/home/mylvarab/r8168-8.011.00/src'
rm -rf *.o *.ko *~ core* .dep* .*.d .*.cmd *.mod.c *.a *.s .*.flags .tmp_versions Module.symvers Modules.symvers *.order
make[1]: Leaving directory `/home/mylvarab/r8168-8.011.00/src'
make -C src/ modules
make[1]: Entering directory `/home/mylvarab/r8168-8.011.00/src'
make -C /lib/modules/2.6.9-34.ELsmp/build SUBDIRS=/home/mylvarab/r8168-8.011.00/src modules
make: *** /lib/modules/2.6.9-34.ELsmp/build: No such file or directory. Stop.
make: Entering an unknown directorymake: Leaving an unknown directorymake[1]: *** [modules] Error 2
make[1]: Leaving directory `/home/mylvarab/r8168-8.011.00/src'
make: *** [modules] Error 2
I presume you have modules for that kernel in /lib/modules/<version>.
Make sure you are running on that kernel, as the package will use uname to detect the correct kernel
/lib/modules/u.6.34whatever/build should point to the kernel source in /usr/src/linux-<version>
OK. So you have to install the kernel source. It's linux-something or kernel-something and has the word source in it. You can use the distro package, I used the tarball from kernel.org. 642Megs is the built kernel. It would shrink by 200 megs if I ran 'make clean'
bash-3.1$ du -sh linux*
642M linux-2.6.30.5
57M linux-2.6.30.5.tar.bz2
I am trying to compile the linux kernel 2.6.32.1 and it fails with this error.
Any ideas
[root@localhost linux-2.6.32.1]# make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC kernel/rcutree.o
kernel/rcutree.c: In function `__rcu_init':
kernel/rcutree.h:301: sorry, unimplemented: inlining failed in call to 'rcu_bootup_announce': function body not available
kernel/rcutree.c:1740: sorry, unimplemented: called from here
make[1]: *** [kernel/rcutree.o] Error 1
make: *** [kernel] Error 2
Distribution: Debian testing/sid; OpenSuSE; Fedora; Mint
Posts: 5,524
Rep:
You need to update the system. If you're using Red Hat: yum update. If you're using Debian: apt-get update and then apt-get upgrade. If you're using a stock kernel, all the network device modules would ordinarily be compiled.
am trying to compile the linux kernel 2.6.32.1 and it fails with this error.
Any ideas
[root@localhost linux-2.6.32.1]# make
CHK include/linux/version.h
CHK include/linux/utsrelease.h
SYMLINK include/asm -> include/asm-x86
CALL scripts/checksyscalls.sh
CHK include/linux/compile.h
CC kernel/rcutree.o
kernel/rcutree.c: In function `__rcu_init':
kernel/rcutree.h:301: sorry, unimplemented: inlining failed in call to 'rcu_bootup_announce': function body not available
kernel/rcutree.c:1740: sorry, unimplemented: called from here
make[1]: *** [kernel/rcutree.o] Error 1
make: *** [kernel] Error 2
To me, this looks like a versions issue. This box, for example, runs slackware-12.0. I am shy of updating it because it has an old Nvidia card, and I _can't_ update the driver for that. I recently threw in alsa-utils-1.0.18 in place of 1.0.14, and alsactl wouldn't work, throwing up a similar message
Below is the the structure of my /lib/modules. Initially the /lib/modules/build was empty. I made a symbolic link from /usr/src/redhat/BUILD/kernel-2.6.9 to this location. I compiled the kernel and it successfully compiled. I then tried to run make modules from /root/r8168-8.008.00 but I run into this error.
[root@prashanth r8168-8.008.00]# make modules
make -C src/ modules
make[1]: Entering directory `/root/r8168-8.008.00/src'
make -C /lib/modules/2.6.9-34.ELsmp/build SUBDIRS=/root/r8168-8.008.00/src modules
make[2]: Entering directory `/lib/modules/2.6.9-34.ELsmp/build'
make[2]: *** No rule to make target `modules'. Stop.
make[2]: Leaving directory `/lib/modules/2.6.9-34.ELsmp/build'
make[1]: *** [modules] Error 2
make[1]: Leaving directory `/root/r8168-8.008.00/src'
make: *** [modules] Error 2
contents of /lib/modules/build after making the symbolic link
[root@prashanth linux-2.6.9]# ls
arch Documentation ipc mm scripts vmlinux
configs drivers kernel Module.symvers security
COPYING fs lib net sound
CREDITS include MAINTAINERS README System.map
crypto init Makefile REPORTING-BUGS usr
I always get a headache grokking this stuff. Any programmer reading this, you are wanted!
Out of that build thing, this is the key line
make -C /lib/modules/2.6.9-34.ELsmp/build SUBDIRS=/root/r8168-8.008.00/src modules
I take it you are in /root/r8168-8.008.00/ and there is a Makefile there. The make command will start reading that, after doing a cd to /lib/modules/2.6.9-34.ELsmp/build which should be your kernel top source. What I think is happening is that it then looks for a src directory in the kernel source. So give it one in /lib/modules/2.6.9-34.ELsmp/build.
ln -s /root/r8168-8.008.00/src src
If it throws an error looking for a src/src directory, change that symlink to /root/r8168-8.008.00/
Is the kernel version your box is running on exactly the same as the kernel version you are building? It has to be.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.