Enabling ALSA option breaks the build here (10.1/amd64): FAILED: /usr/bin/cc -DHAVE_CONFIG_H -Dlibfluidsynth_EXPORTS -O2 -pipe -march=opteron -I/opt/include/portaudio2 -I/opt/include -fstack-protector -fno-strict-aliasing -O2 -pipe -march=opteron -I/opt/include/portaudio2 -I/opt/include -fstack-protector -fno-strict-aliasing -fPIC -I. -Isrc -Isrc/drivers -Isrc/synth -Isrc/rvoice -Isrc/midi -Isrc/utils -Isrc/sfloader -Isrc/bindings -Iinclude -I/opt/include/glib-2.0 -I/opt/lib/glib-2.0/include -I/opt/include -I/opt/include/alsa -MMD -MT src/CMakeFiles/libfluidsynth.dir/drivers/fluid_alsa.c.o -MF src/CMakeFiles/libfluidsynth.dir/drivers/fluid_alsa.c.o.d -o src/CMakeFiles/libfluidsynth.dir/drivers/fluid_alsa.c.o -c src/drivers/fluid_alsa.c ... src/drivers/fluid_alsa.c:357:8: error: duplicate case value '-32' case -ESTRPIPE: ^ src/drivers/fluid_alsa.c:350:8: note: previous case defined here case -EPIPE: Indeed, both EPIPE and ESTRPIPE are 32...
Auto-assigned to maintainer multimedia@FreeBSD.org
Created attachment 150815 [details] Fix alsa-driver I submitted this patch upstream too: https://sourceforge.net/p/fluidsynth/tickets/135/ Drop into files/ ...
A commit references this bug: Author: riggs Date: Sun Jan 4 18:24:24 UTC 2015 New revision: 376263 URL: https://svnweb.freebsd.org/changeset/ports/376263 Log: Fix build failure with non-default ALSA option PR: 196163 Submitted by: mi@ALDAN.algebra.com MFH: 2015Q1 Changes: head/audio/fluidsynth/files/patch-src__drivers__fluid_alsa.c
Committed, thanks! Great that you have submitted upstream as well!