SNDFILE can't build

[  8%] Building CXX object server/plugins/CMakeFiles/DiskIO_UGens.dir/DiskIO_UGens.cpp.o
In file included from /home/dlm/share/superc-dev/server/plugins/DiskIO_UGens.cpp:27:
/usr/include/sndfile.h:359:33: error: conflicting declaration ‘typedef struct sf_private_tag SNDFILE’
  359 | typedef struct sf_private_tag   SNDFILE ;
      |                                 ^~~~~~~
In file included from /home/dlm/share/superc-dev/include/plugin_interface/SC_World.h:27,
                 from /home/dlm/share/superc-dev/include/plugin_interface/SC_PlugIn.h:24,
                 from /home/dlm/share/superc-dev/server/plugins/DiskIO_UGens.cpp:25:
/home/dlm/share/superc-dev/include/plugin_interface/SC_SndBuf.h:26:28: note: previous declaration as ‘typedef struct SNDFILE_tag SNDFILE’
   26 | typedef struct SNDFILE_tag SNDFILE;
      |                            ^~~~~~~
make[2]: *** [server/plugins/CMakeFiles/DiskIO_UGens.dir/build.make:76: server/plugins/CMakeFiles/DiskIO_UGens.dir/DiskIO_UGens.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:2266: server/plugins/CMakeFiles/DiskIO_UGens.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

How to fix this?

I had 3.14 working. Updated sources to work on the msgFunc thing. Now I can’t build.

Will roll back the class library to 3.14 something.

hjh

I’ve had this happen before, I think I reinited the git submodules and that fixed it?

Thanks, will try tomorrow.

hjh

Just to confirm:

git submodule deinit -f --all
git submodule update --init --recursive

That got me past the SNDFILE failure.

Thanks for the tip!
hjh