Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 713388 - media-sound/jack_capture-0.9.73 : jack_capture.c: error: conflicting types for asprintf
Summary: media-sound/jack_capture-0.9.73 : jack_capture.c: error: conflicting types fo...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo musl team
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2020-03-19 11:11 UTC by Toralf Förster
Modified: 2021-05-09 07:41 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge-info.txt (emerge-info.txt,16.35 KB, text/plain)
2020-03-19 11:11 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,110.58 KB, text/plain)
2020-03-19 11:11 UTC, Toralf Förster
Details
environment (environment,55.55 KB, text/plain)
2020-03-19 11:11 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,12.51 KB, application/x-bzip)
2020-03-19 11:11 UTC, Toralf Förster
Details
media-sound:jack_capture-0.9.73:20200318-234451.log (media-sound:jack_capture-0.9.73:20200318-234451.log,2.74 KB, text/plain)
2020-03-19 11:11 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,14.84 KB, application/x-bzip)
2020-03-19 11:11 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2020-03-19 11:11:15 UTC
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"
Comment 1 Toralf Förster gentoo-dev 2020-03-19 11:11:18 UTC
Created attachment 622236 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2020-03-19 11:11:21 UTC
Created attachment 622238 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2020-03-19 11:11:24 UTC
Created attachment 622240 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2020-03-19 11:11:27 UTC
Created attachment 622242 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2020-03-19 11:11:31 UTC
Created attachment 622244 [details]
media-sound:jack_capture-0.9.73:20200318-234451.log
Comment 6 Toralf Förster gentoo-dev 2020-03-19 11:11:33 UTC
Created attachment 622246 [details]
temp.tbz2
Comment 7 Kay Thomas 2021-04-30 06:26:48 UTC
I made a pull request that should fix this bug, and it got merged: https://github.com/kmatheussen/jack_capture/pull/45
Comment 8 Miroslav Šulc gentoo-dev 2021-05-01 06:10:45 UTC
thank you Kevin! do we need both patches?  i don't have a musl system so cannot test it.
Comment 9 Kay Thomas 2021-05-08 22:51:28 UTC
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).
Comment 10 Miroslav Šulc gentoo-dev 2021-05-09 07:38:01 UTC
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.
Comment 11 Larry the Git Cow gentoo-dev 2021-05-09 07:41:11 UTC
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(-)