LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-30-2017, 04:23 AM   #1
shan2batman
LQ Newbie
 
Registered: Nov 2017
Posts: 2

Rep: Reputation: Disabled
Need help as i'm not able to compile tl-w725n driver in centos 6


I'm trying to install tl-w725n drivers in my centos 6.9 desktop but it gives me the following error what am i doing wrong?? or if anyone can guide me to compile it with ndiswrapper that would also be welcome.

Code:
[shan@localhost Driver]$ sudo make
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=i386 CROSS_COMPILE= -C /lib/modules/2.6.32-696.16.1.el6.centos.plus.i686/build M=/home/shan/Desktop/Driver  modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-696.16.1.el6.centos.plus.i686'
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
  CC [M]  /home/shan/Desktop/Driver/core/rtw_p2p.o
/home/shan/Desktop/Driver/core/rtw_p2p.c: In function ‘ro_ch_handler’:
/home/shan/Desktop/Driver/core/rtw_p2p.c:3620: warning: passing argument 1 of ‘cfg80211_remain_on_channel_expired’ from incompatible pointer type
include/net/cfg80211.h:4609: note: expected ‘struct wireless_dev *’ but argument is of type ‘_nic_hdl’
/home/shan/Desktop/Driver/core/rtw_p2p.c:3620: error: too many arguments to function ‘cfg80211_remain_on_channel_expired’
make[2]: *** [/home/shan/Desktop/Driver/core/rtw_p2p.o] Error 1
make[1]: *** [_module_/home/shan/Desktop/Driver] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-696.16.1.el6.centos.plus.i686'
make: *** [modules] Error 2
 
Old 12-01-2017, 01:49 PM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware & Android
Posts: 8,684

Rep: Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876Reputation: 876
AFAICT, Centos-6.9 is an update of Centos-6.0, released in 2010. It has kernel 2.6.32, with I presume security patches, and a gcc and a libc from that 2010 era. That's your toolchain. It seems woefully inadequate for compiling modern code, as your errors seem to show.

Solutions:
1. Update your system.
2. Get a much older version of that driver, if one exists.
3. Give Up and forget compiling that, or get a programmer to 'bend it straight.'

From memory, there's a world of difference between kernels 2.6.x and 3.3.x. The kernel headers all moved. I would not be surprised if you still had gcc-2.95-3, as Linus held it was essential for compiling kernels well after it actually was. If not, you're probably on gcc-3.3 or less. I have gcc-5.3.0 from 2015, and I've seen gcc-7.2.x available in the next version of slackware64. I can upgrade to it if I want.
 
Old 12-01-2017, 05:22 PM   #3
dedec0
Member
 
Registered: May 2007
Posts: 638

Rep: Reputation: 27
Quote:
Originally Posted by shan2batman View Post
I'm trying to install tl-w725n drivers in my centos 6.9 desktop but it gives me the following error what am i doing wrong?? or if anyone can guide me to compile it with ndiswrapper that would also be welcome.

Code:
[shan@localhost Driver]$ sudo make
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
make ARCH=i386 CROSS_COMPILE= -C /lib/modules/2.6.32-696.16.1.el6.centos.plus.i686/build M=/home/shan/Desktop/Driver  modules
make[1]: Entering directory `/usr/src/kernels/2.6.32-696.16.1.el6.centos.plus.i686'
"******************************************"
"NO SKRC,we will use default KSRC"
"******************************************"
  CC [M]  /home/shan/Desktop/Driver/core/rtw_p2p.o
/home/shan/Desktop/Driver/core/rtw_p2p.c: In function ‘ro_ch_handler’:
/home/shan/Desktop/Driver/core/rtw_p2p.c:3620: warning: passing argument 1 of ‘cfg80211_remain_on_channel_expired’ from incompatible pointer type
include/net/cfg80211.h:4609: note: expected ‘struct wireless_dev *’ but argument is of type ‘_nic_hdl’
/home/shan/Desktop/Driver/core/rtw_p2p.c:3620: error: too many arguments to function ‘cfg80211_remain_on_channel_expired’
make[2]: *** [/home/shan/Desktop/Driver/core/rtw_p2p.o] Error 1
make[1]: *** [_module_/home/shan/Desktop/Driver] Error 2
make[1]: Leaving directory `/usr/src/kernels/2.6.32-696.16.1.el6.centos.plus.i686'
make: *** [modules] Error 2
The first thing that you should do, in my opinion, is to forget the idea of "compiling = sudo + make". That is false, and normally - in all cases I imagine or have seen - compiling something will never demand super user powers. Installing and testing a compiled driver is a *completely different* problem.

If I would like to compile and check what happens when I compile the driver you want with ndiswrapper, what should I do?

And probably it will be a good idea to post your question in the programming forum, instead.
 
Old 12-01-2017, 05:58 PM   #4
dedec0
Member
 
Registered: May 2007
Posts: 638

Rep: Reputation: 27
What is Ndiswrapper current status?

The wiki and documentation is criticized in the few comments in project's page in SF.

And the wiki was last changed in 2010, so I conclude that it is probably abandoned - in a bad way to abandon something, but yet abandoned.

There is a mailing list... I checked its last messages. Last one is a message in French, which is probably just a lucky spam. I translated it to be sure, I just did not (and will not) visit the pointed website. There is an important message, though:

Quote:
Subject: [Ndiswrapper-general] Version 1.59 released
From: Giridhar Pemmasani <...@...> - 2013-11-28 20:12:02

ndiswrapper version 1.59 has been released. Short summary of changes since 1.58:

* Support for Linux kernels from 2.6.13 to 3.12
* 32-bit userspace on 64-bit kernel is supported now
* Fixed kernel hang if loadndisdriver exits with an error

Pavel Roskin contributed these changes.

Giri
So this seems to be a last change made in that project, fairly old. Something that made a few important changes, but was made by someone else around the world - and I am assuming there was no discussion about it before, I did not check that!

According to the SF project page, the last change in it is 2017/11/05, which is pretty recent. But when I browse all files and check their changes, the "stable" folder was modified only in 2016-10-09, and the "testing" folder in 2012-05-01.

SF is a mess... I wonder why so many projects keep using it instead of alternatives - by this and other issues.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mysql 5.6 compile on Centos 6.4 shaana2khan Linux - Newbie 2 08-19-2014 10:54 AM
Intel 82578DM Driver compile INTO CentOS kernel stuart23 Linux - Hardware 6 05-21-2012 09:50 PM
[SOLVED] How to compile Apache 2 on CentOS Felipe Linux - Server 2 03-17-2012 02:09 PM
Compile Centos without SMP baddah Linux - General 3 02-15-2010 01:32 AM
how I can centos ntfs compile? Grave Linux - General 2 12-23-2005 08:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:19 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration