At Mon, 18 Jun 2012 10:25:06 +0200, Clemens Ladisch wrote:
Patrick Shirkey wrote:
I have compiled the latest stable alsa drivers against 2.6.18 kernel with gcc-4.1.
I am getting an error when I insert the sound card modules.
snd_rawmidi: Unknown symbol ksize
As far as I can tell 2.6.18 has support for ksize so I am not sure where this error is coming from.
That kernel didn't export ksize.
Try --with-debug=memory to get a separate allocator implementation.
Indeed. The patch below (untested) forces to enable CONFIG_SND_DEBUG_MEMORY on older kernels. Let me know if this helps.
Takashi
--- diff --git a/configure.in b/configure.in index 13d29c7..bdc3eb0 100644 --- a/configure.in +++ b/configure.in @@ -812,6 +812,14 @@ case "$debug" in ;; esac
+dnl ksize() is almost mandatory now +if test "$CONFIG_SND_DEBUG_MEMORY" != "y"; then + if test $kvernum -le 206022; then + CONFIG_SND_DEBUG_MEMORY=y + AC_DEFINE(CONFIG_SND_DEBUG_MEMORY) + fi +fi + dnl Check for ISA support (for 2.4 kernel)... if test $kvernum -ge 203000; then CHECK_KERNEL_CONFIG(CONFIG_ISA, [ISA support in kernel])