media_build: build fails against (ubuntu) 2.6.32 on pvrusb2-debugifc.c

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am building against linux-2.6.32-26-generic from ubuntu, with just
the linux-headers package.

I know there is a big fat warning about doing this but I thought I
should report the issue
because mostly building like this does work.

The build was against a clean checkout of the media_build tree, using build.sh.

The build fails with:
  CC [M]  /home/vjm/git/clones/linuxtv.org/media_build/v4l/pvrusb2-sysfs.o
  CC [M]  /home/vjm/git/clones/linuxtv.org/media_build/v4l/pvrusb2-debugifc.o
/home/vjm/git/clones/linuxtv.org/media_build/v4l/pvrusb2-debugifc.c:
In function 'debugifc_parse_unsigned_number':
/home/vjm/git/clones/linuxtv.org/media_build/v4l/pvrusb2-debugifc.c:108:
error: implicit declaration of function 'hex_to_bin'
make[3]: *** [/home/vjm/git/clones/linuxtv.org/media_build/v4l/pvrusb2-debugifc.o]
Error 1

I was able to get the build to complete by hand-editing v4l/config-compat.h
@@ -11,6 +11,8 @@

 #include <linux/mmdebug.h>

+#define NEED_HEX_TO_BIN 1
+
 #undef CONFIG_VIDEO_SH_VOU
 #undef CONFIG_VIDEO_SH_VOU_MODULE
 #undef CONFIG_MX1_VIDEO

and rerunning make.

After inspecting the relevant commit[1] I'm a bit baffled as to why
this occurred.
It seems as though the header file is not being found correctly,
although it does exist,
at /usr/src/linux-headers-2.6.32-26-generic/include/linux/kernel.h.

 % grep -i hex_to_bin
/usr/src/linux-headers-2.6.32-26-generic/include/linux/kernel.h
 %

I'll poke a bit more into this and hopefully come up with a fix.
Cheers
Vince

[1] http://git.linuxtv.org/media_build.git?a=commit;h=2f3b6a700ee9b687b59a1eda8f8336b9aa4c47a6
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux