Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
linux-uvc fails to compile
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
Barun
n00b
n00b


Joined: 03 Jul 2009
Posts: 2
Location: Србија

PostPosted: Fri Jul 03, 2009 9:20 pm    Post subject: linux-uvc fails to compile Reply with quote

Hello everybody,

this is my first post ever on Gentoo forums, although I use Gentoo Linux for quiet some time already, so I am very enthusiastic about it.

Anyway,
Code:
emerge linux-uvc

fails giving following output:

Code:

Calculating dependencies... done!
>>> Verifying ebuild manifests
>>> Emerging (1 of 1) media-video/linux-uvc-0.1.0_pre250
 * linux-uvc-0.1.0_pre250.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...        [ ok ]
 * checking ebuild checksums ;-) ...                                     [ ok ]
 * checking auxfile checksums ;-) ...                                    [ ok ]
 * checking miscfile checksums ;-) ...                                   [ ok ]
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.30-gentoo-r1
 * Checking for suitable kernel configuration options...
  [ ok ]
>>> Unpacking source...
>>> Unpacking linux-uvc-0.1.0_pre250.tar.bz2 to /var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work
>>> Source unpacked in /var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work
>>> Compiling source in /var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250 ...
ln: creating symbolic link `Module.symvers': File exists
 * Preparing uvcvideo module
make -j2 HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= KERNEL_DIR=/usr/src/linux
Building USB Video Class driver...
make[1]: Entering directory `/usr/src/linux-2.6.30-gentoo-r1'
make[1]: warning: jobserver unavailable: using -j1.  Add `+' to parent make rule.
  CC [M]  /var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_driver.o
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_driver.c: In function 'uvc_register_video':
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_driver.c:1472: warning: assignment from incompatible pointer type
  CC [M]  /var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_queue.o
  CC [M]  /var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_v4l2.o
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_v4l2.c: In function 'uvc_v4l2_do_ioctl':
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_v4l2.c:989: warning: passing argument 1 of 'v4l_compat_translate_ioctl' from incompatible pointer type
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_v4l2.c:989: warning: passing argument 2 of 'v4l_compat_translate_ioctl' makes integer from pointer without a cast
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_v4l2.c:989: warning: passing argument 3 of 'v4l_compat_translate_ioctl' makes pointer from integer without a cast
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_v4l2.c:989: error: too many arguments to function 'v4l_compat_translate_ioctl'
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_v4l2.c: In function 'uvc_v4l2_ioctl':
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_v4l2.c:1002: warning: passing argument 1 of 'video_usercopy' from incompatible pointer type
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_v4l2.c:1002: warning: passing argument 2 of 'video_usercopy' makes integer from pointer without a cast
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_v4l2.c:1002: warning: passing argument 4 of 'video_usercopy' makes pointer from integer without a cast
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_v4l2.c:1002: error: too many arguments to function 'video_usercopy'
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_v4l2.c: At top level:
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_v4l2.c:1102: error: 'v4l_compat_ioctl32' undeclared here (not in a function)
make[2]: *** [/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_v4l2.o] Error 1
make[1]: *** [_module_/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.30-gentoo-r1'
make: *** [uvcvideo] Error 2
 *
 * ERROR: media-video/linux-uvc-0.1.0_pre250 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3261:  Called linux-mod_src_compile
 *             environment, line 2520:  Called die
 * The specific snippet of code:
 *               eval "emake HOSTCC=\"$(tc-getBUILD_CC)\"                   CROSS_COMPILE=${CHOST}-                   LDFLAGS=\"$(get_abi_LDFLAGS)\"                   ${BUILD_FIXES}                   ${BUILD_PARAMS}                   ${BUILD_TARGETS} " || die "Unable to emake HOSTCC="$(tc-getBUILD_CC)" CROSS_COMPILE=${CHOST}- LDFLAGS="$(get_abi_LDFLAGS)" ${BUILD_FIXES} ${BUILD_PARAMS} ${BUILD_TARGETS}";
 *  The die message:
 *   Unable to emake HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS=  KERNEL_DIR=/usr/src/linux 
 *
 * 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-video/linux-uvc-0.1.0_pre250/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/temp/environment'.
 *
>>> Failed to emerge media-video/linux-uvc-0.1.0_pre250, Log file:
>>>  '/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/temp/build.log'
 * Messages for package media-video/linux-uvc-0.1.0_pre250:


I want to install webcam on my Toshiba Satellite A300-1ND laptop (output from lsusb)
Code:
Bus 001 Device 002: ID 04f2:b008 Chicony Electronics Co., Ltd
for which I need linux-uvc (I saw on http://linux-uvc.berlios.de/ that it supports my camera)

You can see that I use 2.6.30-r1 Linux kernel which I have compiled with
Code:

CONFIG_VIDEO_DEV=y
CONFIG_VIDEO_V4L2_COMMON=y
CONFIG_VIDEO_V4L1_COMPAT=y
CONFIG_VIDEO_MEDIA=y
CONFIG_VIDEO_V4L2=y
CONFIG_VIDEO_CAPTURE_DRIVERS=y
CONFIG_V4L_USB_DRIVERS=y
CONFIG_USB_VIDEO_CLASS=y
CONFIG_USB_VIDEO_CLASS_INPUT_EVDEV=y


I guess the problem is somewhere in v4l_compat_ioctl32 because I only have file "/usr/src/linux/drivers/media/video/v4l2-compat-ioctl32.c", and probably that could be some clue for the solution.

Thanks in advance!

P.S. If you need anything else from my settings, it won't be a problem for me to give additional information.
Back to top
View user's profile Send private message
DaggyStyle
Watchman
Watchman


Joined: 22 Mar 2006
Posts: 5017

PostPosted: Fri Jul 03, 2009 9:44 pm    Post subject: Reply with quote

it's a shame that you haven't searched the forum, you could have saved yourself the waiting because the uvc module was integrated into the kernel.
revise this post: https://forums.gentoo.org/viewtopic-t-769154-highlight-uvc.html
_________________
Only two things are infinite, the universe and human stupidity and I'm not sure about the former - Albert Einstein
ProjectFootball
Back to top
View user's profile Send private message
Barun
n00b
n00b


Joined: 03 Jul 2009
Posts: 2
Location: Србија

PostPosted: Fri Jul 03, 2009 10:04 pm    Post subject: Reply with quote

Yes, you're right! My fault! I guess this thread could be either deleted or set to solved.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 33957
Location: 56N 3W

PostPosted: Fri Jul 03, 2009 10:35 pm    Post subject: Reply with quote

Moved from Multimedia to Duplicate Threads.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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