Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 359811 - media-video/linux-uvc-0.1.0_pre250 - work/linux-uvc-0.1.0_pre250/uvc_driver.c:162:2: error: implicit declaration of function ‘kmalloc’
Summary: media-video/linux-uvc-0.1.0_pre250 - work/linux-uvc-0.1.0_pre250/uvc_driver.c...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-21 15:17 UTC by Chr0nos
Modified: 2011-04-28 16:00 UTC (History)
0 users

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 Chr0nos 2011-03-21 15:17:14 UTC
hi,
i'm trying to configure a webcam (logitech C310) on linux gentoo so i'm trying to instal media-video/linux-uvc to use my camera but the compilation crash after many errors

Reproducible: Always

Steps to Reproduce:
1.emerge -v media-video/linux-uvc
2.
3.
Actual Results:  
la-yote / # emerge -av media-video/linux-uvc

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N     ] media-video/linux-uvc-0.1.0_pre250  0 kB

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

Would you like to merge these packages? [Yes/No] y

>>> 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 ]
 * Package:    media-video/linux-uvc-0.1.0_pre250
 * Repository: gentoo
 * Maintainer: maintainer-needed@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   ccache preserve-libs sandbox
 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found kernel object directory:
 *     /lib/modules/2.6.38-gentoo/build
 * Found sources for kernel version:
 *     2.6.38-gentoo
 * 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: failed to create symbolic link « Module.symvers »: Le fichier existe
 * Preparing uvcvideo module
make -j9 HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS= KERNEL_DIR=/usr/src/linux 
Building USB Video Class driver...
make[1] : on entre dans le répertoire « /usr/src/linux-2.6.38-gentoo »
make[1]: AVERTISSEMENT : le serveur de tâches n'est pas disponible: utilisation de -j1. Ajouter « + » à la règle parent du make.
  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_simplify_fraction’:
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_driver.c:162:2: erreur: implicit declaration of function ‘kmalloc’
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_driver.c:162:5: attention : assignment 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_driver.c:199:2: erreur: implicit declaration of function ‘kfree’
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_driver.c: In function ‘uvc_parse_streaming’:
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_driver.c:550:2: erreur: implicit declaration of function ‘kzalloc’
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_driver.c:550:12: attention : assignment 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_driver.c:620:33: attention : assignment 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_driver.c:693:9: attention : assignment 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_driver.c: In function ‘uvc_parse_vendor_control’:
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_driver.c:811:8: attention : assignment 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_driver.c: In function ‘uvc_parse_standard_control’:
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_driver.c:923:8: attention : assignment 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_driver.c:983:8: attention : assignment 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_driver.c:1010:8: attention : assignment 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_driver.c:1040:8: attention : assignment 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_driver.c:1075:8: attention : assignment 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_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:13: attention : assignment from incompatible pointer type
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_driver.c: In function ‘uvc_probe’:
/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_driver.c:1560:11: attention : assignment makes pointer from integer without a cast
make[2]: *** [/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250/uvc_driver.o] Erreur 1
make[1]: *** [_module_/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250] Erreur 2
make[1] : on quitte le répertoire « /usr/src/linux-2.6.38-gentoo »
make: *** [uvcvideo] Erreur 2
emake failed
 * ERROR: media-video/linux-uvc-0.1.0_pre250 failed (compile phase):
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  KERNEL_DIR=/usr/src/linux  
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3379:  Called linux-mod_src_compile
 *   environment, line 2593:  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}";
 * 
 * If you need support, post the output of 'emerge --info =media-video/linux-uvc-0.1.0_pre250',
 * the complete build log and the output of 'emerge -pqv =media-video/linux-uvc-0.1.0_pre250'.
 * The 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'.
 * S: '/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250'

