[CM] 22.4: Issues building with pulseaudio

David Runge dave at sleepmap.de
Sat Jun 11 02:02:26 PDT 2022


Hi!

I'm maintaining snd for Arch Linux.
Upon upgrading to 22.4 I ran into issues and am unable to build the
project.

I noticed that `pulseaudio_sample_types` is implicitly declared:

```
audio.c: In function ‘mus_audio_device_sample_type’:
audio.c:5689:5: warning: implicit declaration of function ‘pulseaudio_sample_types’; did you mean ‘alsa_sample_types’? [-Wimplicit-function-declaration]
 5689 |     pulseaudio_sample_types(dev, mixer_vals);
      |     ^~~~~~~~~~~~~~~~~~~~~~~
      |     alsa_sample_types
```

Later on the linker is not able to find the reference:

```
/usr/bin/ld: /tmp/ccSWTc8d.ltrans32.ltrans.o: in function `mus_audio_device_sample_type':
/usr/src/debug/snd-22.4/audio.c:5689: undefined reference to `pulseaudio_sample_types'
collect2: error: ld returned 1 exit status
make: *** [makefile:83: snd] Error 1
```

For the entire build log please refer to https://pkgbuild.com/~dvzrv/logs/snd-22.4-build.log
The diff for audio.c between 22.3 and 22.4 can be found here: https://pkgbuild.com/~dvzrv/bugs/2022/06/snd-22.3-22.4-audio.c.diff

This is a regression from 22.3 to 22.4 (I am still able to build 22.3
successfully).

Any hints and patches are much welcomed.

Best,
David

-- 
https://sleepmap.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <https://cm-mail.stanford.edu/pipermail/cmdist/attachments/20220611/9c0f5b0f/attachment.sig>


More information about the Cmdist mailing list