Page 1 of 1

Compilation Error 2 During RealTek WiFi Build

Posted: 25. Nov 2016, 19:05
by mboston72
Hello Everyone,

New to Salix. What a great Distro!

It runs quite well on my laptop. Also seems like a nice way for me to learn Slackware, while still having the package management tools, & other conveniences.

I read the Startup Guide & glanced through the FAQ.

I also did a search for this error on the wiki: https://docs.salixos.org/wiki/Documentation.

When attempting to search for this issue on the forum I got an error saying feature was unavailable. This may have been because I just joined.

Hopefully this exact issue wasn't already addressed here.

This is the issue:

I installed Salix64 14.2 XFCE a couple days ago on a Toshiba Satellite L15W-B1208X, Intel Pentium Quad-Core Processor N3540 (2M Cache, 2.66 GHz), 4GB Memory. Kernel Version is 4.4.29

I noticed the WiFi connection kept dropping. It seems it's a problem with the driver. Installing a new module is the fix.

So I downloaded into a zip file, the files at: https://github.com/lwfinger/rtlwifi_new.

After that, I unpacked the zip in an rtlwifi directory off /. I also placed this rtlwifi directory in a data directory off my home directory. Both generate the same errors.

I change to the rtlwifi directory in each location, & typed make, to get this error:

Code: Select all

make -C /lib/modules/4.4.29/build M=/rtlwifi modules
make[1]: *** /lib/modules/4.4.29/build: No such file or directory.  Stop.
Makefile:57: recipe for target 'all' failed
make: *** [all] Error 2
The directory, /lib/modules/4.4.29/build, does exist.

Some articles about this error say the kernel header files are missing. I checked Gslapt to see that this package is installed: kernel-headers 4.4.29-x86-1_slack14.2.

Also in Gslapt, I did a search for the package, kernel-source. Its status is Excluded & it has a lock on it that prevents install. Is this necessary?

After the Salix install, I installed: twapake; cmake, linuxdoc-tools. Are any other packages necessary?

Thank You,

Mark

Re: Compilation Error 2 During RealTek WiFi Build

Posted: 25. Nov 2016, 20:25
by laprjns
You do need to install the kernel-source package to compile the modules. The easiest way of doing this is by using the command line. Open a terminal and just do the following;

Code: Select all

$ sudo spi --install kernel-source

Re: Compilation Error 2 During RealTek WiFi Build

Posted: 25. Nov 2016, 21:56
by mboston72
That did it. Thank You!