>>> 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:

 * ERROR: media-video/linux-uvc-0.1.0_pre250 failed (compile phase):
 *   Unable to emake HOSTCC=x86_64-pc-linux-gnu-gcc CROSS_COMPILE=x86_64-pc-linux-gnu- LDFLAGS=  KERNEL_DIR=/usr/src/linux  
 * 
 * Call stack:
 *     ebuild.sh, line   56:  Called src_compile
 *   environment, line 3379:  Called linux-mod_src_compile
 *   environment, line 2593:  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}";
 * 
 * If you need support, post the output of 'emerge --info =media-video/linux-uvc-0.1.0_pre250',
 * the complete build log and the output of 'emerge -pqv =media-video/linux-uvc-0.1.0_pre250'.
 * The 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'.
 * S: '/var/tmp/portage/media-video/linux-uvc-0.1.0_pre250/work/linux-uvc-0.1.0_pre250'

 * IMPORTANT: 4 news items need reading for repository 'gentoo'.
 * Use eselect news to read news items.


Expected Results:  
makes my camera working :)

la-yote / # emerge --info
Portage 2.2.0_alpha27 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.2, glibc-2.13-r1, 2.6.38-gentoo x86_64)
=================================================================
System uname: Linux-2.6.38-gentoo-x86_64-Intel-R-_Core-TM-_i3_CPU_530_@_2.93GHz-with-gentoo-2.0.1
Timestamp of tree: Mon, 21 Mar 2011 14:00:01 +0000
distcc 3.1 x86_64-pc-linux-gnu [disabled]
ccache version 3.1.4 [enabled]
app-shells/bash:     4.1_p9
dev-lang/python:     2.6.6-r2, 2.7.1-r1, 3.1.3-r1
dev-util/ccache:     3.1.4
dev-util/cmake:      2.8.3-r1
sys-apps/baselayout: 2.0.1-r1
sys-apps/openrc:     0.7.0
sys-apps/sandbox:    2.5
sys-devel/autoconf:  2.13, 2.68
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.21
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.4-r1
sys-devel/make:      3.82
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
Repositories: gentoo sunrise wirelay voyageur multimedia games gamerlay-stable mozilla
Installed sets: 
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -mtune=core2 -march=core2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.2/ext-active/ /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.2/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.2/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -mtune=core2 -march=core2"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs ccache distlocks fixlafiles fixpackages getbinpkg news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="fr_FR.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="fr"
MAKEOPTS="-j9"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/sunrise /var/lib/layman/wirelay /var/lib/layman/voyageur /var/lib/layman/multimedia /var/lib/layman/games /var/lib/layman/gamerlay /var/lib/layman/mozilla"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amd64 bash-completion berkdb bluetooth branding bzip2 cairo cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr eds emboss encode evo exif fam ffmpeg firefox flac fortran gconf gdbm gdu gif gnome gnome-keyring gnutls gpm gstreamer gtk iconv ipod ipv6 jpeg lcms ldap libnotify mad mikmod mmx mng modules mp3 mp4 mpeg mudflap multilib nautilus ncurses nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl php png policykit ppds pppd python qt3support qt4 readline samba sdl session spell sse sse2 sse3 ssl startup-notification svg sysfs tcpd tiff truetype udev unicode usb v4l v4l2 vdpau vorbis webcam x264 xcb xml xorg xulrunner xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 cgi cgid 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" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="evdev keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account" 
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Chr0nos 2011-03-24 11:59:32 UTC
maybe a -9999 package can be done with this: http://git.linuxtv.org/media_build.git

i tried to build manualy and that seams to work
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-04-28 16:00:02 UTC
Removed from tree.   Use the in-kernel drivers.
Comment 3 Samuli Suominen (RETIRED) gentoo-dev 2011-04-28 16:00:41 UTC
(In reply to comment #1)
> maybe a -9999 package can be done with this:
> http://git.linuxtv.org/media_build.git
> 
> i tried to build manualy and that seams to work

If that isn't in Portage yet in any form, or in-kernel, please file a new bug with it.   This one is now closed.