Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
btsco-kernel-0.41 fails to build under kernel 2.6.21[solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Thu Apr 26, 2007 1:16 pm    Post subject: btsco-kernel-0.41 fails to build under kernel 2.6.21[solved] Reply with quote

The ebuild is from an overlay. I had it compiling with every kernel since 2.6.17. The compilation:
Code:
>>> Emerging (1 of 1) net-wireless/btsco-kernel-0.41 to /
 * btsco-0.41.tar.gz MD5 ;-) ...                                          [ ok ]
 * btsco-0.41.tar.gz RMD160 ;-) ...                                       [ ok ]
 * btsco-0.41.tar.gz SHA1 ;-) ...                                         [ ok ]
 * btsco-0.41.tar.gz SHA256 ;-) ...                                       [ ok ]
 * btsco-0.41.tar.gz size ;-) ...                                         [ ok ]
 * checking ebuild checksums ;-) ...                                      [ ok ]
 * checking auxfile checksums ;-) ...                                     [ ok ]
 * checking miscfile checksums ;-) ...                                    [ ok ]
 * checking btsco-0.41.tar.gz ;-) ...                                     [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.21-mactel/build
 * Found sources for kernel version:
 *     2.6.21-mactel
 * Checking for suitable kernel configuration options...                  [ ok ]
>>> Unpacking source...
>>> Unpacking btsco-0.41.tar.gz to /var/tmp/portage/net-wireless/btsco-kernel-0.41/work
 * Patching /var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/Makefile to use '/usr/src/linux'
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel ...
 * Preparing snd-bt-sco module
make[1]: Entrando no diretório `/usr/src/linux-2.6.21-mactel'
  CC [M]  /var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.o
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:118: error: expected specifier-qualifier-list before ‘snd_card_t’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:162: error: expected specifier-qualifier-list before ‘snd_pcm_substream_t’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:165: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:167: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:188: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:209: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:230: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:235: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c: In function ‘snd_card_bt_sco_pcm_receive’:
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:256: error: ‘snd_card_bt_sco_pcm_t’ has no member named ‘substream’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:256: error: ‘snd_card_bt_sco_pcm_t’ has no member named ‘substream’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:257: error: ‘snd_card_bt_sco_pcm_t’ has no member named ‘substream’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:257: error: ‘snd_card_bt_sco_pcm_t’ has no member named ‘substream’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:260: error: ‘snd_card_bt_sco_pcm_t’ has no member named ‘substream’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:260: error: ‘snd_card_bt_sco_pcm_t’ has no member named ‘substream’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:267: error: ‘snd_card_bt_sco_pcm_t’ has no member named ‘substream’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c: In function ‘snd_card_bt_sco_pcm_send’:
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:288: error: ‘snd_card_bt_sco_pcm_t’ has no member named ‘substream’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:288: error: ‘snd_card_bt_sco_pcm_t’ has no member named ‘substream’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:289: error: ‘snd_card_bt_sco_pcm_t’ has no member named ‘substream’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:289: error: ‘snd_card_bt_sco_pcm_t’ has no member named ‘substream’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:292: error: ‘snd_card_bt_sco_pcm_t’ has no member named ‘substream’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:292: error: ‘snd_card_bt_sco_pcm_t’ has no member named ‘substream’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:299: error: ‘snd_card_bt_sco_pcm_t’ has no member named ‘substream’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c: At top level:
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:305: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:314: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:322: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘snd_card_bt_sco_playback’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:339: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘snd_card_bt_sco_capture’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:356: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:362: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:395: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:429: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:451: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:474: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘snd_card_bt_sco_playback_ops’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:483: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘snd_card_bt_sco_capture_ops’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c: In function ‘snd_card_bt_sco_pcm’:
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:494: error: ‘snd_pcm_t’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:494: error: (Each undeclared identifier is reported only once
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:494: error: for each function it appears in.)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:494: error: ‘pcm’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:495: warning: ISO C90 forbids mixed declarations and code
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:498: error: ‘snd_card_bt_sco_t’ has no member named ‘card’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:501: error: ‘snd_card_bt_sco_playback_ops’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:503: error: ‘snd_card_bt_sco_capture_ops’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c: At top level:
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:516: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:526: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:539: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:565: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:575: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:587: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:605: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:617: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:637: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘snd_bt_sco_controls’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c: In function ‘snd_card_bt_sco_new_mixer’:
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:661: error: ‘snd_card_t’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:661: error: ‘card’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:661: error: ‘snd_card_bt_sco_t’ has no member named ‘card’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:663: warning: ISO C90 forbids mixed declarations and code
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:667: error: ‘snd_card_bt_sco_t’ has no member named ‘mixer_lock’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:670: error: ‘snd_bt_sco_controls’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:670: error: ‘snd_kcontrol_new_t’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:671: error: ‘snd_card_bt_sco_t’ has no member named ‘mixer_controls’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:674: error: ‘snd_card_bt_sco_t’ has no member named ‘mixer_controls’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c: At top level:
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:680: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:685: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:690: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:744: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:779: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:833: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c: In function ‘snd_card_bt_sco_thread’:
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:857: error: ‘snd_card_t’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:857: error: ‘card’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:857: error: expected expression before ‘)’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:858: warning: ISO C90 forbids mixed declarations and code
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:891: error: ‘snd_card_bt_sco_t’ has no member named ‘thread_sem’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:903: error: ‘snd_card_bt_sco_t’ has no member named ‘sco_sock’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:903: error: ‘snd_card_bt_sco_t’ has no member named ‘wait’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:903: error: ‘snd_card_bt_sco_t’ has no member named ‘sco_sock’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:903: error: ‘snd_card_bt_sco_t’ has no member named ‘wait’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:904: error: ‘snd_card_bt_sco_t’ has no member named ‘thread_exit’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:907: error: ‘snd_card_bt_sco_t’ has no member named ‘sock_sem’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:908: error: ‘snd_card_bt_sco_t’ has no member named ‘sco_sock’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:911: error: ‘snd_card_bt_sco_t’ has no member named ‘sock_sem’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:969: error: ‘snd_card_bt_sco_t’ has no member named ‘agc’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:972: error: ‘snd_card_bt_sco_t’ has no member named ‘agc’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:994: error: ‘snd_card_bt_sco_t’ has no member named ‘agc’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1006: error: ‘snd_card_bt_sco_t’ has no member named ‘capture_sem’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1007: error: ‘snd_card_bt_sco_t’ has no member named ‘capture’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1009: error: ‘snd_card_bt_sco_t’ has no member named ‘capture’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1011: error: ‘snd_card_bt_sco_t’ has no member named ‘capture_sem’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1013: error: ‘snd_card_bt_sco_t’ has no member named ‘playback_sem’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1015: error: ‘snd_card_bt_sco_t’ has no member named ‘playback’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1015: error: ‘snd_card_bt_sco_t’ has no member named ‘loopback’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1029: error: ‘snd_card_bt_sco_t’ has no member named ‘playback’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1033: error: ‘snd_card_bt_sco_t’ has no member named ‘playback’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1050: error: ‘snd_card_bt_sco_t’ has no member named ‘playback_sem’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1095: error: ‘snd_card_bt_sco_t’ has no member named ‘thread_exit’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1100: error: ‘snd_card_bt_sco_t’ has no member named ‘thread_done’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c: At top level:
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1103: error: expected ‘)’ before ‘*’ token
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c: In function ‘snd_card_bt_sco_probe’:
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1125: error: ‘snd_card_t’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1125: error: ‘card’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1126: warning: ISO C90 forbids mixed declarations and code
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1128: error: ‘snd_hwdep_t’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1128: error: ‘hw’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1141: error: ‘snd_card_bt_private_free’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1143: error: ‘snd_card_bt_sco_t’ has no member named ‘card’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1145: error: ‘snd_card_bt_sco_t’ has no member named ‘thread_done’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1146: error: ‘snd_card_bt_sco_t’ has no member named ‘thread_sem’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1147: error: ‘snd_card_bt_sco_t’ has no member named ‘sock_sem’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1148: error: ‘snd_card_bt_sco_t’ has no member named ‘capture_sem’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1149: error: ‘snd_card_bt_sco_t’ has no member named ‘playback_sem’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1150: error: ‘snd_card_bt_sco_t’ has no member named ‘wait’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1151: error: ‘snd_card_bt_sco_t’ has no member named ‘hwdep_wait’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1152: error: ‘snd_card_bt_sco_t’ has no member named ‘mixer_changed_lock’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1153: error: ‘snd_card_bt_sco_t’ has no member named ‘count_changed_lock’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1157: error: ‘snd_card_bt_sco_t’ has no member named ‘thread_pid’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1159: error: ‘snd_card_bt_sco_t’ has no member named ‘thread_pid’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1160: error: ‘snd_card_bt_sco_t’ has no member named ‘thread_pid’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1164: error: ‘snd_card_bt_sco_t’ has no member named ‘thread_sem’
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1180: error: ‘snd_card_bt_open’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1181: error: ‘snd_card_bt_ioctl’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1182: error: ‘snd_card_bt_release’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1183: error: ‘snd_card_bt_read’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1184: error: ‘snd_card_bt_write’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1185: error: ‘snd_card_bt_poll’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1188: error: ‘snd_bt_sco_cards’ undeclared (first use in this function)
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c: In function ‘alsa_card_bt_sco_exit’:
/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.c:1215: error: ‘snd_bt_sco_cards’ undeclared (first use in this function)
make[2]: ** [/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel/btsco.o] Erro 1
make[1]: ** [_module_/var/tmp/portage/net-wireless/btsco-kernel-0.41/work/btsco-0.41/kernel] Erro 2
make[1]: Saindo do diretório `/usr/src/linux-2.6.21-mactel'
make: ** [default] Erro 2

!!! ERROR: net-wireless/btsco-kernel-0.41 failed.
Call stack:
  ebuild.sh, line 1614:   Called dyn_compile
  ebuild.sh, line 971:   Called qa_call 'src_compile'
  environment, line 4037:   Called src_compile
  ebuild.sh, line 1304:   Called linux-mod_src_compile
  linux-mod.eclass, line 516:   Called die

!!! Unable to make  -j1 default.
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/tmp/portage/net-wireless/btsco-kernel-0.41/temp/build.log'.

!!! This ebuild is from an overlay: '/usr/local/portage'

_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro


Last edited by dmvianna on Fri Apr 27, 2007 10:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
hothead
Apprentice
Apprentice


Joined: 02 Jul 2004
Posts: 277
Location: /dev/core

PostPosted: Fri Apr 27, 2007 10:04 pm    Post subject: Reply with quote

<kernel>/include/sound/typedefs.h was removed in kernel version 2.6.21, but btsco relies on that.
I quickly created a patch that adds typedefs.h to the headers again.
If you patch your kernel with the following patch, btsco.c should compile again.

Code:
diff -Nur linux-2.6.21/include/sound/core.h linux-2.6.21.mod/include/sound/core.h
--- linux-2.6.21/include/sound/core.h   2007-04-26 05:08:32.000000000 +0200
+++ linux-2.6.21.mod/include/sound/core.h   2007-04-27 23:59:35.000000000 +0200
@@ -27,6 +27,7 @@
 #include <linux/rwsem.h>      /* struct rw_semaphore */
 #include <linux/pm.h>         /* pm_message_t */
 #include <linux/device.h>
+#include "typedefs.h"
 
 /* forward declarations */
 #ifdef CONFIG_PCI
diff -Nur linux-2.6.21/include/sound/typedefs.h linux-2.6.21.mod/include/sound/typedefs.h
--- linux-2.6.21/include/sound/typedefs.h   1970-01-01 01:00:00.000000000 +0100
+++ linux-2.6.21.mod/include/sound/typedefs.h   2007-04-27 23:59:38.000000000 +0200
@@ -0,0 +1,173 @@
+/*
+ * Typedef's for backward compatibility (for out-of-kernel drivers)
+ *
+ * This file will be removed soon in future
+ */
+
+/* core stuff */
+typedef struct snd_card snd_card_t;
+typedef struct snd_device snd_device_t;
+typedef struct snd_device_ops snd_device_ops_t;
+typedef enum snd_card_type snd_card_type_t;
+typedef struct snd_minor snd_minor_t;
+
+/* info */
+typedef struct snd_info_entry snd_info_entry_t;
+typedef struct snd_info_buffer snd_info_buffer_t;
+
+/* control */
+typedef struct snd_ctl_file snd_ctl_file_t;
+typedef struct snd_kcontrol snd_kcontrol_t;
+typedef struct snd_kcontrol_new snd_kcontrol_new_t;
+typedef struct snd_kcontrol_volatile snd_kcontrol_volatile_t;
+typedef struct snd_kctl_event snd_kctl_event_t;
+typedef struct snd_aes_iec958 snd_aes_iec958_t;
+typedef struct snd_ctl_card_info snd_ctl_card_info_t;
+typedef struct snd_ctl_elem_id snd_ctl_elem_id_t;
+typedef struct snd_ctl_elem_list snd_ctl_elem_list_t;
+typedef struct snd_ctl_elem_info snd_ctl_elem_info_t;
+typedef struct snd_ctl_elem_value snd_ctl_elem_value_t;
+typedef struct snd_ctl_event snd_ctl_event_t;
+#if defined(CONFIG_SND_MIXER_OSS) || defined(CONFIG_SND_MIXER_OSS_MODULE)
+typedef struct snd_mixer_oss snd_mixer_oss_t;
+#endif
+
+/* timer */
+typedef struct snd_timer snd_timer_t;
+typedef struct snd_timer_instance snd_timer_instance_t;
+typedef struct snd_timer_id snd_timer_id_t;
+typedef struct snd_timer_ginfo snd_timer_ginfo_t;
+typedef struct snd_timer_gparams snd_timer_gparams_t;
+typedef struct snd_timer_gstatus snd_timer_gstatus_t;
+typedef struct snd_timer_select snd_timer_select_t;
+typedef struct snd_timer_info snd_timer_info_t;
+typedef struct snd_timer_params snd_timer_params_t;
+typedef struct snd_timer_status snd_timer_status_t;
+typedef struct snd_timer_read snd_timer_read_t;
+typedef struct snd_timer_tread snd_timer_tread_t;
+
+/* PCM */
+typedef struct snd_pcm snd_pcm_t;
+typedef struct snd_pcm_str snd_pcm_str_t;
+typedef struct snd_pcm_substream snd_pcm_substream_t;
+typedef struct snd_pcm_info snd_pcm_info_t;
+typedef struct snd_pcm_hw_params snd_pcm_hw_params_t;
+typedef struct snd_pcm_sw_params snd_pcm_sw_params_t;
+typedef struct snd_pcm_channel_info snd_pcm_channel_info_t;
+typedef struct snd_pcm_status snd_pcm_status_t;
+typedef struct snd_pcm_mmap_status snd_pcm_mmap_status_t;
+typedef struct snd_pcm_mmap_control snd_pcm_mmap_control_t;
+typedef struct snd_mask snd_mask_t;
+typedef struct snd_sg_buf snd_pcm_sgbuf_t;
+
+typedef struct snd_interval snd_interval_t;
+typedef struct snd_xferi snd_xferi_t;
+typedef struct snd_xfern snd_xfern_t;
+typedef struct snd_xferv snd_xferv_t;
+
+typedef struct snd_pcm_file snd_pcm_file_t;
+typedef struct snd_pcm_runtime snd_pcm_runtime_t;
+typedef struct snd_pcm_hardware snd_pcm_hardware_t;
+typedef struct snd_pcm_ops snd_pcm_ops_t;
+typedef struct snd_pcm_hw_rule snd_pcm_hw_rule_t;
+typedef struct snd_pcm_hw_constraints snd_pcm_hw_constraints_t;
+typedef struct snd_ratnum ratnum_t;
+typedef struct snd_ratden ratden_t;
+typedef struct snd_pcm_hw_constraint_ratnums snd_pcm_hw_constraint_ratnums_t;
+typedef struct snd_pcm_hw_constraint_ratdens snd_pcm_hw_constraint_ratdens_t;
+typedef struct snd_pcm_hw_constraint_list snd_pcm_hw_constraint_list_t;
+typedef struct snd_pcm_group snd_pcm_group_t;
+typedef struct snd_pcm_notify snd_pcm_notify_t;
+
+/* rawmidi */
+typedef struct snd_rawmidi snd_rawmidi_t;
+typedef struct snd_rawmidi_info snd_rawmidi_info_t;
+typedef struct snd_rawmidi_params snd_rawmidi_params_t;
+typedef struct snd_rawmidi_status snd_rawmidi_status_t;
+typedef struct snd_rawmidi_runtime snd_rawmidi_runtime_t;
+typedef struct snd_rawmidi_substream snd_rawmidi_substream_t;
+typedef struct snd_rawmidi_str snd_rawmidi_str_t;
+typedef struct snd_rawmidi_ops snd_rawmidi_ops_t;
+typedef struct snd_rawmidi_global_ops snd_rawmidi_global_ops_t;
+typedef struct snd_rawmidi_file snd_rawmidi_file_t;
+
+/* hwdep */
+typedef struct snd_hwdep snd_hwdep_t;
+typedef struct snd_hwdep_info snd_hwdep_info_t;
+typedef struct snd_hwdep_dsp_status snd_hwdep_dsp_status_t;
+typedef struct snd_hwdep_dsp_image snd_hwdep_dsp_image_t;
+typedef struct snd_hwdep_ops snd_hwdep_ops_t;
+
+/* sequencer */
+typedef struct snd_seq_port_info snd_seq_port_info_t;
+typedef struct snd_seq_port_subscribe snd_seq_port_subscribe_t;
+typedef struct snd_seq_event snd_seq_event_t;
+typedef struct snd_seq_addr snd_seq_addr_t;
+typedef struct snd_seq_ev_volume snd_seq_ev_volume_t;
+typedef struct snd_seq_ev_loop snd_seq_ev_loop_t;
+typedef struct snd_seq_remove_events snd_seq_remove_events_t;
+typedef struct snd_seq_query_subs snd_seq_query_subs_t;
+typedef struct snd_seq_system_info snd_seq_system_info_t;
+typedef struct snd_seq_client_info snd_seq_client_info_t;
+typedef struct snd_seq_queue_info snd_seq_queue_info_t;
+typedef struct snd_seq_queue_status snd_seq_queue_status_t;
+typedef struct snd_seq_queue_tempo snd_seq_queue_tempo_t;
+typedef struct snd_seq_queue_owner snd_seq_queue_owner_t;
+typedef struct snd_seq_queue_timer snd_seq_queue_timer_t;
+typedef struct snd_seq_queue_client snd_seq_queue_client_t;
+typedef struct snd_seq_client_pool snd_seq_client_pool_t;
+typedef struct snd_seq_instr snd_seq_instr_t;
+typedef struct snd_seq_instr_data snd_seq_instr_data_t;
+typedef struct snd_seq_instr_header snd_seq_instr_header_t;
+
+typedef struct snd_seq_user_client user_client_t;
+typedef struct snd_seq_kernel_client kernel_client_t;
+typedef struct snd_seq_client client_t;
+typedef struct snd_seq_queue queue_t;
+
+/* seq_device */
+typedef struct snd_seq_device snd_seq_device_t;
+typedef struct snd_seq_dev_ops snd_seq_dev_ops_t;
+
+/* seq_midi */
+typedef struct snd_midi_event snd_midi_event_t;
+
+/* seq_midi_emul */
+typedef struct snd_midi_channel snd_midi_channel_t;
+typedef struct snd_midi_channel_set snd_midi_channel_set_t;
+typedef struct snd_midi_op snd_midi_op_t;
+
+/* seq_oss */
+typedef struct snd_seq_oss_arg snd_seq_oss_arg_t;
+typedef struct snd_seq_oss_callback snd_seq_oss_callback_t;
+typedef struct snd_seq_oss_reg snd_seq_oss_reg_t;
+
+/* virmidi */
+typedef struct snd_virmidi_dev snd_virmidi_dev_t;
+typedef struct snd_virmidi snd_virmidi_t;
+
+/* seq_instr */
+typedef struct snd_seq_kcluster snd_seq_kcluster_t;
+typedef struct snd_seq_kinstr_ops snd_seq_kinstr_ops_t;
+typedef struct snd_seq_kinstr snd_seq_kinstr_t;
+typedef struct snd_seq_kinstr_list snd_seq_kinstr_list_t;
+
+/* ac97 */
+typedef struct snd_ac97_bus ac97_bus_t;
+typedef struct snd_ac97_bus_ops ac97_bus_ops_t;
+typedef struct snd_ac97_template ac97_template_t;
+typedef struct snd_ac97 ac97_t;
+
+/* opl3/4 */
+typedef struct snd_opl3 opl3_t;
+typedef struct snd_opl4 opl4_t;
+
+/* mpu401 */
+typedef struct snd_mpu401 mpu401_t;
+
+/* i2c */
+typedef struct snd_i2c_device snd_i2c_device_t;
+typedef struct snd_i2c_bus snd_i2c_bus_t;
+
+typedef struct snd_ak4531 ak4531_t;
+

_________________
Got a question? - http://justfuckinggoogleit.com/
Back to top
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Fri Apr 27, 2007 10:34 pm    Post subject: Reply with quote

Works! Thank you so much! :D
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
arjepsen
n00b
n00b


Joined: 21 Dec 2002
Posts: 14

PostPosted: Wed May 30, 2007 7:33 pm    Post subject: Reply with quote

Hi.

I have the kernel at /usr/src/linux-2.6.21-gentoo-r2
so I did
ln -s /usr/src/linux-2.6.21-gentoo-r2 linux-2.6.21

I copied the text in your post above to a file, (btscopatch), put it in /usr/src and ran:
patch -p0 <btscopatch

I get:

(Patch is indented 1 space)
Hunk #1 FAILED at 27.
1 out of 1 hunk FAILED -- saving rejects to file linux-2.6.21/include/sound/core.h.rej
(Patch is indented 1 space.)
patching file linux-2.6.21/include/sound/typedefs.h

Then I try to:
emerge btsco-kernel
but I still get the error above.

soo.. what am I doing wrong???
Back to top
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Wed May 30, 2007 8:41 pm    Post subject: Reply with quote

Look in the Gentoo Wiki. You're almost there. :wink:
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
arjepsen
n00b
n00b


Joined: 21 Dec 2002
Posts: 14

PostPosted: Thu May 31, 2007 12:45 pm    Post subject: Reply with quote

not really :(
only difference from the wiki was, that I had the patch in /usr/src/ and ran it witn patch -p0

I did as the wiki stated. Moved the patch to /usr/src/linux and ran it with patch -p1

no difference.
Same error.

I do get a file called typedefs.h in include/sound/
(I also did before)
but the pathing still gives a
Hunk #1 FAILED at 27

And I still can't emerge btsco-kernel.....
Back to top
View user's profile Send private message
dmvianna
l33t
l33t


Joined: 22 Mar 2004
Posts: 742
Location: Down Underland

PostPosted: Thu May 31, 2007 9:39 pm    Post subject: Reply with quote

I used gentoo-sources-2.6.21-r1. I was having issues with it, so I ended up going back to 2.6.20, which is at the moment very stable. Also, as I have a MacBook, I was using the mactel patches. Try it with 2.6.21-r1, and if it doesn't work, then I can't help you. Sorry. :|
_________________
Proprietary is theft. Pierre-Joseph Proudhon, if he had a chance
Powered by a MacBook Pro
Back to top
View user's profile Send private message
arjepsen
n00b
n00b


Joined: 21 Dec 2002
Posts: 14

PostPosted: Fri Jun 01, 2007 5:42 pm    Post subject: Reply with quote

actually I tried it with the first 2.6.21 too.
same thing :?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum