Professional Web Applications Themes

AlSA 1.0.0 make error - Linux Setup, Configuration & Administration

Need to compile ALSA for my on-board AC97 sound-card, so I downloaded the newest Alsa-driver (version 1.0.1) but make breaks up with the descriptive error 1. I am _not_ a hacker myself so I hope someone know how to fix this, especially since this a new package, others might run into the same problem. oswaldPURE-JOY-II:/usr/src/alsa/alsa-driver-1.0.1$ sudo make make[1]: Entering directory `/usr/src/kernel-source-2.6.0' *** Warning: Overriding SUBDIRS on the command line can cause *** inconsistencies make[2]: ťarch/i386/kernel/asm-offsets.sŤ ist bereits aktualisiert. CC [M] /usr/src/alsa/alsa-driver-1.0.1/acore/hwdep.o In file included from /usr/src/alsa/alsa-driver-1.0.1/include/sound/driver.h:42, from /usr/src/alsa/alsa-driver-1.0.1/acore/hwdep.c:22: /usr/src/alsa/alsa-driver-1.0.1/include/adriver.h:134: error: redefinition of `PDE' include/linux/proc_fs.h:253: error: `PDE' previously defined here make[2]: ...

  1. #1

    Default AlSA 1.0.0 make error


    Need to compile ALSA for my on-board AC97 sound-card, so I downloaded
    the newest Alsa-driver (version 1.0.1) but make breaks up with the
    descriptive error 1.

    I am _not_ a hacker myself so I hope someone know how to fix this,
    especially since this a new package, others might run into the same
    problem.

    oswaldPURE-JOY-II:/usr/src/alsa/alsa-driver-1.0.1$ sudo make

    make[1]: Entering directory `/usr/src/kernel-source-2.6.0'
    *** Warning: Overriding SUBDIRS on the command line can cause
    *** inconsistencies
    make[2]: ťarch/i386/kernel/asm-offsets.sŤ ist bereits aktualisiert.
    CC [M] /usr/src/alsa/alsa-driver-1.0.1/acore/hwdep.o
    In file included from /usr/src/alsa/alsa-driver-1.0.1/include/sound/driver.h:42,
    from /usr/src/alsa/alsa-driver-1.0.1/acore/hwdep.c:22:
    /usr/src/alsa/alsa-driver-1.0.1/include/adriver.h:134: error: redefinition of `PDE'
    include/linux/proc_fs.h:253: error: `PDE' previously defined here
    make[2]: *** [/usr/src/alsa/alsa-driver-1.0.1/acore/hwdep.o] Fehler 1
    make[1]: *** [/usr/src/alsa/alsa-driver-1.0.1/acore] Fehler 2
    make[1]: Leaving directory `/usr/src/kernel-source-2.6.0'
    make: *** [compile] Fehler 1



    LinuxUser aka Josef Oswald at
    --
    registered-Linux-user # 134.818 at http://counter.li.org

    The box said Windows, NT or better, so I installed Linux :-)
    OS.IS.LINUX Guest

  2. #2

    Default Re: AlSA 1.0.0 make error

    "OS.IS.LINUX" <net> writes:
     

    It is _not_ that I don't try to get the necessary info-s so I went back
    to the ALSA Home Page and found this:

    http://alsa.opensrc.org/index.php?page=AlsaBuild2.6

    this is the relevant part
    ---
    One can integrate ALSA-driver 1.0.1 into the Linux Kernel 2.6.0 or
    2.6.1 source tree pretty painlessly, here's how you do it:

    1. Unpack your kernel source in /usr/src (/usr/src/linux-2.6.1)
    2. Unpack alsa-driver-1.0.1 tarball into /usr/src (/usr/src/alsa-driver-1.0.1)
    3. cd /usr/src/alsa-driver-1.0.1/alsa-kernel
    4. rm -rf oss
    5. cp -a * /usr/src/linux-2.6.1/sound
    6. cd include
    7. cp -a * /usr/src/linux-2.6.1/include/sound
    [The next two are optional]
    8. cd ../Doentation
    9. cp -a * /usr/src/linux-2.6.1/Doentation

    One can then configure your kernel source as normal and compile, enjoy!

    ---------------------------------
    sure :-(

    oswaldPURE-JOY-II:/usr/src/kernel-source-2.6.0$ make
    HOSTCC scripts/modpost.o
    HOSTLD scripts/modpost
    make[1]: ?arch/i386/kernel/asm-offsets.s? ist bereits aktualisiert.
    CHK include/linux/compile.h
    CC [M] sound/core/pcm.o
    sound/core/pcm.c: In function `snd_pcm_stream_proc_init':
    sound/core/pcm.c:411: Warnung: passing arg 3 of `snd_info_set_text_ops' makes pointer from integer without a cast
    sound/core/pcm.c:411: error: too many arguments to function `snd_info_set_text_ops'
    sound/core/pcm.c: In function `snd_pcm_substream_proc_init':
    sound/core/pcm.c:454: Warnung: passing arg 3 of `snd_info_set_text_ops' makes pointer from integer without a cast
    sound/core/pcm.c:454: error: too many arguments to function `snd_info_set_text_ops'
    sound/core/pcm.c:463: Warnung: passing arg 3 of `snd_info_set_text_ops' makes pointer from integer without a cast
    sound/core/pcm.c:463: error: too many arguments to function `snd_info_set_text_ops'
    sound/core/pcm.c:472: Warnung: passing arg 3 of `snd_info_set_text_ops' makes pointer from integer without a cast
    sound/core/pcm.c:472: error: too many arguments to function `snd_info_set_text_ops'
    sound/core/pcm.c:481: Warnung: passing arg 3 of `snd_info_set_text_ops' makes pointer from integer without a cast
    sound/core/pcm.c:481: error: too many arguments to function `snd_info_set_text_ops'
    sound/core/pcm.c: In function `alsa_pcm_init':
    sound/core/pcm.c:965: Warnung: passing arg 3 of `snd_info_set_text_ops' makes pointer from integer without a cast
    sound/core/pcm.c:965: error: too many arguments to function `snd_info_set_text_ops'
    make[2]: *** [sound/core/pcm.o] Fehler 1
    make[1]: *** [sound/core] Fehler 2
    make: *** [sound] Fehler 2

    -----------------

    The Saga continues.....
    and all this trouble because stupid me want to
    use a onboard Sound Card AC97 _together_ with a Soundblaster Live 5.1 :-/



    my Kernel config:


    #
    # Sound
    #
    CONFIG_SOUND=y

    #
    # Advanced Linux Sound Architecture
    #
    CONFIG_SND=m
    CONFIG_SND_SEQUENCER=m
    CONFIG_SND_SEQ_DUMMY=m
    CONFIG_SND_OSSEMUL=y
    CONFIG_SND_MIXER_OSS=m
    CONFIG_SND_PCM_OSS=m
    CONFIG_SND_SEQUENCER_OSS=y
    CONFIG_SND_VERBOSE_PRINTK=y
    CONFIG_SND_DEBUG=y
    CONFIG_SND_DEBUG_MEMORY=y
    CONFIG_SND_DEBUG_DETECT=y

    #
    # Generic devices
    #
    # CONFIG_SND_DUMMY is not set
    # CONFIG_SND_VIRMIDI is not set
    # CONFIG_SND_MTPAV is not set
    # CONFIG_SND_SERIAL_U16550 is not set
    # CONFIG_SND_MPU401 is not set

    #
    # ISA devices
    #
    # CONFIG_SND_AD1848 is not set
    # CONFIG_SND_CS4231 is not set
    # CONFIG_SND_CS4232 is not set
    # CONFIG_SND_CS4236 is not set
    # CONFIG_SND_ES1688 is not set
    # CONFIG_SND_ES18XX is not set
    # CONFIG_SND_GUSCLASSIC is not set
    # CONFIG_SND_GUTREME is not set
    # CONFIG_SND_GUSMAX is not set
    # CONFIG_SND_INTERWAVE is not set
    # CONFIG_SND_INTERWAVE_STB is not set
    # CONFIG_SND_OPTI92X_AD1848 is not set
    # CONFIG_SND_OPTI92X_CS4231 is not set
    # CONFIG_SND_OPTI93X is not set
    # CONFIG_SND_SB8 is not set
    # CONFIG_SND_SB16 is not set
    # CONFIG_SND_SBAWE is not set
    # CONFIG_SND_WAVEFRONT is not set
    # CONFIG_SND_CMI8330 is not set
    # CONFIG_SND_OPL3SA2 is not set
    # CONFIG_SND_SGALAXY is not set
    # CONFIG_SND_SSCAPE is not set

    #
    # PCI devices
    #
    # CONFIG_SND_ALI5451 is not set
    # CONFIG_SND_AZT3328 is not set
    # CONFIG_SND_CS46XX is not set
    # CONFIG_SND_CS4281 is not set
    CONFIG_SND_EMU10K1=m
    ##
    CONFIG_SND_VIA82XX=m
    # CONFIG_SND_VX222 is not set

    #

    My patience is wearing thin... I want to do some _serios_ work with
    this PC and _not_ spend endless hours configuring it.
     

    LinuxUser aka Josef Oswald at
    --
    registered-linux-user # 134.818 at http://counter.li.org

    The box said Windows, NT or better, so I installed Linux :-)
    OS.IS.LINUX Guest

  3. #3

    Default Re: AlSA 1.0.0 make error

    Ransom <org> writes:
     
    > /usr/src/alsa/alsa-driver-1.0.1/acore/hwdep.c:22: 
    > This is caused by the conditional define on line 130 in adriver.h.
    > Change it to look like this and try again.
    >
    > // #ifndef CONFIG_HAVE_PDE
    > #include <linux/fs.h>
    > #include <linux/proc_fs.h>
    > /**
    > static inline struct proc_dir_entry *PDE(const struct inode
    > *inode)
    > {
    > return (struct proc_dir_entry *) inode->u.generic_ip;
    > }
    > #endif
    > */
    >
    > It seems that configure not always sees that PDE is already
    > defined. The same is true for 1.0.1.[/ref]


    Thanks for your reply :-)

    after I made the change, I run make mrproper, make menuconfig, and
    then "make" spits out this error...

    oswaldPURE-JOY-II:/usr/local/src/linux$

    sound/core/pcm.c: In function `snd_pcm_stream_proc_init':
    sound/core/pcm.c:411: Warnung: passing arg 3 of `snd_info_set_text_ops' makes pointer from integer without a cast
    sound/core/pcm.c:411: error: too many arguments to function `snd_info_set_text_ops'
    sound/core/pcm.c: In function `snd_pcm_substream_proc_init':
    sound/core/pcm.c:454: Warnung: passing arg 3 of `snd_info_set_text_ops' makes pointer from integer without a cast
    sound/core/pcm.c:454: error: too many arguments to function `snd_info_set_text_ops'
    sound/core/pcm.c:463: Warnung: passing arg 3 of `snd_info_set_text_ops' makes pointer from integer without a cast
    sound/core/pcm.c:463: error: too many arguments to function `snd_info_set_text_ops'
    sound/core/pcm.c:472: Warnung: passing arg 3 of `snd_info_set_text_ops' makes pointer from integer without a cast
    sound/core/pcm.c:472: error: too many arguments to function `snd_info_set_text_ops'
    sound/core/pcm.c:481: Warnung: passing arg 3 of `snd_info_set_text_ops' makes pointer from integer without a cast
    sound/core/pcm.c:481: error: too many arguments to function `snd_info_set_text_ops'
    sound/core/pcm.c: In function `alsa_pcm_init':
    sound/core/pcm.c:965: Warnung: passing arg 3 of `snd_info_set_text_ops' makes pointer from integer without a cast
    sound/core/pcm.c:965: error: too many arguments to function `snd_info_set_text_ops'
    make[2]: *** [sound/core/pcm.o] Fehler 1
    make[1]: *** [sound/core] Fehler 2
    make: *** [sound] Fehler 2



     

    --
    LinuxUser aka Josef Oswald at
    --
    registered-linux-user # 134.818 at http://counter.li.org

    The box said Windows, NT or better, so I installed Linux :-)
    OS.IS.LINUX Guest

  4. #4

    Default Re: AlSA 1.0.0 make error

    OS.IS.LINUX wrote:

    <snip> 
    /usr/src/alsa/alsa-driver-1.0.1/acore/hwdep.c:22: 
    This is caused by the conditional define on line 130 in adriver.h.
    Change it to look like this and try again.

    // #ifndef CONFIG_HAVE_PDE
    #include <linux/fs.h>
    #include <linux/proc_fs.h>
    /**
    static inline struct proc_dir_entry *PDE(const struct inode
    *inode)
    {
    return (struct proc_dir_entry *) inode->u.generic_ip;
    }
    #endif
    */

    It seems that configure not always sees that PDE is already
    defined. The same is true for 1.0.1.

    Ransom
    --
    For real email get public key 0xF6BB5695 from www.keyserver.net
    Ransom Guest

  5. #5

    Default Re: AlSA 1.0.0 make error

    OS.IS.LINUX wrote:


    <snip> 
    <snip>
    Similar problem. Have a look at /usr/include/sound/info.h:98-176.
    Remains the question: Why is CONFIG_PROC_FS not defined?

    Ransom
    --
    For real email get public key 0xF6BB5695 from www.keyserver.net
    Ransom Guest

Similar Threads

  1. Alsa-utils make error
    By Daniel in forum Debian
    Replies: 2
    Last Post: August 10th, 10:10 PM
  2. ES1688, ALSA
    By lobotomy in forum Linux Setup, Configuration & Administration
    Replies: 0
    Last Post: July 8th, 10:21 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139