Failed to build in my latest bulk since textproc/nlohmann-json was
installed on the builder as a dependency of another port.

The nlohmann-json 3.9.1 we package is incompatible with 3.11.2 bundled
in warzone2100:

FAILED: lib/sound/CMakeFiles/sound.dir/playlist.cpp.o
/tmp/pobj/warzone2100-4.3.2/bin/c++ -DAL_LIBTYPE_STATIC -DHAVE_CONFIG_H 
-DHAVE_OPENAL_ALEXT_H -DJSON_USE_IMPLICIT_CONVERSIONS=0 
-DNLOHMANN_JSON_NAMESPACE=nlohmann -DNLOHMANN_JSON_NAMESPACE_BEGIN="namespace 
nlohmann {" -DNLOHMANN_JSON_NAMESPACE_END=} 
-I/tmp/pobj/warzone2100-4.3.2/build-amd64 
-I/tmp/pobj/warzone2100-4.3.2/warzone2100/. 
-I/tmp/pobj/warzone2100-4.3.2/warzone2100/3rdparty 
-I/tmp/pobj/warzone2100-4.3.2/warzone2100/3rdparty/optional-lite/include 
-I/tmp/pobj/warzone2100-4.3.2/warzone2100/lib/sound/3rdparty/opusfile/include 
-I/usr/local/include/opus -isystem 
/tmp/pobj/warzone2100-4.3.2/warzone2100/3rdparty/glm -isystem 
/tmp/pobj/warzone2100-4.3.2/warzone2100/3rdparty/date/include -isystem 
/usr/local/include -isystem 
/tmp/pobj/warzone2100-4.3.2/warzone2100/3rdparty/json/include -isystem 
/usr/local/include/AL -O2 -pipe -fstack-protector-strong 
-fstack-clash-protection -DNDEBUG -g -fPIC -std=c++14 -MD -MT 
lib/sound/CMakeFiles/sound.dir/playlist.cpp.o -MF 
lib/sound/CMakeFiles/sound.dir/playlist.cpp.o.d -o 
lib/sound/CMakeFiles/sound.dir/playlist.cpp.o -c 
/tmp/pobj/warzone2100-4.3.2/warzone2100/lib/sound/playlist.cpp
c++: warning: argument unused during compilation: '-fstack-clash-protection' 
[-Wunused-command-line-argument]
/tmp/pobj/warzone2100-4.3.2/warzone2100/lib/sound/playlist.cpp:69:113: error: 
too many arguments to function call, expected 2, have 3
                throw nlohmann::json::type_error::create(302, "type must be an 
object, but is " + std::string(j.type_name()), &j);
                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                        
                                              ^~
/usr/local/include/nlohmann/json.hpp:2567:23: note: 'create' declared here
    static type_error create(int id_, const std::string& what_arg)
                      ^
/tmp/pobj/warzone2100-4.3.2/warzone2100/lib/sound/playlist.cpp:76:125: error: 
too many arguments to function call, expected 2, have 3
                        throw nlohmann::json::type_error::create(302, 
"music_modes type must be an array, but is " + std::string(j.type_name()), &j);
                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~                
                                                                 ^~
/usr/local/include/nlohmann/json.hpp:2567:23: note: 'create' declared here
    static type_error create(int id_, const std::string& what_arg)
                      ^
2 errors generated.
ninja: build stopped: subcommand failed.

Attachment: warzone2100.log.xz
Description: Binary data

Reply via email to