Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 183602 - media-video/em8300-modules-0.16.0-r1 fails to build if alsa is enabled in the kernel config
Summary: media-video/em8300-modules-0.16.0-r1 fails to build if alsa is enabled in the...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-06-29 06:34 UTC by Kostas Kavourakis
Modified: 2007-07-01 21:41 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 Kostas Kavourakis 2007-06-29 06:34:32 UTC
I tried to switch to in-kernel alsa as per the latest recommendations of the Gentoo alsa team. I had no other problem, except that media-video/em8300-modules-0.16.0-r1 won't compile when in-kernel alsa is enabled.



Reproducible: Always

Steps to Reproduce:
1. Enable ALSA in kernel config
2. emerge media-video/em8300-modules-0.16.0-r1
3. emerge stops with error

Actual Results:  
>>> Source unpacked.
>>> Compiling source in /var/tmp/portage/media-video/em8300-modules-0.16.0-r1/work/em8300-0.16.0/modules ...
make -C /usr/src/linux SUBDIRS=/var/tmp/portage/media-video/em8300-modules-0.16.0-r1/work/em8300-0.16.0/modules modules
make[1]: Entering directory `/usr/src/linux-2.6.21-klight6'
  CC [M]  /var/tmp/portage/media-video/em8300-modules-0.16.0-r1/work/em8300-0.16.0/modules/adv717x.o
In file included from /var/tmp/portage/media-video/em8300-modules-0.16.0-r1/work/em8300-0.16.0/modules/adv717x.c:50:
/var/tmp/portage/media-video/em8300-modules-0.16.0-r1/work/em8300-0.16.0/modules/../include/linux/em8300.h:269: error: expected specifier-qualifier-list before ‘snd_card_t’
/var/tmp/portage/media-video/em8300-modules-0.16.0-r1/work/em8300-0.16.0/modules/adv717x.c: In function ‘adv717x_setup’:
/var/tmp/portage/media-video/em8300-modules-0.16.0-r1/work/em8300-0.16.0/modules/adv717x.c:573: error: ‘struct em8300_s’ has no member named ‘card_nr’
/var/tmp/portage/media-video/em8300-modules-0.16.0-r1/work/em8300-0.16.0/modules/adv717x.c:575: error: ‘struct em8300_s’ has no member named ‘card_nr’
/var/tmp/portage/media-video/em8300-modules-0.16.0-r1/work/em8300-0.16.0/modules/adv717x.c:580: error: ‘struct em8300_s’ has no member named ‘card_nr’
/var/tmp/portage/media-video/em8300-modules-0.16.0-r1/work/em8300-0.16.0/modules/adv717x.c:585: error: ‘struct em8300_s’ has no member named ‘card_nr’
/var/tmp/portage/media-video/em8300-modules-0.16.0-r1/work/em8300-0.16.0/modules/adv717x.c:586: error: ‘struct em8300_s’ has no member named ‘card_nr’
/var/tmp/portage/media-video/em8300-modules-0.16.0-r1/work/em8300-0.16.0/modules/adv717x.c:588: error: ‘struct em8300_s’ has no member named ‘card_nr’
/var/tmp/portage/media-video/em8300-modules-0.16.0-r1/work/em8300-0.16.0/modules/adv717x.c:591: error: ‘struct em8300_s’ has no member named ‘card_nr’
make[2]: *** [/var/tmp/portage/media-video/em8300-modules-0.16.0-r1/work/em8300-0.16.0/modules/adv717x.o] Error 1
make[1]: *** [_module_/var/tmp/portage/media-video/em8300-modules-0.16.0-r1/work/em8300-0.16.0/modules] Error 2
make[1]: Leaving directory `/usr/src/linux-2.6.21-klight6'
make: *** [build] Error 2

!!! ERROR: media-video/em8300-modules-0.16.0-r1 failed.
Call stack:
  ebuild.sh, line 1615:   Called dyn_compile
  ebuild.sh, line 972:   Called qa_call 'src_compile'
  ebuild.sh, line 44:   Called src_compile
  em8300-modules-0.16.0-r1.ebuild, line 34:   Called die

!!! emake failed.
!!! If you need support, post the topmost build error, and the call stack if relevant.
!!! A complete build log is located at '/var/log/portage/media-video:em8300-modules-0.16.0-r1:20070629-062735.log'.


Expected Results:  
Without ALSA enabled in the kernel, the modules build fine. So it works when the external alsa-drivers ebuild is used, but that is only a workaround, and this ebuild gives warning that is likely to be removed in the future, hence I want to switch to in-kernel ALSA.

