Full output
user@switch:~/Documents/sour/ios/img4tool$ make
(CDPATH="${ZSH_VERSION+.}:" && cd . && /bin/bash /home/user/Documents/sour/ios/img4tool/missing autoheader)
rm -f stamp-h1
touch config.h.in
cd . && /bin/bash ./config.status config.h
config.status: creating config.h
config.status: config.h is unchanged
make all-recursive
make[1]: Entering directory '/home/user/Documents/sour/ios/img4tool'
Making all in img4tool
make[2]: Entering directory '/home/user/Documents/sour/ios/img4tool/img4tool'
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -g -O2 -std=c++11 -MT libimg4tool_la-ASN1DERElement.lo -MD -MP -MF .deps/libimg4tool_la-ASN1DERElement.Tpo -c -o libimg4tool_la-ASN1DERElement.lo `test -f 'ASN1DERElement.cpp' || echo './'`ASN1DERElement.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -g -O2 -std=c++11 -MT libimg4tool_la-ASN1DERElement.lo -MD -MP -MF .deps/libimg4tool_la-ASN1DERElement.Tpo -c ASN1DERElement.cpp -fPIC -DPIC -o .libs/libimg4tool_la-ASN1DERElement.o
ASN1DERElement.cpp: In member function 'void tihmstar::img4tool::ASN1DERElement::print() const':
ASN1DERElement.cpp:224:44: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
printf("%llu",getIntegerValue());
~~~~~~~~~~~~~~~~~^
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -g -O2 -std=c++11 -MT libimg4tool_la-ASN1DERElement.lo -MD -MP -MF .deps/libimg4tool_la-ASN1DERElement.Tpo -c ASN1DERElement.cpp -o libimg4tool_la-ASN1DERElement.o >/dev/null 2>&1
mv -f .deps/libimg4tool_la-ASN1DERElement.Tpo .deps/libimg4tool_la-ASN1DERElement.Plo
/bin/bash ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -g -O2 -std=c11 -MT libimg4tool_la-lzssdec.lo -MD -MP -MF .deps/libimg4tool_la-lzssdec.Tpo -c -o libimg4tool_la-lzssdec.lo `test -f 'lzssdec.c' || echo './'`lzssdec.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -g -O2 -std=c11 -MT libimg4tool_la-lzssdec.lo -MD -MP -MF .deps/libimg4tool_la-lzssdec.Tpo -c lzssdec.c -fPIC -DPIC -o .libs/libimg4tool_la-lzssdec.o
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -g -O2 -std=c11 -MT libimg4tool_la-lzssdec.lo -MD -MP -MF .deps/libimg4tool_la-lzssdec.Tpo -c lzssdec.c -o libimg4tool_la-lzssdec.o >/dev/null 2>&1
mv -f .deps/libimg4tool_la-lzssdec.Tpo .deps/libimg4tool_la-lzssdec.Plo
/bin/bash ../libtool --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -g -O2 -std=c++11 -MT libimg4tool_la-img4tool.lo -MD -MP -MF .deps/libimg4tool_la-img4tool.Tpo -c -o libimg4tool_la-img4tool.lo `test -f 'img4tool.cpp' || echo './'`img4tool.cpp
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -g -O2 -std=c++11 -MT libimg4tool_la-img4tool.lo -MD -MP -MF .deps/libimg4tool_la-img4tool.Tpo -c img4tool.cpp -fPIC -DPIC -o .libs/libimg4tool_la-img4tool.o
img4tool.cpp:37:2: warning: #warning TODO adjust this for HAVE_COMMCRYPTO [-Wcpp]
#warning TODO adjust this for HAVE_COMMCRYPTO
^~~~~~~
img4tool.cpp:778:22: warning: multi-character character constant [-Wmultichar]
case 'TSGD': //DGST
^~~~~~
img4tool.cpp:806:51: warning: multi-character character constant [-Wmultichar]
ASN1DERElement bnch = getValFromIM4M(im4m,'BNCH');
^~~~~~
img4tool.cpp:1004:40: warning: multi-character character constant [-Wmultichar]
assure(ptagVal == htonl('BNCN'));
^
img4tool.cpp:1005:77: warning: multi-character character constant [-Wmultichar]
assure(*(uint32_t*)ptag[0].getStringValue().c_str() == htonl('BNCN'));
^
img4tool.cpp: In function 'void tihmstar::img4tool::printKBAG(const void*, size_t)':
img4tool.cpp:93:64: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
printf("num: %llu\n",elem.getIntegerValue());
~~~~~~~~~~~~~~~~~~~~~~^
img4tool.cpp: In function 'void tihmstar::img4tool::printIM4P(const void*, size_t)':
img4tool.cpp:396:89: warning: format '%llx' expects argument of type 'long long unsigned int', but argument 2 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
printf("Uncompressed size: 0x%08llx\n",sizeTag.getIntegerValue());
~~~~~~~~~~~~~~~~~~~~~~~~~^
img4tool.cpp: In function 'void tihmstar::img4tool::printIM4M(const void*, size_t, bool)':
img4tool.cpp:427:67: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'uint64_t {aka long unsigned int}' [-Wformat=]
printf("Version: %llu\n",tag.getIntegerValue());
~~~~~~~~~~~~~~~~~~~~~^
img4tool.cpp: In function 'bool tihmstar::img4tool::isGeneratorValidForIM4M(const tihmstar::img4tool::ASN1DERElement&, std::__cxx11::string)':
img4tool.cpp:809:51: warning: format '%llx' expects argument of type 'long long unsigned int*', but argument 3 has type 'uint64_t* {aka long unsigned int*}' [-Wformat=]
sscanf(generator.c_str(), "0x%16llx", &gen);
~~~~^
libtool: compile: g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -g -O2 -std=c++11 -MT libimg4tool_la-img4tool.lo -MD -MP -MF .deps/libimg4tool_la-img4tool.Tpo -c img4tool.cpp -o libimg4tool_la-img4tool.o >/dev/null 2>&1
mv -f .deps/libimg4tool_la-img4tool.Tpo .deps/libimg4tool_la-img4tool.Plo
/bin/bash ../libtool --tag=CXX --mode=link g++ -I../include -I../include/img4tool -I/usr/local/include -g -O2 -std=c++11 -lssl -lcrypto -L/usr/local/lib -lgeneral -o libimg4tool.la -rpath /usr/local/lib libimg4tool_la-ASN1DERElement.lo libimg4tool_la-lzssdec.lo libimg4tool_la-img4tool.lo -llzfse
libtool: link: g++ -fPIC -DPIC -shared -nostdlib /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crti.o /usr/lib/gcc/aarch64-linux-gnu/7/crtbeginS.o .libs/libimg4tool_la-ASN1DERElement.o .libs/libimg4tool_la-lzssdec.o .libs/libimg4tool_la-img4tool.o -lssl -lcrypto -L/usr/local/lib /usr/local/lib/libgeneral.so -llzfse -L/usr/lib/gcc/aarch64-linux-gnu/7 -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu -L/usr/lib/gcc/aarch64-linux-gnu/7/../../../../lib -L/lib/aarch64-linux-gnu -L/lib/../lib -L/usr/lib/aarch64-linux-gnu -L/usr/lib/../lib -L/usr/lib/gcc/aarch64-linux-gnu/7/../../.. -lstdc++ -lm -lc -lgcc_s /usr/lib/gcc/aarch64-linux-gnu/7/crtendS.o /usr/lib/gcc/aarch64-linux-gnu/7/../../../aarch64-linux-gnu/crtn.o -g -O2 -Wl,-soname -Wl,libimg4tool.so.0 -o .libs/libimg4tool.so.0.0.0
libtool: link: (cd ".libs" && rm -f "libimg4tool.so.0" && ln -s "libimg4tool.so.0.0.0" "libimg4tool.so.0")
libtool: link: (cd ".libs" && rm -f "libimg4tool.so" && ln -s "libimg4tool.so.0.0.0" "libimg4tool.so")
libtool: link: ar cru .libs/libimg4tool.a libimg4tool_la-ASN1DERElement.o libimg4tool_la-lzssdec.o libimg4tool_la-img4tool.o
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libimg4tool.a
libtool: link: ( cd ".libs" && rm -f "libimg4tool.la" && ln -s "../libimg4tool.la" "libimg4tool.la" )
g++ -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -I/usr/local/include -g -O2 -std=c++11 -MT img4tool-main.o -MD -MP -MF .deps/img4tool-main.Tpo -c -o img4tool-main.o `test -f 'main.cpp' || echo './'`main.cpp
main.cpp: In function 'char* readFromFile(const char*, size_t*)':
main.cpp:69:19: warning: ignoring return value of 'size_t fread(void*, size_t, size_t, FILE*)', declared with attribute warn_unused_result [-Wunused-result]
if (ret) fread(ret, size, 1, f);
~~~~~^~~~~~~~~~~~~~~~~
mv -f .deps/img4tool-main.Tpo .deps/img4tool-main.Po
/bin/bash ../libtool --tag=CXX --mode=link g++ -I../include -I../include/img4tool -I/usr/local/include -g -O2 -std=c++11 -lssl -lcrypto -L/usr/local/lib -lgeneral -o img4tool img4tool-main.o libimg4tool.la -llzfse
libtool: link: g++ -I../include -I../include/img4tool -I/usr/local/include -g -O2 -std=c++11 -o .libs/img4tool img4tool-main.o -lssl -lcrypto -L/usr/local/lib /usr/local/lib/libgeneral.so ./.libs/libimg4tool.so -llzfse
/usr/local/lib/libgeneral.so: undefined reference to `pthread_create'
collect2: error: ld returned 1 exit status
Makefile:515: recipe for target 'img4tool' failed
make[2]: *** [img4tool] Error 1
make[2]: Leaving directory '/home/user/Documents/sour/ios/img4tool/img4tool'
Makefile:481: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/home/user/Documents/sour/ios/img4tool'
Makefile:388: recipe for target 'all' failed
make: *** [all] Error 2