Created attachment 434 [details] full error log of "make" When trying to build libsigrok on a current Debian unstable (gcc/g++ 7.3.0-21) on amd64, it fails with the following errors: make all-am CXX bindings/cxx/classes.lo In file included from bindings/cxx/include/libsigrokcxx/libsigrokcxx.hpp:1079:0, from bindings/cxx/classes.cpp:27: bindings/cxx/include/libsigrokcxx/enums.hpp:24:32: error: redeclaration of ‘const sigrok::LogLevel* const sigrok::LogLevel::NONE’ static const LogLevel * const NONE; ^~~~ bindings/cxx/include/libsigrokcxx/enums.hpp:12:32: note: previous declaration ‘const sigrok::LogLevel* const sigrok::LogLevel::NONE’ static const LogLevel * const NONE; ^~~~ I do not have any older/other libsigrok or header files installed on the system. config.log and full error output attached.
Created attachment 435 [details] config.log preceding the failing make
git describe output is "libsigrok-0.2.1-3057-gbf2a6eea"
The problem is not necessarily in the source, but could be in the local setup. In the past, symlinks between source and build directories, or nested build and source directories have resulted in this duplicate occurance of NONE in generated code. Can you see whether this applies to your setup? Use a build directory that resided _next_to_ the source, not underneath it. If this helps for your case, it's not the solution, but a workaround is easily available.
This is the same as #937, where the root cause was doxygen doing the wrong thing and duplicating the symbol names in its XML output. Maybe the comment by Virgile Andreani is worth a try? It would also be interesting to see which Doxygen version you use, Harald. Maybe there's a certain version range that's buggy.
This is a duplicate of #547, which should be fixed now via 3535a6eeee267ebb0092a0f6600b0b3edc055bf8, but please re-test to confirm. *** This bug has been marked as a duplicate of bug 547 ***