LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-05-2013, 10:23 PM   #16
darksaurian
Member
 
Registered: Jun 2010
Location: USA
Distribution: Slackware 13.37
Posts: 169

Original Poster
Rep: Reputation: 27

Well that can't be why my driver won't compile. The first error is with os_intfs.c and the patches don't touch that file.
 
Old 12-06-2013, 10:30 AM   #17
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,014

Rep: Reputation: 146Reputation: 146
Quote:
Originally Posted by darksaurian View Post
Code:
  CC [M]  /usr/local/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.o
/usr/local/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c: In function 'rtw_proc_init_one':
/usr/local/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:313:3: error: implicit declaration of function 'create_proc_entry' [-Werror=implicit-function-declaration]
   rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, init_net.proc_net);
   ^
/usr/local/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:313:11: warning: assignment makes pointer from integer without a cast [enabled by default]
   rtw_proc=create_proc_entry(rtw_proc_name, S_IFDIR, init_net.proc_net);
           ^
/usr/local/RTL8188C_8192C_USB_linux_v4.0.2_9000.20130911/driver/rtl8188C_8192C_usb_linux_v4.0.2_9000.20130911/os_dep/linux/os_intfs.c:320:3: error: implicit declaration of function 'create_proc_read_entry' [-Werror=implicit-function-declaration]
   entry = create_proc_read_entry("ver_info", S_IFREG | S_IRUGO, rtw_proc, proc_get_drv_version, dev);
   ^
These (and your other) errors can be eliminated by commenting out CONFIG_PROC_DEBUG in the Makefile. I am using the same driver with Linux 3.12.x and it works fine. Changed the followings --
Code:
diff -pru rtl8192cu/Makefile rtl8192cu.new/Makefile
--- rtl8192cu/Makefile  2013-09-11 05:56:55.000000000 +0200
+++ rtl8192cu.new/Makefile      2013-12-06 16:09:37.000000000 +0100
@@ -1,5 +1,5 @@
 EXTRA_CFLAGS += $(USER_EXTRA_CFLAGS)
-EXTRA_CFLAGS += -O1
+#EXTRA_CFLAGS += -O1
 #EXTRA_CFLAGS += -O3
 #EXTRA_CFLAGS += -Wall
 #EXTRA_CFLAGS += -Wextra
diff -pru rtl8192cu/include/autoconf.h rtl8192cu.new/include/autoconf.h
--- rtl8192cu/include/autoconf.h        2013-09-11 05:56:55.000000000 +0200
+++ rtl8192cu.new/include/autoconf.h    2013-12-06 16:09:37.000000000 +0100
@@ -296,9 +296,9 @@
 //#define CONFIG_DEBUG_RTL871X
 
 #define DBG    0
-#define CONFIG_DEBUG_RTL819X
+//#define CONFIG_DEBUG_RTL819X
 
-#define CONFIG_PROC_DEBUG      1
+//#define CONFIG_PROC_DEBUG    1
 
 //#define DBG_IO
 //#define DBG_DELAY_OS
@@ -324,7 +324,7 @@
 
 //#define DBG_MEMORY_LEAK      1
 
-#define DBG_CONFIG_ERROR_DETECT
+//#define DBG_CONFIG_ERROR_DETECT
 //#define DBG_CONFIG_ERROR_RESET
 
 //TX use 1 urb
Quote:
Originally Posted by darksaurian View Post
I think it has something to do with kernel 3.10. But then where did my /lib/modules/3.10.17/kernel/drivers/net/wireless/rtlwifi/rtl8192cu/rtl8192cu.ko come from? Did the Slackware team patch it to get it to compile?
Surely not. Slackware is open source and there is no magic. The rtl8192cu.ko is from rtlwifi. Your module, once successfully compiled, will be called 8192cu.ko
 
2 members found this post helpful.
Old 07-28-2014, 12:52 AM   #18
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 298

Rep: Reputation: 55
Thanks, this sorted me out for compiling the driver on a Cubox-i4pro with Debian Wheezy & a 3.10 kernel.
 
  


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
Wireless USB adapter - client and Access Point (AP) mesmunoz Linux - Newbie 0 05-26-2009 06:39 PM
Installing Wireless Internet USB Adapter Chronothread Linux - Hardware 4 12-26-2007 04:21 PM
Sporadic internet access on unencrypted wifi FogSwimmer Linux - Wireless Networking 0 09-14-2007 10:23 PM
Cant Find Drivers For My Dynex Wireless USB Adapter For Wireless Internet.... sent17inel Linux - Hardware 2 02-15-2007 12:25 AM
USB wireless adapter detecetd but can not connect to internet! hpvaishnav Linux - Newbie 5 01-15-2007 07:12 AM


All times are GMT -5. The time now is 12:54 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration