Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 124512 - media-video/usb-pwc-re-10.0.11 fails to compile: `v4l2_ioctl_names' undeclared
Summary: media-video/usb-pwc-re-10.0.11 fails to compile: `v4l2_ioctl_names' undeclared
Status: VERIFIED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High major
Assignee: Patrick Kursawe (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-03-01 04:23 UTC by Ioannis Aslanidis (RETIRED)
Modified: 2010-03-15 19:32 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 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-03-01 04:23:04 UTC
Compilation of the module failed. I am not sure why this happens.

 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.16-rc1-mm4
>>> Unpacking source...
>>> Unpacking pwc-10.0.11.tar.bz2 to /var/tmp/portage/usb-pwc-re-10.0.11/work
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11 ...
make -C /usr/src/linux SUBDIRS=/var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11 modules
make[1]: Entering directory `/usr/src/linux-2.6.16-rc1-mm4'
  CC [M]  /var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-if.o
  CC [M]  /var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-misc.o
  CC [M]  /var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-ctrl.o
  CC [M]  /var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-v4l.o
/var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-v4l.c: In function `pwc_video_do_ioctl':
/var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-v4l.c:371: error: `v4l2_ioctl_names' undeclared (fi rst use in this function)
/var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-v4l.c:371: error: (Each undeclared identifier is re ported only once
/var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-v4l.c:371: error: for each function it appears in.)
make[2]: *** [/var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-v4l.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.16-rc1-mm4'
make: *** [all] Error 2

!!! ERROR: media-video/usb-pwc-re-10.0.11 failed.
Call stack:
  ebuild.sh, line 1928:   Called dyn_compile
  ebuild.sh, line 966:   Called src_compile



Portage 2.1_pre5-r1 (default-linux/amd64/2006.0, gcc-3.4.5, glibc-2.3.6-r3, 2.6.16-rc1-mm4 x86_64)
=================================================================
System uname: 2.6.16-rc1-mm4 x86_64 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.0_pre16
dev-lang/python:     2.3.5-r2, 2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1-r1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r3
ACCEPT_KEYWORDS="amd64 ~amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=athlon64 -ftracer -fomit-frame-pointer -ffast-math -pipe -falign-functions=4 -fforce-addr -funroll-all-loops -funit-at-a-time -fpeel-loops -funswitch-loops"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib64/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O3 -march=athlon64 -ftracer -fomit-frame-pointer -ffast-math -pipe -falign-functions=4 -fforce-addr -funroll-all-loops -funit-at-a-time -fpeel-loops -funswitch-loops"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks fixpackages sandbox sfperms strict usersandbox"
GENTOO_MIRRORS="http://192.168.1.2/ http://linuv.uv.es/mirror/gentoo/ http://gentoo.blueyonder.co.uk http://mirror.gentoo.no/ http://gentoo.prz.rzeszow.pl http://ftp.du.se/pub/os/gentoo"
LANG="en_US.UTF-8"
LC_ALL="en_US.UTF-8"
LINGUAS="en es el"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 X acpi acpi4linux alsa apache apache2 audiofile avi berkdb bitmap-fonts blender-game bluetooth bootsplash browserplugin bzlib c++ caps cddb cdinstall cdparanoia cdrom chroot clamav clanVoice codecs crypt cups curl dga dio divx4linux dvd dvdr dvdread eds emboss encode erandom ethereal fbcon flac flash foomaticdb fortran freetype gd gif gimp gimpprint gmp gnome gpm gstreamer gtk gtk2 icq imagemagick imlib ipv6 java jikes jpeg junit kde lcms live lzw lzw-tiff memlimit mp3 mpeg msn ncurses network nls nocd nptl nptlonly nvidia opengl pam pdflib perl pic png ppds python qt quicktime readline rtc samba sdl session spell ssl svg szip tcpd tiff truetype-fonts ttf type1-fonts unicode usb userlocales v4l v4l2 videos wmf xml xmms xpm xv xvid zlib elibc_glibc kernel_linux linguas_en linguas_es linguas_el userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LDFLAGS
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-03-01 04:33:08 UTC
mm-sources is not a Gentoo-supported kernel. Reopen if you can reproduce the issue  a supported one.

http://www.gentoo.org/doc/en/gentoo-kernel.xml#doc_chap2
Comment 2 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-03-01 09:18:02 UTC
The bug is not reproducible under gentoo-sources-2.6.15-r5
Comment 3 Andy Botting 2006-04-10 01:02:48 UTC
This fails for me with exactly the same error with 2.6.16 on PPC.

 * Determining the location of the kernel source code
 * Found kernel source directory:
 *     /usr/src/linux
 * Found sources for kernel version:
 *     2.6.16
>>> Unpacking source...
>>> Unpacking pwc-10.0.11.tar.bz2 to /var/tmp/portage/usb-pwc-re-10.0.11/work
>>> Source unpacked.
make -C /usr/src/linux SUBDIRS=/var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11 modules
make[1]: Entering directory `/usr/src/linux-2.6.16'
  CC [M]  /var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-if.o
  CC [M]  /var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-misc.o
  CC [M]  /var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-ctrl.o
  CC [M]  /var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-v4l.o
/var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-v4l.c: In function `pwc_video_do_ioctl':
/var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-v4l.c:371: error: `v4l2_ioctl_names' undeclared (first use in this function)
/var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-v4l.c:371: error: (Each undeclared identifier is reported only once
/var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-v4l.c:371: error: for each function it appears in.)
make[2]: *** [/var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11/pwc-v4l.o] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [_module_/var/tmp/portage/usb-pwc-re-10.0.11/work/pwc-10.0.11] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.16'
make: *** [all] Error 2

!!! ERROR: media-video/usb-pwc-re-10.0.11 failed.
!!! Function src_compile, Line 25, Exitcode 2
!!! make failed
!!! If you need support, post the topmost build error, NOT this status message.

# emerge --info
Portage 2.0.54 (default-linux/ppc/ppc32/2006.0/G4, gcc-3.4.5, glibc-2.3.5-r3, 2.6.16 ppc)
=================================================================
System uname: 2.6.16 ppc 7447A, altivec supported
Gentoo Base System version 1.6.14
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
CHOST="powerpc-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=G4 -mtune=G4 -maltivec -mabi=altivec -fno-strict-aliasing -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://ftp.iinet.net.au/pub/Gentoo http://mirror.pacific.net.au/Gentoo http://distfiles.gentoo.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/overlays/local /usr/local/overlays/gentopia"
SYNC="rsync://rsync.au.gentoo.org/gentoo-portage"
USE="ppc X X509 alsa altivec apache2 apm audiofile avahi bash-completion berkdb bitmap-fonts bluetooth bonobo bzip2 cairo cdparanoia cdr cli crypt ctype cups curl daap dba dbus dga divx divx4linux dri dv dvb dvd dvdr eds emboss encode esd ethereal evo exif expat fam fastbuild fbcon ffmpeg firefox flac foomaticdb force-cgi-redirect fortran ftp gd gdbm gif glitz glut gnome gphoto2 gstreamer gtk gtk2 gtkhtml hal howl idn ieee1394 imagemagick imlib insecure-drivers ipod irmc java joystick jpeg junit lcms libg++ libwww live lzo mad matroska memlimit mikmod mng mono mozilla mp3 mpeg nautilus ncurses network nls nptl nsplugin ogg opengl pam pci pcre pdflib perl pmu png posix ppds python quicktime radeon readline ruby samba sdl session sheep simplexml soap sockets spell spl sqlite ssl tcpd theora threads tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb v4l v4l2 vorbis xine xinerama xml xml2 xsl xv xvid zlib video_cards_radeon userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 4 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-04-10 02:17:47 UTC
Reopening. Looks like a problem with kernels 2.6.16 in general.
Comment 5 Patrick Kursawe (RETIRED) gentoo-dev 2006-04-13 00:16:46 UTC
(In reply to comment #4)
> Reopening. Looks like a problem with kernels 2.6.16 in general.
> 

Couldn't reproduce with 2.6.16.1 - will check 2.6.16.
Comment 6 Patrick Kursawe (RETIRED) gentoo-dev 2006-04-13 01:11:57 UTC
Sorry, I don't have this problem with 2.6.16. But I think I found the root of the problem: On my system this name is declared in /usr/include/linux/videodev2.h which belongs to linux-headers, not in the kernel includes. Which version of linux-headers are you using? I have 2.6.11-r2.
Comment 7 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-04-13 02:33:07 UTC
I have virtual/os-headers:  2.6.11-r3 on AMD64.

In Comment #3, the user has virtual/os-headers:  2.6.11-r2 on PPC.

Maybe this bug is not reproducible under x86.
Comment 8 Sven Schwyn (svoop) 2006-04-18 00:48:06 UTC
Just in case you need more examples for broken setups:

Both 10.0.7 and 10.0.11 fail to compile with the mentioned error on my AMD64 box running 2.6.16-r2.

Thanks a bunch for dealing with it!  -sven


Portage 2.0.54 (default-linux/amd64/2005.1, gcc-3.4.5, glibc-2.3.5-r2, 2.6.16-gentoo-r2 x86_64)
=================================================================
System uname: 2.6.16-gentoo-r2 x86_64 AMD Athlon(tm) 64 Processor 3500+
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="amd64"
AUTOCLEAN="yes"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=k8 -pipe -O2"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k8 -pipe -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig ccache distlocks fixpackages sandbox sfperms userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo http://gentoo.osuosl.org http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_US"
LC_ALL="en_US"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/gentoo-de"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="amd64 16bit X X509 aac alsa aotuv apache2 audiofile avi berkdb bigpatch bitmap-fonts bluetooth bzip2 cairo ccache cdda cddb cdio cdparanoia cdr chroot cli cracklib crypt css ctype cups curl curlwrappers dar64 dba dio directfb dlloader dri dts dvd dvdr dvdread eds emboss encode exif expat fam ffmpeg flatfile foomaticdb fortran gd gif glitz gnome gpm gstreamer gtk gtk2 icecast idea imagemagick imlib imlib2 innodb ipv6 isdnlog jpeg kde lcms ldap libg++ libwww lirc live lm_sensors lzw lzw-tiff mad maildir mhash mime mng mp3 mpeg mpm-prefork mysql ncurses network nls nocd nptl nptlonly nvidia ogg oggvorbis openal opengl pam pam_chroot pcntl pcre pdflib perl pg-hier pg-intdatetime pg-vacuumdelay php png postgres ppds pppd python qt quicktime readline rrdtool samba sasl sdl session setup-plugin sharedmem slang sndfile soap sockets sox speex spell spl ssl symlink tcpd tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb utf8 v4l v4l2 vhosts vorbis xanim xml xml2 xmlrpc xpm xsl xv xvid yaepg yp zaptel zlib video_cards_nvidia userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, LINGUAS
Comment 9 Patrick Kursawe (RETIRED) gentoo-dev 2006-04-20 06:41:14 UTC
(In reply to comment #8)
> Just in case you need more examples for broken setups:
> 
> Both 10.0.7 and 10.0.11 fail to compile with the mentioned error on my AMD64
> box running 2.6.16-r2.

Hm... could you please tell me the output of
grep -n -2 ioctl_names /usr/include/linux/videodev2.h
on your system?

If the missing name is there perhaps you get the wrong include search path for some reason. Strange.
Comment 10 Sven Schwyn (svoop) 2006-04-20 06:46:57 UTC
Here you go:

934-extern char *v4l2_field_names[];
935-extern char *v4l2_type_names[];
936:extern char *v4l2_ioctl_names[];
937-
938-/*  Compatibility layer interface  --  v4l1-compat module */
Comment 11 kaouete 2006-04-22 17:36:53 UTC
hi, i get this problem too with 2.6.16-r3 on x86.

pistache linux # grep -n -2 ioctl_names /usr/include/linux/videodev2.h 
934-extern char *v4l2_field_names[];
935-extern char *v4l2_type_names[];
936:extern char *v4l2_ioctl_names[];
937-
938-/*  Compatibility layer interface  --  v4l1-compat module */

i tried to make a ebuild for 10.0.12-rc1 (just renamed 10.0.11 one to usb-pwc-re-10.0.12_rc1.ebuild) and it compiles fine.
Comment 12 Patrick Kursawe (RETIRED) gentoo-dev 2006-04-23 23:26:32 UTC
(In reply to comment #11)

> i tried to make a ebuild for 10.0.12-rc1 (just renamed 10.0.11 one to
> usb-pwc-re-10.0.12_rc1.ebuild) and it compiles fine.

Good idea. Why hunt down bugs that are fixed upstream?

10.0.12_rc1 in CVS, closing. 

Comment 13 Ioannis Aslanidis (RETIRED) gentoo-dev 2006-04-24 05:18:42 UTC
Thanks :)
Comment 14 Sven Schwyn (svoop) 2006-04-24 05:36:37 UTC
Great, works like a charm again. Big thanks!!