Daniel@DansPPC2011 MINGW64 ~/img4tool $ ./autogen.sh --host=x86_64-w64-mingw32 --enable-static --disable-shared --prefix=/usr/local configure: loading site script /mingw64/etc/config.site checking build system type... x86_64-w64-mingw32 checking host system type... x86_64-w64-mingw32 checking target system type... x86_64-w64-mingw32 checking how to print strings... printf checking for x86_64-w64-mingw32-gcc... x86_64-w64-mingw32-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.exe checking for suffix of executables... .exe checking whether we are cross compiling... no checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether x86_64-w64-mingw32-gcc accepts -g... yes checking for x86_64-w64-mingw32-gcc option to accept ISO C89... none needed checking whether x86_64-w64-mingw32-gcc understands -c and -o together... yes checking for a sed that does not truncate output... /usr/bin/sed checking for grep that handles long lines and -e... /usr/bin/grep checking for egrep... /usr/bin/grep -E checking for fgrep... /usr/bin/grep -F checking for ld used by x86_64-w64-mingw32-gcc... C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe checking if the linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /mingw64/bin/nm -B checking the name lister (/mingw64/bin/nm -B) interface... BSD nm checking whether ln -s works... no, using cp -pR checking the maximum length of command line arguments... 8192 checking how to convert x86_64-w64-mingw32 file names to x86_64-w64-mingw32 format... func_convert_file_msys_to_w32 checking how to convert x86_64-w64-mingw32 file names to toolchain format... func_convert_file_msys_to_w32 checking for C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe option to reload object files... -r checking for x86_64-w64-mingw32-objdump... no checking for objdump... objdump checking how to recognize dependent libraries... file_magic ^x86 archive import|^x86 DLL checking for x86_64-w64-mingw32-dlltool... no checking for dlltool... dlltool checking how to associate runtime and link libraries... func_cygming_dll_for_implib checking for x86_64-w64-mingw32-ar... no checking for ar... ar checking for archiver @FILE support... @ checking for x86_64-w64-mingw32-strip... no checking for strip... strip checking for x86_64-w64-mingw32-ranlib... no checking for ranlib... ranlib checking for gawk... gawk checking command to parse /mingw64/bin/nm -B output from x86_64-w64-mingw32-gcc object... ok checking for sysroot... no checking for a working dd... /usr/bin/dd checking how to truncate binary pipes... /usr/bin/dd bs=4096 count=1 checking for x86_64-w64-mingw32-mt... no checking for mt... no checking if : is a manifest tool... no checking how to run the C preprocessor... x86_64-w64-mingw32-gcc -E checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... no checking for objdir... .libs checking if x86_64-w64-mingw32-gcc supports -fno-rtti -fno-exceptions... no checking for x86_64-w64-mingw32-gcc option to produce PIC... -DDLL_EXPORT -DPIC checking if x86_64-w64-mingw32-gcc PIC flag -DDLL_EXPORT -DPIC works... yes checking if x86_64-w64-mingw32-gcc static flag -static works... yes checking if x86_64-w64-mingw32-gcc supports -c -o file.o... yes checking if x86_64-w64-mingw32-gcc supports -c -o file.o... (cached) yes checking whether the x86_64-w64-mingw32-gcc linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... no checking whether to build static libraries... yes checking for a BSD-compatible install... /usr/bin/install -c checking whether build environment is sane... yes checking for a thread-safe mkdir -p... /usr/bin/mkdir -p checking whether make sets $(MAKE)... yes checking whether make supports the include directive... yes (GNU style) checking whether make supports nested variables... yes checking dependency style of x86_64-w64-mingw32-gcc... gcc3 checking for x86_64-w64-mingw32-g++... x86_64-w64-mingw32-g++ checking whether we are using the GNU C++ compiler... yes checking whether x86_64-w64-mingw32-g++ accepts -g... yes checking how to run the C++ preprocessor... x86_64-w64-mingw32-g++ -E checking for ld used by x86_64-w64-mingw32-g++... C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe checking if the linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) is GNU ld... yes checking whether the x86_64-w64-mingw32-g++ linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes checking for x86_64-w64-mingw32-g++ option to produce PIC... -DDLL_EXPORT -DPIC checking if x86_64-w64-mingw32-g++ PIC flag -DDLL_EXPORT -DPIC works... yes checking if x86_64-w64-mingw32-g++ static flag -static works... yes checking if x86_64-w64-mingw32-g++ supports -c -o file.o... yes checking if x86_64-w64-mingw32-g++ supports -c -o file.o... (cached) yes checking whether the x86_64-w64-mingw32-g++ linker (C:/msys64/mingw64/x86_64-w64-mingw32/bin/ld.exe) supports shared libraries... yes checking dynamic linker characteristics... Win32 ld.exe checking how to hardcode library paths into programs... immediate checking dependency style of x86_64-w64-mingw32-g++... gcc3 checking for x86_64-w64-mingw32-gcc... (cached) x86_64-w64-mingw32-gcc checking whether we are using the GNU C compiler... (cached) yes checking whether x86_64-w64-mingw32-gcc accepts -g... (cached) yes checking for x86_64-w64-mingw32-gcc option to accept ISO C89... (cached) none needed checking whether x86_64-w64-mingw32-gcc understands -c and -o together... (cached) yes checking whether we need platform-specific build settings... checking for x86_64-w64-mingw32-pkg-config... no checking for pkg-config... /usr/bin/pkg-config checking pkg-config is at least version 0.9.0... yes checking for openssl >= 0.9.8... yes checking for libplist-2.0 >= 2.2.0... yes checking for libgeneral >= 32... yes checking arpa/inet.h usability... no checking arpa/inet.h presence... no checking for arpa/inet.h... no checking for stdint.h... (cached) yes checking for stdlib.h... (cached) yes checking for string.h... (cached) yes checking for unistd.h... (cached) yes checking for compression_decode_buffer in -lcompression... no checking for lzfse_decode_buffer in -llzfse... yes checking for stdbool.h that conforms to C99... yes checking for _Bool... yes checking for size_t... yes checking for uint32_t... yes checking for uint64_t... yes checking for uint8_t... yes checking for memmem... no checking that generated files are newer than configure... done configure: creating ./config.status config.status: creating Makefile config.status: creating include/Makefile config.status: creating libimg4tool.pc config.status: creating include/img4tool/img4tool.hpp config.status: creating img4tool/Makefile config.status: creating config.h config.status: config.h is unchanged config.status: executing libtool commands config.status: executing depfiles commands Configuration for img4tool-193: ------------------------------------------- install prefix ..........: /usr/local have plist ..............: yes crypto backend ..........: openssl compiler ................: x86_64-w64-mingw32-gcc Now type 'make' to build img4tool-193, and then 'make install' for installation. Daniel@DansPPC2011 MINGW64 ~/img4tool $ make CC=/mingw64/bin/clang.exe CXX=/mingw64/bin/clang++.exe CPP=/mingw64/bin/clang-cpp.exe LDFLAGS="-Wl,--allow-multiple-definition,-static,-lpthread" make all-recursive make[1]: Entering directory '/home/Daniel/img4tool' Making all in img4tool make[2]: Entering directory '/home/Daniel/img4tool/img4tool' /mingw64/bin/clang++.exe -DHAVE_CONFIG_H -I. -I.. -I../include -I../include/img4tool -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 In file included from main.cpp:18: ./img4tool.hpp:1:1: error: cannot use dot operator on a type ../include/img4tool/img4tool.hpp ^ main.cpp:25:27: error: expected namespace name using namespace tihmstar::img4tool; ~~~~~~~~~~^ main.cpp:77:1: error: unknown type name 'plist_t' plist_t readPlistFromFile(const char *filePath){ ^ main.cpp:88:5: error: unknown type name 'plist_t' plist_t plist = NULL; ^ main.cpp:99:5: error: unknown type name 'plist_t' plist_t shshplist = readPlistFromFile(shshfile); ^ main.cpp:101:5: error: unknown type name 'plist_t' plist_t ticket = plist_dict_get_item(shshplist, "ApImg4Ticket"); ^ main.cpp:168:19: error: use of undeclared identifier 'version' printf("%s\n",version()); ^ main.cpp:307:13: error: unknown type name 'ASN1DERElement' ASN1DERElement file(workingBuffer, workingBufferSize); ^ main.cpp:318:17: error: unknown type name 'ASN1DERElement' ASN1DERElement payload = getPayloadFromIM4P(file, decryptIv, decryptKey, &compression); ^ main.cpp:353:13: error: unknown type name 'ASN1DERElement' ASN1DERElement im4p = getEmptyIM4PContainer(im4pType, im4pDesc); ^ main.cpp:353:35: error: use of undeclared identifier 'getEmptyIM4PContainer' ASN1DERElement im4p = getEmptyIM4PContainer(im4pType, im4pDesc); ^ main.cpp:363:13: error: unknown type name 'ASN1DERElement' ASN1DERElement im4p(workingBuffer, workingBufferSize); ^ main.cpp:364:30: error: use of undeclared identifier 'getNameForSequence' string seqName = getNameForSequence(workingBuffer, workingBufferSize); ^ main.cpp:375:13: error: unknown type name 'plist_t' plist_t newshsh = NULL; ^ main.cpp:376:13: error: unknown type name 'plist_t' plist_t generator = NULL; ^ main.cpp:377:13: error: unknown type name 'plist_t' plist_t data = NULL; ^ main.cpp:387:13: error: unknown type name 'ASN1DERElement' ASN1DERElement im4m(workingBuffer, workingBufferSize); ^ main.cpp:397:21: error: unknown type name 'ASN1DERElement' ASN1DERElement im4r = getIM4RFromIMG4(im4m); ^ main.cpp:398:21: error: unknown type name 'ASN1DERElement' ASN1DERElement bncn = getBNCNFromIM4R(im4r); ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make[2]: *** [Makefile:608: img4tool-main.o] Error 1 make[2]: Leaving directory '/home/Daniel/img4tool/img4tool' make[1]: *** [Makefile:480: all-recursive] Error 1 make[1]: Leaving directory '/home/Daniel/img4tool' make: *** [Makefile:387: all] Error 2 Daniel@DansPPC2011 MINGW64 ~/img4tool $