LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-07-2023, 05:59 AM   #1
Jason.nix
Member
 
Registered: Feb 2023
Posts: 562

Rep: Reputation: 10
Post Installing the Realtek audio driver


Hello,
I want to install the Realtek audio driver on Debian version 10.13 and I got the following error:
Code:
...
make[2]: Leaving directory '/usr/local/src/alsa-driver-RTv5.18/alsa/firewire'
make[1]: Leaving directory '/usr/local/src/alsa-driver-RTv5.18/alsa'
make -C /lib/modules/4.19.0-23-amd64/build SUBDIRS=/usr/local/src/alsa-driver-RTv5.18/alsa  CPP="gcc -E" CC="gcc" modules
make[1]: Entering directory '/usr/src/linux-headers-4.19.0-23-amd64'
  CC [M]  /usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/mixer_oss.o
  LD [M]  /usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/snd-mixer-oss.o
  CC [M]  /usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.o
In file included from /usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c:40:
/usr/local/src/alsa-driver-RTv5.18/alsa/include/sound/pcm.h: In function ‘snd_pcm_gettime’:
/usr/local/src/alsa-driver-RTv5.18/alsa/include/sound/pcm.h:1017:3: error: implicit declaration of function ‘do_posix_clock_monotonic_gettime’ [-Werror=implicit-function-declaration]
   do_posix_clock_monotonic_gettime(tv);
   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c: In function ‘snd_pcm_oss_sync1’:
/usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c:1560:2: error: unknown type name ‘wait_queue_t’; did you mean ‘wait_event’?
  wait_queue_t wait;
  ^~~~~~~~~~~~
  wait_event
/usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c:1563:23: error: passing argument 1 of ‘init_waitqueue_entry’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  init_waitqueue_entry(&wait, current);
                       ^~~~~
In file included from /usr/src/linux-headers-4.19.0-23-common/include/linux/mmzone.h:10,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/gfp.h:6,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/umh.h:4,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/kmod.h:22,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/module.h:13,
                 from /usr/local/src/alsa-driver-RTv5.18/alsa/include/adriver.h:50,
                 from /usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c:1:
/usr/src/linux-headers-4.19.0-23-common/include/linux/wait.h:79:66: note: expected ‘struct wait_queue_entry *’ but argument is of type ‘int *’
 static inline void init_waitqueue_entry(struct wait_queue_entry *wq_entry, struct task_struct *p)
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c:1564:34: error: passing argument 2 of ‘add_wait_queue’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  add_wait_queue(&runtime->sleep, &wait);
                                  ^~~~~
In file included from /usr/src/linux-headers-4.19.0-23-common/include/linux/mmzone.h:10,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/gfp.h:6,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/umh.h:4,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/kmod.h:22,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/module.h:13,
                 from /usr/local/src/alsa-driver-RTv5.18/alsa/include/adriver.h:50,
                 from /usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c:1:
/usr/src/linux-headers-4.19.0-23-common/include/linux/wait.h:150:86: note: expected ‘struct wait_queue_entry *’ but argument is of type ‘int *’
 extern void add_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry);
                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c:1587:7: error: implicit declaration of function ‘signal_pending’; did you mean ‘timer_pending’? [-Werror=implicit-function-declaration]
   if (signal_pending(current)) {
       ^~~~~~~~~~~~~~
       timer_pending
/usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c:1597:37: error: passing argument 2 of ‘remove_wait_queue’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  remove_wait_queue(&runtime->sleep, &wait);
                                     ^~~~~
In file included from /usr/src/linux-headers-4.19.0-23-common/include/linux/mmzone.h:10,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/gfp.h:6,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/umh.h:4,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/kmod.h:22,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/module.h:13,
                 from /usr/local/src/alsa-driver-RTv5.18/alsa/include/adriver.h:50,
                 from /usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c:1:
/usr/src/linux-headers-4.19.0-23-common/include/linux/wait.h:152:89: note: expected ‘struct wait_queue_entry *’ but argument is of type ‘int *’
 extern void remove_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry);
                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c: In function ‘snd_pcm_oss_open’:
/usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c:2396:2: error: unknown type name ‘wait_queue_t’; did you mean ‘wait_event’?
  wait_queue_t wait;
  ^~~~~~~~~~~~
  wait_event
/usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c:2431:23: error: passing argument 1 of ‘init_waitqueue_entry’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  init_waitqueue_entry(&wait, current);
                       ^~~~~
In file included from /usr/src/linux-headers-4.19.0-23-common/include/linux/mmzone.h:10,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/gfp.h:6,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/umh.h:4,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/kmod.h:22,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/module.h:13,
                 from /usr/local/src/alsa-driver-RTv5.18/alsa/include/adriver.h:50,
                 from /usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c:1:
/usr/src/linux-headers-4.19.0-23-common/include/linux/wait.h:79:66: note: expected ‘struct wait_queue_entry *’ but argument is of type ‘int *’
 static inline void init_waitqueue_entry(struct wait_queue_entry *wq_entry, struct task_struct *p)
                                         ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c:2432:34: error: passing argument 2 of ‘add_wait_queue’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  add_wait_queue(&pcm->open_wait, &wait);
                                  ^~~~~
In file included from /usr/src/linux-headers-4.19.0-23-common/include/linux/mmzone.h:10,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/gfp.h:6,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/umh.h:4,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/kmod.h:22,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/module.h:13,
                 from /usr/local/src/alsa-driver-RTv5.18/alsa/include/adriver.h:50,
                 from /usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c:1:
/usr/src/linux-headers-4.19.0-23-common/include/linux/wait.h:150:86: note: expected ‘struct wait_queue_entry *’ but argument is of type ‘int *’
 extern void add_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry);
                                                             ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
/usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c:2459:37: error: passing argument 2 of ‘remove_wait_queue’ from incompatible pointer type [-Werror=incompatible-pointer-types]
  remove_wait_queue(&pcm->open_wait, &wait);
                                     ^~~~~
In file included from /usr/src/linux-headers-4.19.0-23-common/include/linux/mmzone.h:10,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/gfp.h:6,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/umh.h:4,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/kmod.h:22,
                 from /usr/src/linux-headers-4.19.0-23-common/include/linux/module.h:13,
                 from /usr/local/src/alsa-driver-RTv5.18/alsa/include/adriver.h:50,
                 from /usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.c:1:
/usr/src/linux-headers-4.19.0-23-common/include/linux/wait.h:152:89: note: expected ‘struct wait_queue_entry *’ but argument is of type ‘int *’
 extern void remove_wait_queue(struct wait_queue_head *wq_head, struct wait_queue_entry *wq_entry);
                                                                ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
cc1: some warnings being treated as errors
make[6]: *** [/usr/src/linux-headers-4.19.0-23-common/scripts/Makefile.build:309: /usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss/pcm_oss.o] Error 1
make[5]: *** [/usr/src/linux-headers-4.19.0-23-common/scripts/Makefile.build:549: /usr/local/src/alsa-driver-RTv5.18/alsa/acore/oss] Error 2
make[4]: *** [/usr/src/linux-headers-4.19.0-23-common/scripts/Makefile.build:549: /usr/local/src/alsa-driver-RTv5.18/alsa/acore] Error 2
make[3]: *** [/usr/src/linux-headers-4.19.0-23-common/Makefile:1566: _module_/usr/local/src/alsa-driver-RTv5.18/alsa] Error 2
make[2]: *** [Makefile:146: sub-make] Error 2
make[1]: *** [Makefile:8: all] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-4.19.0-23-amd64'
make: *** [Makefile:167: compile] Error 2
Is it related to the Linux kernel headers?


Thank you.
 
Old 03-07-2023, 11:40 AM   #2
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,349

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
It looks like a header problem all right.

Are you running an old distribution? From personal compile failures I can tell you there's big differences between the 4.x.x kernel headers and the 5.x.x ones. If you have the latest driver, it's may need the 5.x.x kernel headers.

Others will tell you what to do better than I, as the kernel headers are part of the toolchain. Post again with full details of your Operating system and date the driver was released. Maybe an older version of the driver will compile painlessly. Otherwise the best approach is probably OS dependent.
 
Old 03-11-2023, 06:24 AM   #3
Jason.nix
Member
 
Registered: Feb 2023
Posts: 562

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by business_kid View Post
It looks like a header problem all right.

Are you running an old distribution? From personal compile failures I can tell you there's big differences between the 4.x.x kernel headers and the 5.x.x ones. If you have the latest driver, it's may need the 5.x.x kernel headers.

