Current audacity latest version (the one I tried) has compilation issues under certain conditions: 1: libtool fix 2: ill-formed std::hash specialization that does not compile if using libc++ instead of libstdc++ 3: compilation with -midi will fail as of experimental feature about midi being defined regardless if midi was. While this is reported by me to upstream (https://github.com/audacity/audacity/pull/374), I backported the changes to current latest 2.3.2 version to make it compile under Gentoo.
Created attachment 588550 [details, diff] Fix libtool linking Solved problem 1 about libtool not being able to link
Created attachment 588552 [details, diff] Fix ill formed std::hash specialization This addresses the compilation failure about std::hash specialization when using libc++ instead of libstdc++
Created attachment 588554 [details, diff] Disable experimental midi features if midi is disabled This address the problem of compile with midi IUSE disabled
(In reply to David Carlos Manuelda from comment #0) > 1: libtool fix It is a bug 642758. And it shouldn't be fixed that way. > 3: compilation with -midi will fail as of experimental feature about midi > being defined regardless if midi was. I think this was already worked around in ebuild?
(In reply to Alexander Tsoy from comment #4) > (In reply to David Carlos Manuelda from comment #0) > > 1: libtool fix > It is a bug 642758. And it shouldn't be fixed that way. Oh, I had this patch in /etc/portage/patches many time, did not see there was uploaded already > > > 3: compilation with -midi will fail as of experimental feature about midi > > being defined regardless if midi was. > I think this was already worked around in ebuild? It is not, at least not as of today, since I ran into this issue just today with synced tree.
> > > 3: compilation with -midi will fail as of experimental feature about midi > > > being defined regardless if midi was. > > I think this was already worked around in ebuild? > > It is not, at least not as of today, since I ran into this issue just today > with synced tree. Sorry, seems you are right, now it compiles without midi flag, don't know why it did not compiled for me some hours ago
Update: patch3 only applies to upstream master, sorry for mixing things to this specific version. Update2: pull request have been accepted and merged, hopefully we will not see those issues again in next releases ;) I suggest to only pick my patch 2 for making this version compile with clang and/or libc++
Even with these patches, I was still unable to compile the package. It kept disabling my system portaudio because a function was missing. What worked for me was the ebuild at https://data.gpo.zugaina.org/crocket-overlay/media-sound/audacity/.
(In reply to mouac from comment #8) It's a different issue. Please open new bug report.
please test with 2.4.2-r1 and report back
no reports, so closing.