lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <s5hprsai864.wl%tiwai@suse.de>
Date:	Mon, 28 Apr 2008 12:29:55 +0200
From:	Takashi Iwai <tiwai@...e.de>
To:	"Jesper Juhl" <jesper.juhl@...il.com>
Cc:	"Linux Kernel Mailing List" <linux-kernel@...r.kernel.org>,
	Stas Sergeev <stsp@...et.ru>
Subject: Re: Build error; sound/built-in.o:(.data+0x388): undefined reference to `snd_pcm_lib_ioctl'

At Mon, 28 Apr 2008 01:20:08 +0200,
Jesper Juhl wrote:
> 
> FYI
> 
> With the attached .config I'm getting the following build error :
> ...
>   GEN     .version
>   CHK     include/linux/compile.h
>   UPD     include/linux/compile.h
>   CC      init/version.o
>   LD      init/built-in.o
>   LD      .tmp_vmlinux1
> sound/built-in.o: In function `pcsp_suspend':
> /home/juhl/kernel/linux-2.6/sound/drivers/pcsp/pcsp.c:201: undefined
> reference to `snd_pcm_suspend_all'
> sound/built-in.o: In function `snd_pcsp_playback_hw_free':
> /home/juhl/kernel/linux-2.6/sound/drivers/pcsp/pcsp_lib.c:221:
> undefined reference to `snd_pcm_lib_free_pages'
> sound/built-in.o: In function `snd_pcsp_playback_hw_params':
> /home/juhl/kernel/linux-2.6/sound/drivers/pcsp/pcsp_lib.c:209:
> undefined reference to `snd_pcm_lib_malloc_pages'
> sound/built-in.o: In function `snd_pcm_stream_lock':
> /home/juhl/kernel/linux-2.6/include/sound/pcm.h:569: undefined
> reference to `snd_pcm_link_rwlock'
> sound/built-in.o: In function `snd_pcm_stream_unlock':
> /home/juhl/kernel/linux-2.6/include/sound/pcm.h:576: undefined
> reference to `snd_pcm_link_rwlock'
> /home/juhl/kernel/linux-2.6/include/sound/pcm.h:576: undefined
> reference to `snd_pcm_link_rwlock'
> sound/built-in.o: In function `pcsp_do_timer':
> /home/juhl/kernel/linux-2.6/sound/drivers/pcsp/pcsp_lib.c:130:
> undefined reference to `snd_pcm_period_elapsed'
> sound/built-in.o: In function `snd_pcsp_new_pcm':
> /home/juhl/kernel/linux-2.6/sound/drivers/pcsp/pcsp_lib.c:320:
> undefined reference to `snd_pcm_new'
> /home/juhl/kernel/linux-2.6/sound/drivers/pcsp/pcsp_lib.c:324:
> undefined reference to `snd_pcm_set_ops'
> /home/juhl/kernel/linux-2.6/sound/drivers/pcsp/pcsp_lib.c:331:
> undefined reference to `snd_pcm_lib_preallocate_pages_for_all'
> sound/built-in.o:(.data+0x388): undefined reference to `snd_pcm_lib_ioctl'
> make: *** [.tmp_vmlinux1] Error 1

Does the patch below fix the problem?


thanks,

Takashi

---
diff --git a/sound/drivers/Kconfig b/sound/drivers/Kconfig
index fe85af1..a78a8d0 100644
--- a/sound/drivers/Kconfig
+++ b/sound/drivers/Kconfig
@@ -8,6 +8,8 @@ config SND_PCSP
 	tristate "Internal PC speaker support"
 	depends on X86_PC && HIGH_RES_TIMERS
 	depends on INPUT
+	depends on SND
+	select SND_PCM
 	help
 	  If you don't have a sound card in your computer, you can include a
 	  driver for the PC speaker which allows it to act like a primitive
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