Compilation Error 2 During RealTek WiFi Build

You have a problem with Salix? Post here and we'll do what we can to help.
Post Reply
mboston72
Posts: 2
Joined: 25. Nov 2016, 18:48

Compilation Error 2 During RealTek WiFi Build

Post 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
User avatar
laprjns
Salix Warrior
Posts: 1113
Joined: 28. Aug 2009, 01:30
Location: Connecticut USA

Re: Compilation Error 2 During RealTek WiFi Build

Post 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
“The past was erased, the erasure was forgotten, the lie became the truth.”
― George Orwell, 1984
mboston72
Posts: 2
Joined: 25. Nov 2016, 18:48

Re: Compilation Error 2 During RealTek WiFi Build

Post by mboston72 »

That did it. Thank You!
Post Reply