Code:
g++ -DHAVE_CONFIG_H -I. -fopenmp -pthread -fno-strict-aliasing -I/usr/local/cuda/include -DUSE_WRAPNVML -DSCRYPT_KECCAK512 -DSCRYPT_CHACHA -DSCRYPT_CHOOSE_COMPILETIME -O3 -march=native -D_REENTRANT -falign-functions=16 -falign-jumps=16 -falign-labels=16 -MT ccminer-api.o -MD -MP -MF .deps/ccminer-api.Tpo -c -o ccminer-api.o `test -f 'api.cpp' || echo './'`api.cpp
ccminer.cpp: In function 'void show_usage_and_exit(int)':
ccminer.cpp:2583:15: warning: format not a string literal and no format arguments [-Wformat-security]
ccminer.cpp:2585:22: warning: format not a string literal and no format arguments [-Wformat-security]
ccminer.cpp: In function 'bool parse_pool_array(json_t*)':
ccminer.cpp:3042:32: error: 'json_array_foreach' was not declared in this scope
ccminer.cpp:3043:2: error: expected ';' before '{' token
ccminer.cpp:3513:1: error: expected '}' at end of input
make[2]: *** [ccminer-ccminer.o] Error 1
make[2]: *** Waiting for unfinished jobs....
mv -f .deps/ccminer-hefty1.Tpo .deps/ccminer-hefty1.Po
mv -f .deps/ccminer-api.Tpo .deps/ccminer-api.Po
mv -f .deps/ccminer-util.Tpo .deps/ccminer-util.Po
make[2]: Leaving directory `/home/ubuntu/ccminer'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/ubuntu/ccminer'
make: *** [all] Error 2