Our project OpenRW is using SDL2 and glLoadGen. Since cmake 3.10, we switched to using GLVND for providing the opengl context. See https://cmake.org/cmake/help/v3.10/module/FindOpenGL.html#linux-specific
Recently we received a ticket about a failure to compile a shader: https://github.com/rwengine/openrw/issues/698 The reporter wrote that switching to the LEGACY interface fixed the issue.
After some back and forth, we found out that switching the opengl bindings to glad fixed his problem. Regenerating the bindings (with glloadgen) with the latest master did not fix the issue.
Maybe you can give some advice about what might be wrong?