GCC 11 broke compilation because it changed the default C ++ version from C ++ 14 to C ++ 17, this patch fixes it:
diff --git a/PKGBUILD b/PKGBUILD
index a60a398..f7afddc 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -33,7 +33,8 @@ build() {
--with-twolame \
--without-aacplus \
--with-pulseaudio \
- --with-samplerate
+ --with-samplerate \
+ CXXFLAGS="$CXXFLAGS -std=c++14"
make
}
It's also necessary to notify upstream to fix the error.
(Sorry for my bad English)
Pinned Comments
SpotlightKid commented on 2020-04-16 23:40 (UTC) (edited on 2020-04-16 23:40 (UTC) by SpotlightKid)
@all Heads up: I've updated the package to 1.4 and made the following changes:
N.B.: Upstream version 1.4 is not listed on the project's web site, but it is tagged in their git repository (see https://github.com/rafael2k/darkice/issues/157).