Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 253794 - media-video/gspcav1-20071224 build error on gentoo-kernel 2.6.28
Summary: media-video/gspcav1-20071224 build error on gentoo-kernel 2.6.28
Status: RESOLVED DUPLICATE of bug 243196
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Mike Doty (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-04 23:28 UTC by bo
Modified: 2009-02-05 10:47 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description bo 2009-01-04 23:28:15 UTC
i tried rebuild camera driver module after kernel update and it do not compile
as far as i can see
"/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory"

it should be linux/semaphore.h in gspca_core.c

changing this make one error string to dissapear. Other stay without changes.

Reproducible: Always

Actual Results:  
laptopbo ~ # emerge -v gspcav1
These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] media-video/gspcav1-20071224  0 kB

Total: 1 package (1 new), Size of downloads: 0 kB


>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-video/gspcav1-20071224
 * gspcav1-20071224.tar.gz 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.28-gentoolaptopbo
 * Checking for suitable kernel configuration options...                                                                           [ ok ]
>>> Unpacking source...
>>> Unpacking gspcav1-20071224.tar.gz to /var/tmp/portage/media-video/gspcav1-20071224/work
 * Converting gspcav1-20071224/Makefile to use M= instead of SUBDIRS= ...                                                          [ ok ]
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224 ...
ln: creating symbolic link `Module.symvers': File exists
 * Preparing gspca module
make -j1 HOSTCC=i686-pc-linux-gnu-gcc CROSS_COMPILE=i686-pc-linux-gnu- LDFLAGS= KERNELDIR=/usr/src/linux default 
make -C /usr/src/linux M=/var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224 CC=cc modules
make[1]: Entering directory `/usr/src/linux-2.6.28-gentoo'
  CC [M]  /var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/gspca_core.o
/var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/gspca_core.c:54:27: error: asm/semaphore.h: No such file or directory
/var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/gspca_core.c: In function 'spca5xx_ioctl':
/var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/gspca_core.c:2463: error: implicit declaration of function 'video_usercopy'
/var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/gspca_core.c: At top level:
/var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/gspca_core.c:2609: error: unknown field 'owner' specified in initializer
/var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/gspca_core.c:2609: warning: initialization from incompatible pointer type
/var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/gspca_core.c:2611: error: unknown field 'type' specified in initializer
/var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/gspca_core.c: In function 'spca50x_create_sysfs':
/var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/gspca_core.c:2769: error: implicit declaration of function 'video_device_create_file'
/var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/gspca_core.c:2780: error: implicit declaration of function 'video_device_remove_file'
/var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/gspca_core.c: In function 'spca5xx_probe':
/var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/gspca_core.c:4301: error: incompatible types in assignment
make[2]: *** [/var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224/gspca_core.o] Error 1
make[1]: *** [_module_/var/tmp/portage/media-video/gspcav1-20071224/work/gspcav1-20071224] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.28-gentoo'
make: *** [default] Error 2
 * 
 * ERROR: media-video/gspcav1-20071224 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3146:  Called linux-mod_src_compile
 *             environment, line 2425:  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=  KERNELDIR=/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-video/gspcav1-20071224/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/gspcav1-20071224/temp/environment'.
 * 

>>> Failed to emerge media-video/gspcav1-20071224, Log file:

>>>  '/var/tmp/portage/media-video/gspcav1-20071224/temp/build.log'

 * Messages for package media-video/gspcav1-20071224:

 * 
 * ERROR: media-video/gspcav1-20071224 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called src_compile
 *             environment, line 3146:  Called linux-mod_src_compile
 *             environment, line 2425:  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=  KERNELDIR=/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-video/gspcav1-20071224/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/gspcav1-20071224/temp/environment'.



