Error during install in Fedora 36: SNDFILE

I get this error during compilation:

[gabriele@10 linux]$ ./compileOF.sh -j7
Compiling /home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp
g++ -g3 -DDEBUG -Wall -Werror=return-type -DGCC_HAS_REGEX -DOF_USING_GTK -DOF_USING_GTK -DOF_USING_MPG123 -I/usr/include/cairo -I/usr/include/libpng16 -I/usr/include/freetype2 -I/usr/include/harfbuzz -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/sysprof-4 -I/usr/include/libxml2 -I/usr/include/pixman-1 -I/usr/include/gstreamer-1.0 -I/usr/include/orc-0.4 -I/usr/include/opus -I/usr/include/AL -I/usr/include/rtaudio -D__UNIX_JACK__ -D__LINUX_ALSA__ -D__LINUX_PULSE__ -D_REENTRANT -I/usr/include/gtk-3.0 -I/usr/include/pango-1.0 -I/usr/include/libmount -I/usr/include/blkid -I/usr/include/fribidi -I/usr/include/gdk-pixbuf-2.0 -I/usr/include/gio-unix-2.0 -I/usr/include/cloudproviders -I/usr/include/atk-1.0 -I/usr/include/at-spi2-atk/2.0 -I/usr/include/dbus-1.0 -I/usr/lib64/dbus-1.0/include -I/usr/include/at-spi-2.0 -pthread -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/fmod/include -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/glm/include -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/glm/include/glm -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/glm/include/glm/simd -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/glm/include/glm/gtx -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/glm/include/glm/gtc -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/glm/include/glm/ext -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/glm/include/glm/detail -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/json/include -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/kiss/include -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/pugixml/include -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/tess2/include -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/utf8/include -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/utf8/include/utf8 -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/graphics -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/math -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/utils -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/video -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/gl -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/types -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/sound -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/communication -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/app -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/events -I/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/3d -Wall -Werror=return-type -std=c++14 -DGCC_HAS_REGEX -MMD -MP -MF /home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/sound/ofOpenALSoundPlayer.d -MT/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/sound/ofOpenALSoundPlayer.o -o /home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/sound/ofOpenALSoundPlayer.o -c /home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp
In file included from /usr/include/sndfile.h:6,
                 from /home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp:10:
/usr/include/sndfile-64.h:356:33: error: conflicting declaration 'typedef struct sf_private_tag SNDFILE'
  356 | typedef struct sf_private_tag   SNDFILE ;
      |                                 ^~~~~~~
In file included from /home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/sound/ofOpenALSoundPlayer.cpp:1:
/home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworks/sound/ofOpenALSoundPlayer.h:18:33: note: previous declaration as 'typedef struct SNDFILE_tag SNDFILE'
   18 | typedef struct SNDFILE_tag      SNDFILE ;
      |                                 ^~~~~~~
make[1]: *** [makefileCommon/compile.core.mk:240: /home/gabriele/apps/of_v0.11.2_linux64gcc6_release/libs/openFrameworksCompiled/lib/linux64/obj/Debug/libs/openFrameworks/sound/ofOpenALSoundPlayer.o] Error 1
make: *** [makefileCommon/compile.core.mk:212: Debug] Error 2
there has been a problem compiling Debug OF library
please report this problem in the forums

I previously had an error when running the install_dependencies.sh script: see Script install_dependencies.sh in Fedora 36 conflict · Issue #7088 · openframeworks/openFrameworks · GitHub.

Hi Gabriele,

Can you try the nightly build at the bottom of the download page?
https://openframeworks.cc/download/

I think it is fixed in the current master / nightly builds.

Thanks,
Theo

Hi Theo,

Thanks, it solved the problem!