alsa-project / alsa-utils

The Advanced Linux Sound Architecture (ALSA) - utilities
GNU General Public License v2.0
199 stars 137 forks source link

alsa-utils 1.2.7 fails to build if rawmidi support is disabled in alsa-lib #154

Open Saur2000 opened 2 years ago

Saur2000 commented 2 years ago

If alsa-lib is configured using --disable-rawmidi, then alsa-utils fails to build:

  alsactl/info.c:83:44: error: unknown type name 'snd_rawmidi_stream_t'; did you mean 'snd_pcm_stream_t'?
     83 | static const char *snd_rawmidi_stream_name(snd_rawmidi_stream_t stream)
        |                                            ^~~~~~~~~~~~~~~~~~~~
        |                                            snd_pcm_stream_t
  alsactl/info.c:92:48: error: unknown type name 'snd_rawmidi_stream_t'; did you mean 'snd_pcm_stream_t'?
     92 | static int rawmidi_device_list(snd_ctl_t *ctl, snd_rawmidi_stream_t stream, bool *first)
        |                                                ^~~~~~~~~~~~~~~~~~~~
        |                                                snd_pcm_stream_t
bkuhls commented 2 years ago

Fixed by https://mailman.alsa-project.org/pipermail/alsa-devel/2022-July/203846.html