Re: 1.0.18: fmode_t and kernel 2.6.27

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At Thu, 13 Nov 2008 14:03:38 -0200 (BRDT),Frédéric L. W. Meunier wrote:> > On Tue, 11 Nov 2008, Takashi Iwai wrote:> > > At Sat, 8 Nov 2008 15:57:25 -0200 (BRDT),> > Frédéric L. W. Meunier wrote:> >> > >> I see "Add fmode_t definition for older kernels", but get> >> > >> /usr/local/src/kernel/linux-2.6.27/sound/core/oss/pcm_oss.c: In function > >> 'snd_pcm_oss_open_file':> >> /usr/local/src/kernel/linux-2.6.27/sound/core/oss/pcm_oss.c:2286: error: > >> 'fmode_t' undeclared (first use in this function)> >> /usr/local/src/kernel/linux-2.6.27/sound/core/oss/pcm_oss.c:2286: error: > >> (Each undeclared identifier is reported only once> >> /usr/local/src/kernel/linux-2.6.27/sound/core/oss/pcm_oss.c:2286: error: for > >> each function it appears in.)> >> /usr/local/src/kernel/linux-2.6.27/sound/core/oss/pcm_oss.c:2286: error: > >> expected ';' before 'f_mode'> >> /usr/local/src/kernel/linux-2.6.27/sound/core/oss/pcm_oss.c:2295: error: > >> 'f_mode' undeclared (first use in this function)> >> > >> Is it supposed to build ?> > > > Try my snapshot:> >    ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz> > I got it to compile after adding "typedef unsigned int fmode_t;" to pcm_oss.c. > Is there anything wrong on my end ? It doesn't include adriver.h.> > I'm not compiling using configure, but by replacing the ALSA tree in the > kernel.
Don't do that.  The latest tree isn't for older kernels but alwaysfor the latest kernel tree.  Of course, there are many incompatibilitieslike this.  alsa-driver build resolves such things by patching andmany black magic.

Takashi
-------------------------------------------------------------------------This SF.Net email is sponsored by the Moblin Your Move Developer's challengeBuild the coolest Linux based applications with Moblin SDK & win great prizesGrand prize is a trip for two to an Open Source event anywhere in the worldhttp://moblin-contest.org/redirect.php?banner_id=100&url=/_______________________________________________Alsa-user mailing listAlsa-user@xxxxxxxxxxxxxxxxxxxxxxxxxx://lists.sourceforge.net/lists/listinfo/alsa-user

[Index of Archives]     [ALSA Devel]     [Linux Audio Users]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

  Powered by Linux