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.
hello everybody,
I'm a begginer about linux
I compiled the lastest kernel 2.6.35-rc1 for my thinkpad X61 tablet
then I install the alsa-driver 1.0.23 for audio by compile the source code,but the error is following
/tmp/alsa-driver-1.0.23/acore/pcm_native.c: In function 'snd_pcm_hw_params':
/tmp/alsa-driver-1.0.23/acore/pcm_native.c:489: error: implicit declaration of function 'pm_qos_remove_requirement'
/tmp/alsa-driver-1.0.23/acore/pcm_native.c:492: error: implicit declaration of function 'pm_qos_add_requirement'
make[3]: *** [/tmp/alsa-driver-1.0.23/acore/pcm_native.o] Error 1
make[2]: *** [/tmp/alsa-driver-1.0.23/acore] Error 2
make[1]: *** [_module_/tmp/alsa-driver-1.0.23] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.35-rc1'
make: *** [compile] Error 2
what's wrong
thanks for help
Click here to see the post LQ members have rated as the most helpful post in this thread.
Don't post within 24 hours, asking us to hurry up and help. We volunteer our time here, and will answer you when we can/want to.
What version/distro of Linux?? The kernel tells us very little. Where did you download the source from? What are you doing to compile it? Have you checked the documentation that came with it?? And why don't you install ALSA from your online repositories, rather than building from source?
the lastest released alsa is 1.0.23 and I havn't fount out it from the repositories
my linux is debian 5.0
I download the kernel source from www.kernel.org and the alsa from www.alsa.org
it's no problem while I compiled in kernel 2.6.33 gcc-4.3
And I'm so soryy for my misbehavior
Look and see where the headers are moved. or just use the kernel headers if they are different from your glibc. untar then ln -s /usr/src/linx-2.6.xxx /usr/src/linux
then zcat /proc/config.gz > /usr/src/linux/.config then make oldconfig. then make.
2.6.36-rc3 just compiled for me.
Mine
I checked the kernel source tree,and I compiled the kernel successfully,I issued the ln -s /usr/src/linx-2.6.xxx /usr/src/linux too, the compiling of alsa-driver could find the kernel headers, then I checked the symbol "pm_qos_remove_requirement",it's a inline function defined in pm_qos_params_compat.h which should be included in <linux/pm_qos_params.h> but I found the configure should completed that for me, so the error named "implicit declaration" occured. And I modified the <linux/pm_qos_params.h> to include the pm_qos_params_compat.h,the error never bother me,but there is a new error is following
from /tmp/alsa-driver-1.0.23/acore/pcm_native.c:29:
/tmp/alsa-driver-1.0.23/include/pm_qos_params_compat.h:14:27: error: linux/latency.h: No such file or directory
In file included from include/linux/pm_qos_params.h:8,
from /tmp/alsa-driver-1.0.23/acore/pcm_native.c:29:
/tmp/alsa-driver-1.0.23/include/pm_qos_params_compat.h: In function 'pm_qos_add_requirement':
/tmp/alsa-driver-1.0.23/include/pm_qos_params_compat.h:18: error: implicit declaration of function 'set_acceptable_latency'
/tmp/alsa-driver-1.0.23/include/pm_qos_params_compat.h: In function 'pm_qos_remove_requirement':
/tmp/alsa-driver-1.0.23/include/pm_qos_params_compat.h:24: error: implicit declaration of function 'remove_acceptable_latency'
make[3]: *** [/tmp/alsa-driver-1.0.23/acore/pcm_native.o] Error 1
make[2]: *** [/tmp/alsa-driver-1.0.23/acore] Error 2
make[1]: *** [_module_/tmp/alsa-driver-1.0.23] Error 2
I got nothing after searched the latency.h in my all include tree
Now how do I fix it?
thanks very much
Download alsa-driver from the Snapshot Section of the ALSA Project
Niltze!
In order for ALSA to enable your sound card in Linux kernels beginning with 2.6.35 (as far as I became aware) visit the snapshots section of the ALSA project. Download the available alsa-driver-1.0.23.xy.gdzxy.tar.bz2 (where xy & zxy represent relevant alphanumeric string) and that should solve the issues that you are experiencing with front page generally available alsa-driver-1.0.23.tar.bz2
I recently built 2.6.36 for a GNU/Linux Debian unstable distribution and experienced similar issues as yours when compiling ALSA support for the older PCI sound card:
/usr/src/alsa/alsa-driver-1.0.23/acore/pcm_native.c: In function ‘snd_pcm_hw_params’:
/usr/src/alsa/alsa-driver-1.0.23/acore/pcm_native.c:489: error: implicit declaration of function ‘pm_qos_remove_requirement’
/usr/src/alsa/alsa-driver-1.0.23/acore/pcm_native.c:492: error: implicit declaration of function ‘pm_qos_add_requirement’
make[3]: *** [/usr/src/alsa/alsa-driver-1.0.23/acore/pcm_native.o] Error 1
make[2]: *** [/usr/src/alsa/alsa-driver-1.0.23/acore] Error 2
make[1]: *** [_module_/usr/src/alsa/alsa-driver-1.0.23] Error 2
make: *** [compile] Error 2
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.