My  emerge --info
Portage 2.1.2.7 (default-linux/x86/2007.0, gcc-4.1.2, glibc-2.5-r3, 2.6.21-klight6 i686)
=================================================================
System uname: 2.6.21-klight6 i686 AMD Athlon(tm) XP 3100+
Gentoo Base System release 1.12.9
Timestamp of tree: Thu, 28 Jun 2007 16:50:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [enabled]
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -w"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/php/apache2-php5/ext-active/ /etc/php/cgi-php5/ext-active/ /etc/php/cli-php5/ext-active/ /etc/revdep-rebuild /etc/splash /etc/terminfo"
CXXFLAGS="-march=athlon-xp -O2 -pipe -fomit-frame-pointer -w"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="ccache distcc distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.ntua.gr/pub/linux/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/ ftp://ftp.uoi.gr/mirror/OS/gentoo/ http://ftp.physics.auth.gr/pub/mirrors/gentoo/ http://files.gentoo.org/"
LDFLAGS="-Wl,-O1 -Wl,-s -Wl,--sort-common -Wl,--as-needed -Wl,-z,now"
LINGUAS="en"
MAKEOPTS="-j7"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/custom-kernels /usr/portage/local/layman/xeffects /usr/local/portage"
SYNC="rsync://ftp.uoi.gr/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acpi alsa apache2 asf async audiofile bitmap-fonts branding bzip2 cairo caps cdr cli cracklib crypt ctype cups curl dbus dedicated divx dri dts dvd dvdnav dvdr dvdread dxr3 emboss emerald encode exif expat fam ffmpeg firefox flac foomaticdb fortran gd gdbm gif glibc-omitfp glitz glut gmedia gmp gnome gpm gstreamer gtk gtk2 gtkhtml guile hal iconv idn imagemagick imap imlib isdnlog java jpeg kde kdeenablefinal kdehiddenvisibility lcms libcaca libg++ libwww lm_sensors mad magic maildir matroska mhash midi mikmod mmap mmx mmxext mng motif mozilla moznocompose moznoirc moznomail mp3 mpeg mpm-prefork msn mudflap mysql ncurses new-login newspr nforce2 nls no-htdocs no-old-linux nptl nptlonly nsplugin nvidia ogg opengl openmp pam pcre pdf perl php pic png ppds pppd python qt3 qt3support qt4 quicktime readline realmedia reflection resolvconf rtc samba sasl sdl session slang spell spl sse ssl suhosin svg svga swat tcltk tcpd tiff transparency truetype truetype-fonts type1-fonts unicode usb userlocales vcd vda vorbis win32codecs wmp x264 x86 xcomposite xml xorg xv xvid xvmc zlib" ALSA_CARDS="emu10k1" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="nvidia vesa"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Samuli Suominen (RETIRED) gentoo-dev 2007-06-30 08:18:13 UTC
I don't have this hardware anymore. Reassign in hopes someone has.
Comment 2 Marc Hildebrand (RETIRED) gentoo-dev 2007-06-30 10:03:52 UTC
It does work with vanilla- and gentoo-sources, please try one of those.
Klight-sources are not in the tree and thus are not supported.
Sorry I can't help you here but I do hope gentoo-sources supply every feature you need too.
Please reopen if you have the same problem with one of our kernel-source packages.
Greetings,
Marc.
Comment 3 Kostas Kavourakis 2007-06-30 12:51:13 UTC
Unfortunately I get the same exact error with kernel sys-kernel/gentoo-sources-2.6.21-r3 and with vanilla-sources-2.6.21.5. It does build correctly with sys-kernel/gentoo-sources-2.6.20-r8, so it's apparent that the problem is something with the 2.6.21 tree. I'm reopening, it will be a problem when 2.6.21 gets stable.
Comment 4 Kostas Kavourakis 2007-06-30 17:56:39 UTC
Quoting the changelog from upstream:

"2007-03-16  Nicolas Boullis  <nboullis@debian.org>
	* include/linux/em8300.h,
	  modules/em8300_alsa.c:
	Fix compatibility with ALSA in linux kernel 2.6.21. Thanks to
	Ville Skyttä who spotted the problem.

	* modules/em8300_eeprom.c:
	Fix compatibility with linux kernel 2.6.21 by using the new
	crypto_hash functions. Thanks to "nyk" who spotted the problem."

I think a rev bump to the latest upstream version 0.16.2 would resolve this.
Comment 5 Marc Hildebrand (RETIRED) gentoo-dev 2007-07-01 19:52:13 UTC
Weird.
Nevertheless, version bumped in cvs.
Please check and open a new bug on 0.16.2 if you encounter any problem.
And thanks for the bug report!
Cheers,
Marc.
Comment 6 Kostas Kavourakis 2007-07-01 20:16:42 UTC
Thanks, just one note, em8300-libraries should be bumped to the same exact version as well, as they build from the same tarball and have em8300-modules as version specific dependency. em8300-libraries are necessary to initialize the em8300 based decoder and to upload the microcode.
Comment 7 Marc Hildebrand (RETIRED) gentoo-dev 2007-07-01 21:41:56 UTC
Should have mentioned it, I bumped both ;)