Build fails with unidentified identifier error
I pulled the latest repo, and double checked I had all prereqs. Then, in MasterPassword/platform-independent/c/cli
:
Output of cmake . && make
:
-- Current mpw source version 2.6-cli-5-217-g554c0129...
-- mpw: USE_SODIUM is enabled.
-- mpw: USE_COLOR is enabled.
-- mpw: USE_JSON is enabled.
-- Configuring done
-- Generating done
-- Build files have been written to: /home/crypdick/bin/MasterPassword/platform-independent/c/cli
[ 10%] Building C object CMakeFiles/mpw.dir/home/crypdick/bin/MasterPassword/platform-independent/c/core/src/base64.c.o
[ 20%] Building C object CMakeFiles/mpw.dir/home/crypdick/bin/MasterPassword/platform-independent/c/core/src/aes.c.o
[ 30%] Building C object CMakeFiles/mpw.dir/home/crypdick/bin/MasterPassword/platform-independent/c/core/src/mpw-algorithm.c.o
[ 40%] Building C object CMakeFiles/mpw.dir/home/crypdick/bin/MasterPassword/platform-independent/c/core/src/mpw-types.c.o
[ 50%] Building C object CMakeFiles/mpw.dir/home/crypdick/bin/MasterPassword/platform-independent/c/core/src/mpw-util.c.o
[ 60%] Building C object CMakeFiles/mpw.dir/home/crypdick/bin/MasterPassword/platform-independent/c/core/src/mpw-marshal-util.c.o
[ 70%] Building C object CMakeFiles/mpw.dir/home/crypdick/bin/MasterPassword/platform-independent/c/core/src/mpw-marshal.c.o
/home/crypdick/bin/MasterPassword/platform-independent/c/core/src/mpw-marshal.c: In function ‘mpw_marshal_write_json’:
/home/crypdick/bin/MasterPassword/platform-independent/c/core/src/mpw-marshal.c:343:65: error: ‘JSON_C_TO_STRING_NOSLASHESCAPE’ undeclared (first use in this function); did you mean ‘JSON_C_TO_STRING_NOZERO’?
JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_SPACED | JSON_C_TO_STRING_NOSLASHESCAPE ) );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JSON_C_TO_STRING_NOZERO
/home/crypdick/bin/MasterPassword/platform-independent/c/core/src/mpw-marshal.c:343:65: note: each undeclared identifier is reported only once for each function it appears in
CMakeFiles/mpw.dir/build.make:206: recipe for target 'CMakeFiles/mpw.dir/home/crypdick/bin/MasterPassword/platform-independent/c/core/src/mpw-marshal.c.o' failed
make[2]: *** [CMakeFiles/mpw.dir/home/crypdick/bin/MasterPassword/platform-independent/c/core/src/mpw-marshal.c.o] Error 1
CMakeFiles/Makefile2:67: recipe for target 'CMakeFiles/mpw.dir/all' failed
make[1]: *** [CMakeFiles/mpw.dir/all] Error 2
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2
Output of ./build
:
Current mpw source version 2.6-cli-5-217-g554c0129...
Building target: mpw...
INFO: Enabled mpw_sodium (libsodium).
INFO: Enabled mpw_color (libtinfo).
INFO: Enabled mpw_json (libjson-c).
../core/src/mpw-marshal.c: In function ‘mpw_marshal_write_json’:
../core/src/mpw-marshal.c:343:65: error: ‘JSON_C_TO_STRING_NOSLASHESCAPE’ undeclared (first use in this function); did you mean ‘JSON_C_TO_STRING_NOZERO’?
JSON_C_TO_STRING_PRETTY | JSON_C_TO_STRING_SPACED | JSON_C_TO_STRING_NOSLASHESCAPE ) );
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
JSON_C_TO_STRING_NOZERO
../core/src/mpw-marshal.c:343:65: note: each undeclared identifier is reported only once for each function it appears in