Date: Wed, 08 Sep 2021 09:37:56 +0000 From: bugzilla-noreply@freebsd.org To: multimedia@FreeBSD.org Subject: maintainer-feedback requested: [Bug 258362] audio/libsndfile: Failed to build due to duplicated case value in programs/sndfile-play.c / Unnecessary uses of CMake Message-ID: <bug-258362-12827-L826IzeahH@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-258362-12827@https.bugs.freebsd.org/bugzilla/> References: <bug-258362-12827@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
Bugzilla Automation <bugzilla@FreeBSD.org> has asked freebsd-multimedia (Nobody) <multimedia@FreeBSD.org> for maintainer-feedback: Bug 258362: audio/libsndfile: Failed to build due to duplicated case value = in programs/sndfile-play.c / Unnecessary uses of CMake https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D258362 --- Description --- The build fails with following messages (I uses GCC 9): programs/sndfile-play.c: In function 'alsa_write_float': programs/sndfile-play.c:331:4: error: duplicate case value 331 | case -ESTRPIPE : | ^~~~ programs/sndfile-play.c:293:4: note: previously used here 293 | case -EPIPE : | ^~~~ This is due to tho following file used by libsndfile has defined `ESTRPIPE`= as `EPIPE`: > /usr/local/include/alsa/pcm.h:#define ESTRPIPE EPIPE Since the error is in ALSA-specific code (inside '#if HAVE_ALSA_ASOUNDLIB_H= '), it won't happen if ALSA library isn't installed. Another issue in this port is it uses CMake, despite the source itself also supporting GNU autotools as bulid system: the released source tarball conta= ins pregenerated GNU build scripts ready for use. For me it is terrible to have= to install the huge crap CMake just to build this port; please consider suppor= ting building this port without CMake.
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-258362-12827-L826IzeahH>