Skip to contentSkip to conversation

gentoo: v4l-dvb-hg doesn't compile with kernel 2.6.24-gentoo

linux-dvb Christian Dürrhauer 2 participants 5 messages Feb 9, 2008 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw

Hi,

the v4l-dvb-hg doesn't compile with the new kernel 2.6.24-gentoo. I am pretty sure I followed the instruction from the vdr-wiki for installing the drivers (kernel options). I have just for security rebuild the kernel using genkernel --clean --menuconfig all.

As the ebuild is just pulling the source from mercurial, I thought, I just leave a message here and maybe somebody can look into it.

CC [M]
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/bt87x.o
CC [M]
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/stk-webcam.o
CC [M]
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/stk-sensor.o In file included from /var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/bt87x.c:34:
include/sound/core.h:281: error: 'SNDRV_CARDS' undeclared here (not in a function)
make[2]: *** [/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/bt87x.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24-gentoo'
make: *** [default] Error 2
*
* ERROR: media-tv/v4l-dvb-hg-0.1-r2 failed.
* Call stack:

  *          ebuild.sh, line 1701:  Called dyn_compile
  *          ebuild.sh, line 1039:  Called qa_call 'src_compile'
  *          ebuild.sh, line   44:  Called src_compile
  *          ebuild.sh, line 1383:  Called linux-mod_src_compile
  *   linux-mod.eclass, line  519:  Called die

* The specific snippet of code:
* emake HOSTCC="$(tc-getBUILD_CC)"
CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \
* ${BUILD_FIXES} ${BUILD_PARAMS}
${BUILD_TARGETS} \
* || die "Unable to make ${BUILD_FIXES}
${BUILD_PARAMS} ${BUILD_TARGETS}."
* The die message:
* Unable to make KDIR=/usr/src/linux 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/media-tv/v4l-dvb-hg-0.1-r2/temp/build.log'.
*

Any help is greatly appreciated! :-)

Kind regards,

Christian

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#2 lore raw
Quoted 5 lines · Christian Dürrhauer

Christian Dürrhauer wrote:

I add a link to somebody else with the same problem:
http://www.alionet.org/index.php?showtopic=19216

sorry, I didn't get my previous mail now, I see, so I am adding it. What went wrong I don't know.

Christian

Hi,

the v4l-dvb-hg doesn't compile with the new kernel 2.6.24-gentoo. I am pretty sure I followed the instruction from the vdr-wiki for installing the drivers (kernel options). I have just for security rebuild the kernel using genkernel --clean --menuconfig all.

As the ebuild is just pulling the source from mercurial, I thought, I just leave a message here and maybe somebody can look into it.

CC [M]
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/bt87x.o
CC [M]
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/stk-webcam.o
CC [M]
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/stk-sensor.o In file included from /var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/bt87x.c:34:
include/sound/core.h:281: error: 'SNDRV_CARDS' undeclared here (not in a function)
make[2]: *** [/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/bt87x.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24-gentoo'
make: *** [default] Error 2
*
* ERROR: media-tv/v4l-dvb-hg-0.1-r2 failed.
* Call stack:

  *          ebuild.sh, line 1701:  Called dyn_compile
  *          ebuild.sh, line 1039:  Called qa_call 'src_compile'
  *          ebuild.sh, line   44:  Called src_compile
  *          ebuild.sh, line 1383:  Called linux-mod_src_compile
  *   linux-mod.eclass, line  519:  Called die

* The specific snippet of code:
* emake HOSTCC="$(tc-getBUILD_CC)"
CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \
* ${BUILD_FIXES} ${BUILD_PARAMS}
${BUILD_TARGETS} \
* || die "Unable to make ${BUILD_FIXES}
${BUILD_PARAMS} ${BUILD_TARGETS}."
* The die message:
* Unable to make KDIR=/usr/src/linux 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/media-tv/v4l-dvb-hg-0.1-r2/temp/build.log'.
*

Any help is greatly appreciated! :-)

Kind regards,

Christian

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#3 lore raw
Quoted 64 lines · Christian Dürrhauer
Quoted 4 lines · Christian Dürrhauer

Christian Dürrhauer wrote:

I add a link to somebody else with the same problem:
http://www.alionet.org/index.php?showtopic=19216

sorry, I didn't get my previous mail now, I see, so I am adding it. What went wrong I don't know.

Christian

Hi,

the v4l-dvb-hg doesn't compile with the new kernel 2.6.24-gentoo. I am pretty sure I followed the instruction from the vdr-wiki for installing the drivers (kernel options). I have just for security rebuild the kernel using genkernel --clean --menuconfig all.

As the ebuild is just pulling the source from mercurial, I thought, I just leave a message here and maybe somebody can look into it.

   CC [M]

/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/bt87x.o
CC [M]
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/stk-webcam.o
CC [M]
/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/stk-sensor.o In file included from /var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/bt87x.c:34:
include/sound/core.h:281: error: 'SNDRV_CARDS' undeclared here (not in a function)
make[2]: *** [/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l/bt87x.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/media-tv/v4l-dvb-hg-0.1-r2/work/v4l-dvb/v4l] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.24-gentoo'
make: *** [default] Error 2
*
* ERROR: media-tv/v4l-dvb-hg-0.1-r2 failed.
* Call stack:

  *          ebuild.sh, line 1701:  Called dyn_compile
  *          ebuild.sh, line 1039:  Called qa_call 'src_compile'
  *          ebuild.sh, line   44:  Called src_compile
  *          ebuild.sh, line 1383:  Called linux-mod_src_compile
  *   linux-mod.eclass, line  519:  Called die

* The specific snippet of code:
* emake HOSTCC="$(tc-getBUILD_CC)"
CC="$(get-KERNEL_CC)" LDFLAGS="$(get_abi_LDFLAGS)" \
* ${BUILD_FIXES} ${BUILD_PARAMS}
${BUILD_TARGETS} \
* || die "Unable to make ${BUILD_FIXES}
${BUILD_PARAMS} ${BUILD_TARGETS}."
* The die message:
* Unable to make KDIR=/usr/src/linux 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/media-tv/v4l-dvb-hg-0.1-r2/temp/build.log'.
*

Quoted 5 lines

Any help is greatly appreciated! :-)

Kind regards,

Christian

I have the same problem with kernel 2.6.24 and current HG. The attached patch solve the problem for me.

Jose Alberto

linux/sound/pci/bt87x.c +1 -1
diff -r 93ef35d93d83 linux/sound/pci/bt87x.c
@@ -28,7 +28,7 @@
 #include <linux/moduleparam.h>
 #include <linux/bitops.h>
 #include <asm/io.h>
-#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,24)
+#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,25)
 #include <sound/driver.h>
 #endif
 #include <sound/core.h>

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb

#4 lore raw
Quoted 5 lines · Jose Alberto Reguero
Quoted 1 line

Christian

I have the same problem with kernel 2.6.24 and current HG. The attached patch solve the problem for me.

Hi Jose,

thank you. Your patch did the trick.

Can it be put into the next version of bt87x.c in the v4l-dvb-test?

Kind regards,

Christian

_______________________________________________
linux-dvb mailing list
[email protected]
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb