cat das_config.h |grep COMPILEFLAGS|sed s/\\/\\/COMPILEFLAGS//|tr \n >config_flags x86_64-gentoo-linux-musl-gcc -O2 -pipe -march=native -fno-common -falign-functions=32:25:16 -I/opt/local/include -DVERSION=\0.9.73\ -Wall -Wextra -Wno-unused jack_capture.c vringbuffer.c upwaker.c osc.c -o jack_capture -Wl,-O1 -Wl,--as-needed -ljack -lsndfile -lm -lpthread -lrt cat config_flags jack_capture.c:912:5: error: conflicting types for asprintf 912 | int asprintf(char **buffer, char *fmt, ...) { | ^~~~~~~~ In file included from jack_capture.c:24: ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0_musl-20200316-165821 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-gentoo-linux-musl-9.3.0 * clang version 10.0.0 Target: x86_64-gentoo-linux-musl Thread model: posix InstalledDir: /usr/lib/llvm/10/bin /usr/lib/llvm/10 10.0.0 Available Python interpreters, in order of preference: [1] python3.8 [2] python3.7 [3] python3.6 [4] python2.7 (fallback) Available Ruby profiles: [1] ruby24 (with Rubygems) [2] ruby25 (with Rubygems) * Available Rust versions: [1] rust-1.41.1 * repository: ==> /var/db/repos/gentoo/metadata/timestamp.chk <== Wed, 18 Mar 2020 13:38:27 +0000 emerge -qpvO media-sound/jack_capture [ebuild N ] media-sound/jack_capture-0.9.73 USE="-mp3 -ogg -osc"
Created attachment 622236 [details] emerge-info.txt
Created attachment 622238 [details] emerge-history.txt
Created attachment 622240 [details] environment
Created attachment 622242 [details] etc.portage.tbz2
Created attachment 622244 [details] media-sound:jack_capture-0.9.73:20200318-234451.log
Created attachment 622246 [details] temp.tbz2
I made a pull request that should fix this bug, and it got merged: https://github.com/kmatheussen/jack_capture/pull/45
thank you Kevin! do we need both patches? i don't have a musl system so cannot test it.
Hello Miroslav. After submitting the PR to upstream, they were able to figure out a more elegant way to fix this issue by removing the custom asprintf declaration all together. So the only patch you would need is this now: https://github.com/kmatheussen/jack_capture/commit/00c986d41dc932982d248b7c27221fccaec90f0b (I tested this on the latest Alpine Linux build by removing my patch and using this commit as the version, and it worked there).
thank you Kevin, will commit the fix. i had to redo the patch as it does not apply to 0.9.73 but the change is pretty trivial.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=11e0450192ef7c21d6bb78507ff26d63d8076be2 commit 11e0450192ef7c21d6bb78507ff26d63d8076be2 Author: Miroslav Šulc <fordfrog@gentoo.org> AuthorDate: 2021-05-09 07:39:55 +0000 Commit: Miroslav Šulc <fordfrog@gentoo.org> CommitDate: 2021-05-09 07:40:44 +0000 media-sound/jack_capture: fixed conflicting asprintf thanks to Kevin Thomas <me@kevinthomas.dev> for helping with the fix Closes: https://bugs.gentoo.org/713388 Package-Manager: Portage-3.0.18, Repoman-3.0.3 Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org> ...jack_capture-0.9.73-avoid-custom-asprintf.patch | 68 ++++++++++++++++++++++ .../jack_capture/jack_capture-0.9.73-r1.ebuild | 3 +- 2 files changed, 70 insertions(+), 1 deletion(-)