PortAudio: Disable sndio in PortAudio to avoid missing -lsndio errors#83
Merged
jserv merged 1 commit intosysprog21:masterfrom Jun 9, 2025
Merged
PortAudio: Disable sndio in PortAudio to avoid missing -lsndio errors#83jserv merged 1 commit intosysprog21:masterfrom
jserv merged 1 commit intosysprog21:masterfrom
Conversation
bc606ab to
586df93
Compare
Collaborator
Author
|
@Cuda-Chen: |
Collaborator
|
I can help to check the package dependencies.
|
Collaborator
|
Hi @shengwen-tw , It seems that PortAudio somehow uses sndio as an audio multiplexer on your environment. So you may choose one of the following option:
|
Fixes a compilation error introduced in sysprog21#76, where the `make all` target fails during the build of the PortAudio library on GNU/Linux systems. The failure was caused by PortAudio's configure script automatically enabling the sndio backend when `libsndio-dev` headers are present, which leads to linker errors due to missing `-lsndio`. To avoid this, we now explicitly pass `--without-sndio` to PortAudio’s configure script. This ensures that sndio support is disabled regardless of system headers, eliminating the need for `-lsndio` and fixing the build.
586df93 to
1637dff
Compare
Collaborator
Author
|
@Cuda-Chen |
Collaborator
|
Hi @shengwen-tw , I have verified that the change functions correctly on my environment. |
Cuda-Chen
approved these changes
Jun 9, 2025
Collaborator
|
Thank @shengwen-tw for contributing! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
Fixes a compilation error introduced in #76, where the
make alltarget fails during the build of the PortAudio library on GNU/Linux systems.The failure was caused by PortAudio's configure script automatically enabling the sndio backend when
libsndio-devheaders are present, which leads to linker errors due to missing-lsndio.To avoid this, we now explicitly pass
--without-sndioto PortAudio’s configure script. This ensures that sndio support is disabled regardless of system headers, eliminating the need for-lsndioand fixing the build.Environment
Error Log