Probably doesn't matter anymore, but just bumped into this (also on
natty); did:

apt-get source alsa-driver
cd alsa-driver
./configure --with-debug=full --with-cards=seq-dummy

Configure passes fine, then:

make
# ...
# /path/to/alsa-driver-1.0.24+dfsg/include/linux/pci_ids.h:2:58: fatal error: 
@CONFIG_SND_KERNELSRC@/include/linux/pci_ids.h: No such file or directory

alsa-driver-1.0.24+dfsg$ grep -r @CONFIG_SND_KERNELSRC@ .
./include/i2c-id_compat.h:#include 
"@CONFIG_SND_KERNELSRC@/include/linux/i2c-id.h"
./include/pci_ids_compat.h.in:#include 
"@CONFIG_SND_KERNELSRC@/include/linux/pci_ids.h"
./include/linux/i2c-id.h:#include 
"@CONFIG_SND_KERNELSRC@/include/linux/i2c-id.h"
./include/linux/pci_ids.h:#include 
"@CONFIG_SND_KERNELSRC@/include/linux/pci_ids.h"
./include/i2c-id_compat.h.in:#include 
"@CONFIG_SND_KERNELSRC@/include/linux/i2c-id.h"
./include/pci_ids_compat.h:#include 
"@CONFIG_SND_KERNELSRC@/include/linux/pci_ids.h"
./debian/patches/distinguish_kernel_makefile_and_source_dirs.patch:+#include 
"@CONFIG_SND_KERNELSRC@/include/linux/i2c-id.h"
./debian/patches/distinguish_kernel_makefile_and_source_dirs.patch:+#include 
"@CONFIG_SND_KERNELSRC@/include/linux/pci_ids.h"

... so apparently it is debian patches... check replacement:

$ sed -n "s>@CONFIG_SND_KERNELSRC@>/usr/src/linux-headers-$(uname -r)>p" 
./include/i2c-id_compat.h
#include "/usr/src/linux-headers-2.6.38-16-generic/include/linux/i2c-id.h"

... then replace:

alsa-driver-1.0.24+dfsg$ sed -i 
"s>@CONFIG_SND_KERNELSRC@>/usr/src/linux-headers-$(uname -r)>" 
./include/i2c-id_compat.h
alsa-driver-1.0.24+dfsg$ sed -i 
"s>@CONFIG_SND_KERNELSRC@>/usr/src/linux-headers-$(uname -r)>" 
./include/pci_ids_compat.h

... run `make` again, and finally it says: "ALSA modules were
successfully compiled."

Cheers!

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/778887

Title:
  Compile error with "@CONFIG_SND_KERNELSRC@/include/linux/pci_ids.h: No
  such file or directory".

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/alsa-driver/+bug/778887/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to