Others will tell you what to do better than I, as the kernel headers are part of the toolchain. Post again with full details of your Operating system and date the driver was released. Maybe an older version of the driver will compile painlessly. Otherwise the best approach is probably OS dependent.
Hello,
Thank you so much for your reply.
I'm using the Debian version 10.13:
Code:
Linux Jason 4.19.0-23-amd64 #1 SMP Debian 4.19.269-1 (2022-12-20) x86_64 GNU/Linux
 
Old 03-11-2023, 11:41 AM   #4
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,349

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Ok I'm not the expert here but as I see it, your options are
  1. Upgrade your distro to Debian 11 or something with a 5.x.x kernel.
  2. Try using a significantly older version of the driver and see if that will compile.

There are other rule-bending options but you probably don't want to go there. I'd recommend the upgrade.
 
Old 03-11-2023, 11:50 AM   #5
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,614

Rep: Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554

Option 3: Stay on Debian 10 and try the Linux 5.10 kernel present in buster-backports

https://backports.debian.org

 
Old 03-12-2023, 01:00 AM   #6
Jason.nix
Member
 
Registered: Feb 2023
Posts: 562

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by boughtonp View Post
Option 3: Stay on Debian 10 and try the Linux 5.10 kernel present in buster-backports

https://backports.debian.org

Hello,
Thank you.
You mean that, I should add the proper repository URL to my source.list file?
 
Old 03-12-2023, 03:58 AM   #7
Daniel55
LQ Newbie
 
Registered: Mar 2023
Posts: 1

Rep: Reputation: 0
Hmm ���� from dump kid����
 
Old 03-12-2023, 08:37 AM   #8
boughtonp
Senior Member
 
Registered: Feb 2007
Location: UK
Distribution: Debian
Posts: 3,614

Rep: Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554Reputation: 2554

I don't know what you should do, I was just indicating that there are more options than the two business_kid presented.

With fresh eyes on the thread, the first questions are why do you want to install "the Realtek audio driver", which specific device and firmware are you referring to, why are you trying to install it from source? Have you looked to see if it's in the repositories?

 
Old 03-12-2023, 11:21 AM   #9
business_kid
LQ Guru
 
Registered: Jan 2006
Location: Ireland
Distribution: Slackware, Slarm64 & Android
Posts: 16,349

Rep: Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331Reputation: 2331
Quote:
Originally Posted by boughtonp View Post
I don't know what you should do, I was just indicating that there are more options than the two business_kid presented.

With fresh eyes on the thread, the first questions are why do you want to install "the Realtek audio driver", which specific device and firmware are you referring to, why are you trying to install it from source? Have you looked to see if it's in the repositories?
Both (Backported kernel or package) sound like good options to me.
 
Old 03-14-2023, 02:30 AM   #10
Jason.nix
Member
 
Registered: Feb 2023
Posts: 562

Original Poster
Rep: Reputation: 10
Quote:
Originally Posted by boughtonp View Post
I don't know what you should do, I was just indicating that there are more options than the two business_kid presented.

With fresh eyes on the thread, the first questions are why do you want to install "the Realtek audio driver", which specific device and firmware are you referring to, why are you trying to install it from source? Have you looked to see if it's in the repositories?

Hello,
Thank you so much for your reply. I want to install it, because of https://www.linuxquestions.org/quest...nd-4175722959/
 
  


Reply



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
[SOLVED] Ethernet adapter (Intel I219V) and audio adapter (Realtek High Definition Audio Device) on NUC10i710FNH hnieberding Linux - Hardware 12 12-17-2020 11:46 AM
No Sound with Intel(R) Display Audio and Realtek High Def Audio (Galaxy Book 12) Yanis3001 Linux - Hardware 33 02-24-2020 06:52 AM
LXer: Getting Realtek 8188EU Wireless Adapters to work in Linux (and possibly other wireless Realtek chipsets!) LXer Syndicated Linux News 0 02-04-2017 10:06 PM
newbie looking for help in installing Realtek audio card driver 1sciroccofahrer Linux - Hardware 8 03-11-2008 01:49 PM
realtek audio driver alsa spariggio82 Linux - Software 4 08-07-2005 01:09 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:09 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
Open Source Consulting | Domain Registration