Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135627 - alsa-driver-1.0.11 emerge fails on a 2.4 kernel
Summary: alsa-driver-1.0.11 emerge fails on a 2.4 kernel
Status: RESOLVED UPSTREAM
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-05 06:27 UTC by Peter Bienstman (RETIRED)
Modified: 2007-01-14 01:59 UTC (History)
3 users (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 Peter Bienstman (RETIRED) gentoo-dev 2006-06-05 06:27:50 UTC
There seems to be some problem patching sndversion.h:

config.status: creating include/autoconf-extra.h
if [ ! -d include/sound -a ! -L include/sound ]; then \
  ln -sf ../alsa-kernel/include include/sound ; \
fi
make  dep
cp -auvf include/version.h include/sound/version.h
`include/version.h' -> `include/sound/version.h'
make[1]: Entering directory `/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11'
make[2]: Entering directory `/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/acore'
make  -C ioctl32 fastdep
make  -C oss fastdep
make[3]: Entering directory `/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/acore/ioctl32'
(tmpfile=`echo /var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/sndversions.h.tmp`; (echo "#ifndef _LINUX_SNDVERSIONS_H"; echo "#define _LINUX_SNDVERSIONS_H"; echo "#include <linux/modsetver.h>"; cd /var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/modules; for f in *.ver; do if [ -f $f ]; then echo "#include \"modules/${f}\""; fi; done; echo "#endif"; ) > ${tmpfile}; if [ -r /var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/sndversions.h ] && cmp -s /var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/sndversions.h ${tmpfile}; then echo /var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/sndversions.h was not updated; rm -f ${tmpfile}; else echo /var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/sndversions.h was updated; mv -f ${tmpfile} /var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/sndversions.h; fi)
make[3]: Entering directory `/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/acore/oss'
(tmpfile=`echo /var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/sndversions.h.tmp`; (echo "#ifndef _LINUX_SNDVERSIONS_H"; echo "#define _LINUX_SNDVERSIONS_H"; echo "#include <linux/modsetver.h>"; cd /var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/modules; for f in *.ver; do if [ -f $f ]; then echo "#include \"modules/${f}\""; fi; done; echo "#endif"; ) > ${tmpfile}; if [ -r /var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/sndversions.h ] && cmp -s /var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/sndversions.h ${tmpfile}; then echo /var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/sndversions.h was not updated; rm -f ${tmpfile}; else echo /var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/sndversions.h was updated; mv -f ${tmpfile} /var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/sndversions.h; fi)
/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/sndversions.h was updated
make[3]: Leaving directory `/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/acore/ioctl32'
make  -C seq fastdep
make[3]: Entering directory `/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/acore/seq'
make  -C instr fastdep
/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/sndversions.h was updated
mv: cannot stat `/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/sndversions.h.tmp': No such file or directory
make[3]: *** [update-sndversions] Error 1
make[3]: Leaving directory `/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/acore/oss'
make[2]: *** [_sfdep_oss] Error 2
make[2]: *** Waiting for unfinished jobs....


emerge --info
Portage 2.0.54-r2 (default-linux/x86/no-nptl/2.4, gcc-3.4.6, glibc-2.3.6-r3, 2.4.27 i686)
=================================================================
System uname: 2.4.27 i686 Intel(R) Pentium(R) 4 CPU 2.00GHz
Gentoo Base System version 1.6.14
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.2.3-r5, 2.3.5-r2, 2.4.2
dev-python/pycrypto: [Not Present]
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
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-r2
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.4.19-r1, 2.4.26-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe"
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/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.easynet.nl/mirror/gentoo/ ftp://ftp.snt.utwente.nl/pub/os/linux/gentoo http://ftp.easynet.nl/mirror/gentoo/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X aalib acl alsa apm arts atlas audiofile avi bash-completion berkdb bitmap-fonts bzip2 cdr cli crypt cups curl dri eds emboss encode esd exif expat f77 fam ffmpeg flac foomaticdb fortran gd gdbm ggi gif glut gmp gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile idn imagemagick imap imlib ipv6 isdnlog java jpeg junit kde lcms ldap libg++ libwww mad mikmod mmx mng motif mp3 mpeg ncurses nls ogg oggvorbis opengl oss pam pcre pda pdf pdflib perl pic plotutils png pppd prelink python qt qtmt quicktime readline recode reflection samba sdl session slang smime snmp speex spell spl sqlite sse ssl svga tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts usb vorbis xine xml xml2 xmms xorg xv xvid zlib userland_GNU kernel_linux elibc_glibc"
Unset:  CTARGET, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTAGE_RSYNC_EXTRA_OPTS, PORTAGE_RSYNC_OPTS
Comment 1 Jules Gagnon 2006-07-06 10:40:18 UTC
I had the same problem (I think) and I am using hardened-2.4.32-r4. I tried with MAKEOPTS="-j1" and I got it to compile. Could you try it too?
Comment 2 Peter Bienstman (RETIRED) gentoo-dev 2006-07-07 02:34:46 UTC
Now I get a different error:

i686-pc-linux-gnu-gcc -D__KERNEL__ -DMODULE=1 -I/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include  -I/usr/src/linux/include -I/usr/src/linux/include -O2 -mpreferred-stack-boundary=2 -march=i686 -Wdeclaration-after-statement -D__SMP__ -DCONFIG_SMP -DLINUX -Wall -Wstrict-prototypes -fomit-frame-pointer -Wno-trigraphs -O2 -fno-strict-aliasing -fno-common -pipe -DALSA_BUILD -nostdinc -iwithprefix include -DMODVERSIONS -include /usr/src/linux/include/linux/modversions.h   -DEXPORT_SYMTAB -c memalloc.c
In file included from /usr/src/linux/include/linux/sched.h:23,
                 from /usr/src/linux/include/linux/mm.h:4,
                 from /usr/src/linux/include/linux/slab.h:14,
                 from /usr/src/linux/include/asm/pci.h:38,
                 from /usr/src/linux/include/linux/pci.h:683,
                 from memalloc.inc:10,
                 from memalloc.c:1:
/usr/src/linux/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule'
/usr/src/linux/include/asm/smp.h:42: error: previous declaration of 'smp_send_reschedule' was here
/usr/src/linux/include/linux/smp.h:29: error: conflicting types for 'smp_send_reschedule'
/usr/src/linux/include/asm/smp.h:42: error: previous declaration of 'smp_send_reschedule' was here
In file included from memalloc.inc:13,
                 from memalloc.c:1:
/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/adriver.h:160: error: redefinition of 'PDE'
/usr/src/linux/include/linux/proc_fs.h:216: error: previous definition of 'PDE' was here
In file included from memalloc.inc:13,
                 from memalloc.c:1:
/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/include/adriver.h:635:1: warning: "vmalloc_to_page" redefined
In file included from /usr/src/linux/include/linux/modversions.h:176,
                 from <command line>:9:
/usr/src/linux/include/linux/modules/ksyms.ver:68:1: warning: this is the location of the previous definition
make[1]: *** [memalloc.o] Error 1
make[1]: Leaving directory `/var/tmp/portage/alsa-driver-1.0.11/work/alsa-driver-1.0.11/acore'
make: *** [compile] Error 1
Comment 3 Diego Elio Pettenò (RETIRED) gentoo-dev 2006-10-01 22:33:13 UTC
Check with the later versions (1.0.12/1.0.13) and if it's still an issue report upstream.
Comment 4 Corvus 2007-01-14 01:59:44 UTC
please someone report upstream, same bug still happens with alsa-driver-1.0.14_rc1 as well as all in between.

also 1.0.10 which compiled correctly, just dropped out of portage, resulting in 2.4.x gentoo systems unable to update now when alsa is used without manual overlay work