Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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.
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
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?
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.
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?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.