Not compile with new roc-toolkit 0.3.0
- PipeWire version (
pipewire --version
): 0.3.85 - Distribution and distribution version (
PRETTY_NAME
from/etc/os-release
): OpenMandriva Lx 23.90 (Nickel) Cooker - Desktop Environment: any
- Kernel version (
uname -r
): 6.7rc2
Description of Problem:
After updating roc-toolkit to newly released 0.3.0 version, pipewire no longer compile with it. Roc bumping soname from libroc.so.0.2 to libroc.so.0.3 so pipewire rebuild is required.
But problem is: pipewire no longer compile with new roc-tookit.
Here is error:
In file included from ../src/modules/module-roc-source.c:25:
DEBUG util.py:448: ../src/modules/module-roc/common.h:35:10: error: use of undeclared identifier 'ROC_RESAMPLER_PROFILE_DISABLE'; did you mean 'ROC_RESAMPLER_PROFILE_DEFAULT'?
DEBUG util.py:448: 35 | *out = ROC_RESAMPLER_PROFILE_DISABLE;
DEBUG util.py:448: | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
DEBUG util.py:448: | ROC_RESAMPLER_PROFILE_DEFAULT
DEBUG util.py:448: /usr/include/roc/config.h:564:5: note: 'ROC_RESAMPLER_PROFILE_DEFAULT' declared here
DEBUG util.py:448: 564 | ROC_RESAMPLER_PROFILE_DEFAULT = 0,
DEBUG util.py:448: | ^
DEBUG util.py:448: ../src/modules/module-roc-source.c:267:18: error: no member named 'frame_sample_rate' in 'struct roc_receiver_config'
DEBUG util.py:448: 267 | receiver_config.frame_sample_rate = data->rate;
DEBUG util.py:448: | ~~~~~~~~~~~~~~~ ^
DEBUG util.py:448: ../src/modules/module-roc-source.c:268:18: error: no member named 'frame_channels' in 'struct roc_receiver_config'
DEBUG util.py:448: 268 | receiver_config.frame_channels = ROC_CHANNEL_SET_STEREO;
DEBUG util.py:448: | ~~~~~~~~~~~~~~~ ^
DEBUG util.py:448: ../src/modules/module-roc-source.c:268:35: error: use of undeclared identifier 'ROC_CHANNEL_SET_STEREO'; did you mean 'ROC_CHANNEL_LAYOUT_STEREO'?
DEBUG util.py:448: 268 | receiver_config.frame_channels = ROC_CHANNEL_SET_STEREO;
DEBUG util.py:448: | ^~~~~~~~~~~~~~~~~~~~~~
DEBUG util.py:448: | ROC_CHANNEL_LAYOUT_STEREO
DEBUG util.py:448: /usr/include/roc/config.h:349:5: note: 'ROC_CHANNEL_LAYOUT_STEREO' declared here
DEBUG util.py:448: 349 | ROC_CHANNEL_LAYOUT_STEREO = 3,
DEBUG util.py:448: | ^
DEBUG util.py:448: ../src/modules/module-roc-source.c:269:35: error: use of undeclared identifier 'ROC_FRAME_ENCODING_PCM_FLOAT'
DEBUG util.py:448: 269 | receiver_config.frame_encoding = ROC_FRAME_ENCODING_PCM_FLOAT;
DEBUG util.py:448: | ^
Full build log here: https://file-store.openmandriva.org/api/v1/file_stores/35f9f3c4888bd0a5c3ea33fdd32c062814a6e5f2.log?show=true
How Reproducible:
- Update roc-tollkit to 0.3.0
- Try compile latest pipewire 0.3.85
- See compilation error
Expected Results:
Pipewire compile fine with roc-toolkit 0.3.0