encounter / futurerestore

(unmaintained) iOS upgrade and downgrade tool utilizing SHSH blobs (unofficial fork supporting iOS 11 and newer devices)
GNU Lesser General Public License v3.0
176 stars 40 forks source link

Won't compile on Lubuntu #46

Open ThatMarko opened 6 years ago

ThatMarko commented 6 years ago

lubuntu 18.04 ./autogen.sh works good:

root@lubuntu:~/futurerestore# ./autogen.sh 
libtoolize: putting auxiliary files in '.'.
libtoolize: linking file './ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: linking file 'm4/libtool.m4'
libtoolize: linking file 'm4/ltoptions.m4'
libtoolize: linking file 'm4/ltsugar.m4'
libtoolize: linking file 'm4/ltversion.m4'
libtoolize: linking file 'm4/lt~obsolete.m4'
configure.ac:31: installing './compile'
configure.ac:15: installing './missing'
futurerestore/Makefile.am: installing './depcomp'
~/futurerestore/external/idevicerestore ~/futurerestore
libtoolize: putting auxiliary files in '../..'.
libtoolize: linking file '../../ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: linking file 'm4/libtool.m4'
libtoolize: linking file 'm4/ltoptions.m4'
libtoolize: linking file 'm4/ltsugar.m4'
libtoolize: linking file 'm4/ltversion.m4'
libtoolize: linking file 'm4/lt~obsolete.m4'
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:33: installing '../../compile'
configure.ac:8: installing '../../missing'
src/Makefile.am: installing '../../depcomp'
~/futurerestore
~/futurerestore/external/img4tool ~/futurerestore
libtoolize: putting auxiliary files in '../..'.
libtoolize: linking file '../../ltmain.sh'
libtoolize: Consider adding 'AC_CONFIG_MACRO_DIRS([m4])' to configure.ac,
libtoolize: and rerunning libtoolize and aclocal.
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
aclocal: warning: couldn't open directory 'm4': No such file or directory
configure.ac:10: installing '../../compile'
configure.ac:3: installing '../../missing'
img4tool/Makefile.am: installing '../../depcomp'
~/futurerestore
~/futurerestore/external/tsschecker ~/futurerestore
libtoolize: putting auxiliary files in '../..'.
libtoolize: linking file '../../ltmain.sh'
libtoolize: putting macros in AC_CONFIG_MACRO_DIRS, 'm4'.
libtoolize: linking file 'm4/libtool.m4'
libtoolize: linking file 'm4/ltoptions.m4'
libtoolize: linking file 'm4/ltsugar.m4'
libtoolize: linking file 'm4/ltversion.m4'
libtoolize: linking file 'm4/lt~obsolete.m4'
libtoolize: Consider adding '-I m4' to ACLOCAL_AMFLAGS in Makefile.am.
configure.ac:10: installing '../../compile'
configure.ac:4: installing '../../missing'
tsschecker/Makefile.am:6: warning: source file '$(top_srcdir)/external/jssy/jssy/jssy.c' is in a subdirectory,
tsschecker/Makefile.am:6: but option 'subdir-objects' is disabled
automake: warning: possible forward-incompatibility.
automake: At least a source file is in a subdirectory, but the 'subdir-objects'
automake: automake option hasn't been enabled.  For now, the corresponding output
automake: object file(s) will be placed in the top-level directory.  However,
automake: this behaviour will change in future Automake versions: they will
automake: unconditionally cause object files to be placed in the same subdirectory
automake: of the corresponding sources.
automake: You are advised to start using 'subdir-objects' option throughout your
automake: project, to avoid future incompatibilities.
tsschecker/Makefile.am: installing '../../depcomp'
~/futurerestore
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking whether we need platform-specific build settings... checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for style of include used by make... GNU
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking dependency style of gcc... gcc3
checking for library containing pthread_create... -lpthread
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libplist... yes
checking for libzip... yes
checking for libimobiledevice... yes
checking for libirecovery... yes
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking whether gcc understands -c and -o together... (cached) yes
checking dependency style of gcc... (cached) gcc3
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking dependency style of g++... gcc3
checking for pkg-config... (cached) /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
Package libipatcher was not found in the pkg-config search path.
Perhaps you should add the directory containing `libipatcher.pc'
to the PKG_CONFIG_PATH environment variable
No package 'libipatcher' found
checking whether to enable WIN32 specific flags... no
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/x86_64-linux-gnu-ld
checking if the linker (/usr/bin/x86_64-linux-gnu-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/x86_64-linux-gnu-ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... 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... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
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... yes
checking whether to build static libraries... yes
checking how to run the C++ preprocessor... g++ -E
checking for ld used by g++... /usr/bin/x86_64-linux-gnu-ld -m elf_x86_64
checking if the linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) is GNU ld... yes
checking whether the g++ linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking for g++ option to produce PIC... -fPIC -DPIC
checking if g++ PIC flag -fPIC -DPIC works... yes
checking if g++ static flag -static works... yes
checking if g++ supports -c -o file.o... yes
checking if g++ supports -c -o file.o... (cached) yes
checking whether the g++ linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking dynamic linker characteristics... (cached) GNU/Linux ld.so
checking how to hardcode library paths into programs... immediate
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating futurerestore/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
=== configuring in external/idevicerestore (/root/futurerestore/external/idevicerestore)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local'  --cache-file=/dev/null --srcdir=.
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether make supports nested variables... (cached) yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/x86_64-linux-gnu-ld
checking if the linker (/usr/bin/x86_64-linux-gnu-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/x86_64-linux-gnu-ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... 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... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
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... yes
checking whether to build static libraries... yes
checking for library containing pthread_create... -lpthread
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libirecovery... yes
checking for libimobiledevice... yes
checking for libplist... yes
checking for libzip... yes
checking for libcurl... yes
checking for openssl... yes
checking for strsep... yes
checking for strcspn... yes
checking whether to enable WIN32 specific flags... no
checking for special C compiler options needed for large files... no
checking for _FILE_OFFSET_BITS value needed for large files... no
checking for native large file support... yes
checking for _LARGEFILE_SOURCE value needed for large files... no
checking whether make supports nested variables... (cached) yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating src/Makefile
config.status: creating docs/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

Configuration for idevicerestore 1.0:
-------------------------------------------

  Install prefix: .........: /usr/local

  Now type 'make' to build idevicerestore 1.0,
  and then 'make install' for installation.

=== configuring in external/img4tool (/root/futurerestore/external/img4tool)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local'  --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/x86_64-linux-gnu-ld
checking if the linker (/usr/bin/x86_64-linux-gnu-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/x86_64-linux-gnu-ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... 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... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
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... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libplist... yes
checking for libcrypto... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) 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 error_at_line... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for memmove... yes
checking for memset... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating img4tool/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands
=== configuring in external/tsschecker (/root/futurerestore/external/tsschecker)
configure: running /bin/bash ./configure --disable-option-checking '--prefix=/usr/local'  --cache-file=/dev/null --srcdir=.
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... no
checking for mawk... mawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables... 
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 gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking whether gcc understands -c and -o together... yes
checking for style of include used by make... GNU
checking dependency style of gcc... gcc3
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking how to print strings... printf
checking for a sed that does not truncate output... /bin/sed
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for fgrep... /bin/grep -F
checking for ld used by gcc... /usr/bin/x86_64-linux-gnu-ld
checking if the linker (/usr/bin/x86_64-linux-gnu-ld) is GNU ld... yes
checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B
checking the name lister (/usr/bin/nm -B) interface... BSD nm
checking whether ln -s works... yes
checking the maximum length of command line arguments... 1572864
checking how to convert x86_64-pc-linux-gnu file names to x86_64-pc-linux-gnu format... func_convert_file_noop
checking how to convert x86_64-pc-linux-gnu file names to toolchain format... func_convert_file_noop
checking for /usr/bin/x86_64-linux-gnu-ld option to reload object files... -r
checking for objdump... objdump
checking how to recognize dependent libraries... pass_all
checking for dlltool... no
checking how to associate runtime and link libraries... printf %s\n
checking for ar... ar
checking for archiver @FILE support... @
checking for strip... strip
checking for ranlib... ranlib
checking command to parse /usr/bin/nm -B output from gcc object... ok
checking for sysroot... no
checking for a working dd... /bin/dd
checking how to truncate binary pipes... /bin/dd bs=4096 count=1
checking for mt... mt
checking if mt is a manifest tool... no
checking how to run the C preprocessor... 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... yes
checking for objdir... .libs
checking if gcc supports -fno-rtti -fno-exceptions... no
checking for gcc option to produce PIC... -fPIC -DPIC
checking if gcc PIC flag -fPIC -DPIC works... yes
checking if gcc static flag -static works... yes
checking if gcc supports -c -o file.o... yes
checking if gcc supports -c -o file.o... (cached) yes
checking whether the gcc linker (/usr/bin/x86_64-linux-gnu-ld -m elf_x86_64) supports shared libraries... yes
checking whether -lc should be explicitly linked in... no
checking dynamic linker characteristics... GNU/Linux ld.so
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... yes
checking whether to build static libraries... yes
checking for pkg-config... /usr/bin/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libplist... yes
checking for libcurl... yes
checking for libfragmentzip... yes
checking for libcrypto... yes
checking for libirecovery... yes
checking stddef.h usability... yes
checking stddef.h presence... yes
checking for stddef.h... yes
checking for stdlib.h... (cached) yes
checking for string.h... (cached) yes
checking for unistd.h... (cached) yes
checking for int32_t... yes
checking for int64_t... yes
checking for size_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for uint8_t... yes
checking for error_at_line... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible malloc... yes
checking for stdlib.h... (cached) yes
checking for GNU libc compatible realloc... yes
checking for memset... yes
checking for mkdir... yes
checking for pow... no
checking for strchr... yes
checking for strdup... yes
checking for strstr... yes
checking that generated files are newer than configure... done
configure: creating ./config.status
config.status: creating Makefile
config.status: creating tsschecker/Makefile
config.status: creating config.h
config.status: config.h is unchanged
config.status: executing depfiles commands
config.status: executing libtool commands

Configuration for futurerestore 1.0:
-------------------------------------------

  Install prefix ..........: /usr/local
  With libipatcher ........: no
  Now type 'make' to build futurerestore 1.0,
  and then 'make install' for installation.

But make fails

root@lubuntu:~/futurerestore# make
make  all-recursive
make[1]: Entering directory '/root/futurerestore'
Making all in external/idevicerestore
make[2]: Entering directory '/root/futurerestore/external/idevicerestore'
make  all-recursive
make[3]: Entering directory '/root/futurerestore/external/idevicerestore'
Making all in src
make[4]: Entering directory '/root/futurerestore/external/idevicerestore/src'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/root/futurerestore/external/idevicerestore/src'
Making all in docs
make[4]: Entering directory '/root/futurerestore/external/idevicerestore/docs'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/root/futurerestore/external/idevicerestore/docs'
make[4]: Entering directory '/root/futurerestore/external/idevicerestore'
make[4]: Leaving directory '/root/futurerestore/external/idevicerestore'
make[3]: Leaving directory '/root/futurerestore/external/idevicerestore'
make[2]: Leaving directory '/root/futurerestore/external/idevicerestore'
Making all in external/img4tool
make[2]: Entering directory '/root/futurerestore/external/img4tool'
make  all-recursive
make[3]: Entering directory '/root/futurerestore/external/img4tool'
Making all in img4tool
make[4]: Entering directory '/root/futurerestore/external/img4tool/img4tool'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..       -DIMG4TOOL_NOMAIN -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -MT libimg4tool_la-img4tool.lo -MD -MP -MF .deps/libimg4tool_la-img4tool.Tpo -c -o libimg4tool_la-img4tool.lo `test -f 'img4tool.c' || echo './'`img4tool.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DIMG4TOOL_NOMAIN -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -MT libimg4tool_la-img4tool.lo -MD -MP -MF .deps/libimg4tool_la-img4tool.Tpo -c img4tool.c  -fPIC -DPIC -o .libs/libimg4tool_la-img4tool.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DIMG4TOOL_NOMAIN -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -MT libimg4tool_la-img4tool.lo -MD -MP -MF .deps/libimg4tool_la-img4tool.Tpo -c img4tool.c -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=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..       -DIMG4TOOL_NOMAIN -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -MT libimg4tool_la-img4.lo -MD -MP -MF .deps/libimg4tool_la-img4.Tpo -c -o libimg4tool_la-img4.lo `test -f 'img4.c' || echo './'`img4.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DIMG4TOOL_NOMAIN -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -MT libimg4tool_la-img4.lo -MD -MP -MF .deps/libimg4tool_la-img4.Tpo -c img4.c  -fPIC -DPIC -o .libs/libimg4tool_la-img4.o
img4.c:17:2: warning: #warning TODO adjust this for __APPLE__ [-Wcpp]
 #warning TODO adjust this for __APPLE__
  ^~~~~~~
img4.c: In function ‘asn1ElementAtIndexWithCounter’:
img4.c:82:2: warning: #warning TODO add lenght and range checks [-Wcpp]
 #warning TODO add lenght and range checks
  ^~~~~~~
img4.c: In function ‘asn1PrintValue’:
img4.c:665:47: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
         if (sizeof(uint64_t) == 8) printf("%llu",pnum);
                                            ~~~^
                                            %lu
img4.c: At top level:
img4.c:925:90: warning: anonymous struct declared inside parameter list will not be visible outside of this definition or declaration
 int im4m_buildidentity_check_cb(char elemNameStr[4], char *dgstData, size_t dgstDataLen, struct {plist_t rt; plist_t identities;} *state){
                                                                                          ^~~~~~
img4.c: In function ‘verifyIMG4’:
img4.c:1135:0: warning: "reterror" redefined
 #define reterror(code,a ...){error(a);err=code;goto error;}

img4.c:1076:0: note: this is the location of the previous definition
 #define reterror(a ...){error(a);ret=NULL;goto error;}

img4.c:1162:2: warning: #warning TODO verify certificate chain [-Wcpp]
 #warning TODO verify certificate chain
  ^~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -DIMG4TOOL_NOMAIN -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -MT libimg4tool_la-img4.lo -MD -MP -MF .deps/libimg4tool_la-img4.Tpo -c img4.c -o libimg4tool_la-img4.o >/dev/null 2>&1
mv -f .deps/libimg4tool_la-img4.Tpo .deps/libimg4tool_la-img4.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc    -DIMG4TOOL_NOMAIN -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -lplist  -lcrypto  -o libimg4tool.la  libimg4tool_la-img4tool.lo libimg4tool_la-img4.lo -lplist  -lcrypto 
libtool: link: rm -fr  .libs/libimg4tool.a .libs/libimg4tool.la
libtool: link: ar cru .libs/libimg4tool.a .libs/libimg4tool_la-img4tool.o .libs/libimg4tool_la-img4.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" )
make[4]: Leaving directory '/root/futurerestore/external/img4tool/img4tool'
make[4]: Entering directory '/root/futurerestore/external/img4tool'
make[4]: Leaving directory '/root/futurerestore/external/img4tool'
make[3]: Leaving directory '/root/futurerestore/external/img4tool'
make[2]: Leaving directory '/root/futurerestore/external/img4tool'
Making all in external/tsschecker
make[2]: Entering directory '/root/futurerestore/external/tsschecker'
make  all-recursive
make[3]: Entering directory '/root/futurerestore/external/tsschecker'
Making all in tsschecker
make[4]: Entering directory '/root/futurerestore/external/tsschecker/tsschecker'
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..     -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu  -I/usr/local/include -I/usr/include/libusb-1.0  -I../external/jssy/jssy/ -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -MT libtsschecker_la-tsschecker.lo -MD -MP -MF .deps/libtsschecker_la-tsschecker.Tpo -c -o libtsschecker_la-tsschecker.lo `test -f 'tsschecker.c' || echo './'`tsschecker.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/usr/include/libusb-1.0 -I../external/jssy/jssy/ -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -MT libtsschecker_la-tsschecker.lo -MD -MP -MF .deps/libtsschecker_la-tsschecker.Tpo -c tsschecker.c  -fPIC -DPIC -o .libs/libtsschecker_la-tsschecker.o
tsschecker.c:32:2: warning: #warning TODO verify these values are actually correct for all devices (iPhone7) [-Wcpp]
 #warning TODO verify these values are actually correct for all devices (iPhone7)
  ^~~~~~~
tsschecker.c: In function ‘getBoardconfigFromModel’:
tsschecker.c:212:13: warning: implicit declaration of function ‘strcasecmp’; did you mean ‘strncmp’? [-Wimplicit-function-declaration]
         if (strcasecmp(model, table->product_type) == 0){
             ^~~~~~~~~~
             strncmp
tsschecker.c: In function ‘tss_populate_random’:
tsschecker.c:619:9: warning: implicit declaration of function ‘strncasecmp’; did you mean ‘strncmp’? [-Wimplicit-function-declaration]
     if (strncasecmp(devVals->deviceModel, "iPhone9,", strlen("iPhone9,")) == 0 ||
         ^~~~~~~~~~~
         strncmp
In file included from tss.h:32:0,
                 from tsschecker.h:19,
                 from tsschecker.c:15:
tsschecker.c:692:11: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
     debug("[TSSR] ecid=%llu\n",devVals->ecid);
           ^                    ~~~~~~~~~~
all_tsschecker.h:17:55: note: in definition of macro ‘debug’
 #define debug(a ...) if (idevicerestore_debug) printf(a)
                                                       ^
tsschecker.c: At top level:
tsschecker.c:1051:38: warning: missing terminating ' character
 #warning print devices function doesn't actually check if devices are sorted. it assues they are sorted in json
                                      ^
tsschecker.c:1051:2: warning: #warning print devices function doesn't actually check if devices are sorted. it assues they are sorted in json [-Wcpp]
 #warning print devices function doesn't actually check if devices are sorted. it assues they are sorted in json
  ^~~~~~~
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/usr/include/libusb-1.0 -I../external/jssy/jssy/ -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -MT libtsschecker_la-tsschecker.lo -MD -MP -MF .deps/libtsschecker_la-tsschecker.Tpo -c tsschecker.c -o libtsschecker_la-tsschecker.o >/dev/null 2>&1
mv -f .deps/libtsschecker_la-tsschecker.Tpo .deps/libtsschecker_la-tsschecker.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..     -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu  -I/usr/local/include -I/usr/include/libusb-1.0  -I../external/jssy/jssy/ -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -MT libtsschecker_la-tss.lo -MD -MP -MF .deps/libtsschecker_la-tss.Tpo -c -o libtsschecker_la-tss.lo `test -f 'tss.c' || echo './'`tss.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/usr/include/libusb-1.0 -I../external/jssy/jssy/ -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -MT libtsschecker_la-tss.lo -MD -MP -MF .deps/libtsschecker_la-tss.Tpo -c tss.c  -fPIC -DPIC -o .libs/libtsschecker_la-tss.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/usr/include/libusb-1.0 -I../external/jssy/jssy/ -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -MT libtsschecker_la-tss.lo -MD -MP -MF .deps/libtsschecker_la-tss.Tpo -c tss.c -o libtsschecker_la-tss.o >/dev/null 2>&1
mv -f .deps/libtsschecker_la-tss.Tpo .deps/libtsschecker_la-tss.Plo
/bin/bash ../libtool  --tag=CC   --mode=compile gcc -DHAVE_CONFIG_H -I. -I..     -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu  -I/usr/local/include -I/usr/include/libusb-1.0  -I../external/jssy/jssy/ -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -MT libtsschecker_la-download.lo -MD -MP -MF .deps/libtsschecker_la-download.Tpo -c -o libtsschecker_la-download.lo `test -f 'download.c' || echo './'`download.c
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/usr/include/libusb-1.0 -I../external/jssy/jssy/ -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -MT libtsschecker_la-download.lo -MD -MP -MF .deps/libtsschecker_la-download.Tpo -c download.c  -fPIC -DPIC -o .libs/libtsschecker_la-download.o
libtool: compile:  gcc -DHAVE_CONFIG_H -I. -I.. -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu -I/usr/local/include -I/usr/include/libusb-1.0 -I../external/jssy/jssy/ -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -MT libtsschecker_la-download.lo -MD -MP -MF .deps/libtsschecker_la-download.Tpo -c download.c -o libtsschecker_la-download.o >/dev/null 2>&1
mv -f .deps/libtsschecker_la-download.Tpo .deps/libtsschecker_la-download.Plo
/bin/bash ../libtool  --tag=CC   --mode=link gcc  -I/usr/local/include -I/usr/include/x86_64-linux-gnu -I/usr/include/x86_64-linux-gnu  -I/usr/local/include -I/usr/include/libusb-1.0  -I../external/jssy/jssy/ -DIDEVICERESTORE_NOMAIN=1 -DIMG4TOOL_NOMAIN=1 -DTSSCHECKER_NOMAIN=1 -std=c11 -lplist -L/usr/local/lib -lfragmentzip -lz -lcurl -lcurl -lcrypto -L/usr/local/lib -lirecovery -lm  -o libtsschecker.la  libtsschecker_la-tsschecker.lo libtsschecker_la-tss.lo libtsschecker_la-download.lo -lplist -L/usr/local/lib -lfragmentzip -lz -lcurl -lcurl -lcrypto -L/usr/local/lib -lirecovery -lm libjssy.a 

*** Warning: Linking the shared library libtsschecker.la against the
*** static library libjssy.a is not portable!
libtool: link: rm -fr  .libs/libtsschecker.a .libs/libtsschecker.la
libtool: link: ar cru .libs/libtsschecker.a .libs/libtsschecker_la-tsschecker.o .libs/libtsschecker_la-tss.o .libs/libtsschecker_la-download.o 
ar: `u' modifier ignored since `D' is the default (see `U')
libtool: link: ranlib .libs/libtsschecker.a
libtool: link: ( cd ".libs" && rm -f "libtsschecker.la" && ln -s "../libtsschecker.la" "libtsschecker.la" )
make[4]: Leaving directory '/root/futurerestore/external/tsschecker/tsschecker'
make[4]: Entering directory '/root/futurerestore/external/tsschecker'
make[4]: Leaving directory '/root/futurerestore/external/tsschecker'
make[3]: Leaving directory '/root/futurerestore/external/tsschecker'
make[2]: Leaving directory '/root/futurerestore/external/tsschecker'
Making all in futurerestore
make[2]: Entering directory '/root/futurerestore/futurerestore'
g++ -DHAVE_CONFIG_H -I. -I..     -I/usr/lib/x86_64-linux-gnu/libzip/include -I/usr/include/p11-kit-1  -I/usr/local/include -I/usr/include/libusb-1.0 -I../external/tsschecker/external/jssy/jssy -I../external/tsschecker/tsschecker -I../external/img4tool/img4tool -I../external/idevicerestore/src -std=c++11   -g -O2 -MT futurerestore-futurerestore.o -MD -MP -MF .deps/futurerestore-futurerestore.Tpo -c -o futurerestore-futurerestore.o `test -f 'futurerestore.cpp' || echo './'`futurerestore.cpp
futurerestore.cpp: In member function ‘int futurerestore::doRestore(const char*)’:
futurerestore.cpp:660:101: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
         printf("APTicket is valid for %16llu (dec) but device is %16llu (dec)\n",im4mEcid,deviceEcid);
                                                                                                     ^
futurerestore.cpp:660:101: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
futurerestore.cpp:676:105: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 2 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
             printf("APTicket is valid for %16llu (dec) but device is %16llu (dec)\n",im4mEcid,deviceEcid);
                                                                                                         ^
futurerestore.cpp:676:105: warning: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t {aka long unsigned int}’ [-Wformat=]
mv -f .deps/futurerestore-futurerestore.Tpo .deps/futurerestore-futurerestore.Po
g++ -DHAVE_CONFIG_H -I. -I..     -I/usr/lib/x86_64-linux-gnu/libzip/include -I/usr/include/p11-kit-1  -I/usr/local/include -I/usr/include/libusb-1.0 -I../external/tsschecker/external/jssy/jssy -I../external/tsschecker/tsschecker -I../external/img4tool/img4tool -I../external/idevicerestore/src -std=c++11   -g -O2 -MT futurerestore-main.o -MD -MP -MF .deps/futurerestore-main.Tpo -c -o futurerestore-main.o `test -f 'main.cpp' || echo './'`main.cpp
main.cpp: In function ‘int main(int, const char**)’:
main.cpp:292:31: error: ‘struct t_devicevals’ has no member named ‘bbsnumSize’
                 if (!(devVals.bbsnumSize = client.getBBSNumSizeFromDevice())) {
                               ^~~~~~~~~~
Makefile:480: recipe for target 'futurerestore-main.o' failed
make[2]: *** [futurerestore-main.o] Error 1
make[2]: Leaving directory '/root/futurerestore/futurerestore'
Makefile:420: recipe for target 'all-recursive' failed
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory '/root/futurerestore'
Makefile:352: recipe for target 'all' failed
make: *** [all] Error 2
root@lubuntu:~/futurerestore# 

Help

ThatMarko commented 6 years ago

I successfully used futurerestore on windows to restore my iPhone 6 from 10.3.1 to 11.3.1. But still won't compile on Linux. Help not urgent.