bo@laptopbo ~ $ emerge --info
Portage 2.1.6.4 (default/linux/x86/2008.0/desktop, gcc-4.3.2, glibc-2.9_p20081201-r1, 2.6.28-gentoolaptopbo i686)
=================================================================
System uname: Linux-2.6.28-gentoolaptopbo-i686-Intel-R-_Pentium-R-_M_processor_1.60GHz-with-glibc2.0
Timestamp of tree: Sun, 04 Jan 2009 21:10:01 +0000
app-shells/bash:     3.2_p48
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r8
dev-util/cmake:      2.6.2
sys-apps/baselayout: 2.0.0
sys-apps/openrc:     0.4.1-r1
sys-apps/sandbox:    1.3.2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.4_p6, 1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.19
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.28-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -Os -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=native -Os -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS=" http://mirror.yandex.ru/gentoo-distfiles/ ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ ftp://mirror.bih.net.ba/gentoo/ ftp://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.rhnet.is/pub/gentoo/ "
LANG="ru_RU.UTF-8"
LC_ALL=""
LDFLAGS="-Wl,-O1"
LINGUAS="ru en"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage/layman/xfce /usr/local/portage/layman/rox /usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="16bit 3dnow 3dnowext 7zip X aac aalib ace acl acpi aiglx alsa amd amr animgif aoss apm applet arj asf async audiofile automount avahi background bash-completion battery bcmath beep berkdb bidi binary-drivers bittorrent bl blender-game bluetooth branding bts bzip2 cairo calendar cdaudio cdda cddb cdparanoia cdr chardet clamav clflush cli cmov compress cpudetection cpufreq cracklib crypt cx8 dbus de dell directfb disablexmb divx djvu dri dts dvd dvdnav dvdr dvdread dvi eds effects egl emboss enca encode escreen esd est etwin evo exif fam fasttrack fbcon fbsplash ffmpeg fftw firefox flac fluidsynth fontconfig fortran fortran95 fpu ftp fusion fxsr gd gdbm gif gimp gimpprint ginac git glitz glx gmail gnome-print gnutella gphoto2 gpm grammar graphlcd gstreamer gtk hal hfs httpd i8x0 ibam icecat iceweasel iconv id3tag ieee1394 imagemagick imap imlib insecure-patches ipv6 irman isdnlog jabber jack java javascript jbig jingle jpeg jpeg2k laptop lcms libcaca libclamav libnotify libv4l2 libwww lirc lm_sensors mad magic matroska mca mce midi mikmod mime mmx mmxext mod motif mp3 mp4 mp4live mpeg mplayer mschap msr mtrr mudflap musepack ncurses new-login nls nptl nptlonly ntfs oav ogg opengl openmp pam pat pbe pcmcia pcre pda pdf pentium perl pge plugin plugins png portaudio ppds pppd print pse python qt3 qt3support qt4 quicktime rar readline realmedia reflection reiser4 reiserfs samba scanner scrobbler sdl sep session shorten smartcard sndfile sound sounds speex spell spl sqlite ss sse sse2 ssl startup-notification stream subversion svg svga sysfs taglib tcl tcpd tga threads tiff timidity tm tm2 truetype tsc tta unicode up upnp usb utf8 v4l v4l2 vcd vlm vme vorbis vorbis-psy wavpack wifi win32codecs wireshark wlan wma wmf wmp wxwindows x11vnc x264 x86 xanim xcb xcomposite xface xinerama xml xorg xosd xpm xprint xulrunner xv xvid xvmc zlib" ALSA_CARDS="intel8x0" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="ru en" USERLAND="GNU" VIDEO_CARDS="radeon"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Serkan Kaba (RETIRED) gentoo-dev 2009-01-05 05:09:45 UTC
You're supposed to use in kernel drivers beginning with 2.6.27. Assigning to maintainer for the final word.

Serkan
Comment 2 bo 2009-01-06 21:53:14 UTC
it really present in kernel now, but
i used some patches to gspcav1, i don't know how to patch new implementation...

gspcav1 should be masked for kernels after 2.6.27 if there are working in-kernel modules
Comment 3 spai 2009-01-07 08:18:49 UTC
I'm using gspca in-kernel module and don't have a normal picture from my Logitech camera. Only few bands have seen in any application window using camera.
Kernel version 2.6.28 change to 2.6.27 doesn't matter...
Comment 4 Serkan Kaba (RETIRED) gentoo-dev 2009-01-07 17:30:35 UTC
(In reply to comment #3)
> I'm using gspca in-kernel module and don't have a normal picture from my
> Logitech camera. Only few bands have seen in any application window using
> camera.
> Kernel version 2.6.28 change to 2.6.27 doesn't matter...
> 

You need libv4l as well.
Comment 5 Pacho Ramos gentoo-dev 2009-02-05 10:47:02 UTC

*** This bug has been marked as a duplicate of bug 243196 ***