can't someone help me i'am trying to install idevicerestore and when i do the sudo make i get this error can someone help me please
Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
can't someone help me i'am trying to install idevicerestore and when i do the sudo make i get this error can someone help me please
root@shawn-fernandes:/opt/idevicerestore# sudo make
make all-recursive
make[1]: Entering directory '/opt/idevicerestore'
Making all in src
make[2]: Entering directory '/opt/idevicerestore/src'
CC idevicerestore-idevicerestore.o
CC idevicerestore-common.o
common.c: In function ‘get_temp_filename’:
common.c:446:2: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncpy(result, tmpdir, lt);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
common.c:440:7: note: length computed here
lt = strlen(tmpdir);
^~~~~~~~~~~~~~
CC idevicerestore-tss.o
CC idevicerestore-fls.o
CC idevicerestore-mbn.o
CC idevicerestore-img3.o
CC idevicerestore-img4.o
CC idevicerestore-ipsw.o
ipsw.c: In function ‘build_path’:
ipsw.c:62:2: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncpy(fullpath, path, plen);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ipsw.c:56:16: note: length computed here
size_t plen = strlen(path);
^~~~~~~~~~~~
ipsw.c:64:2: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncpy(fullpath+plen+1, file, flen);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ipsw.c:57:16: note: length computed here
size_t flen = strlen(file);
^~~~~~~~~~~~
CC idevicerestore-normal.o
normal.c:31:10: fatal error: libimobiledevice/preboard.h: No such file or directory
#include <libimobiledevice/preboard.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:648: idevicerestore-normal.o] Error 1
make[2]: Leaving directory '/opt/idevicerestore/src'
make[1]: *** [Makefile:433: all-recursive] Error 1
make[1]: Leaving directory '/opt/idevicerestore'
make: *** [Makefile:365: all] Error 2
yeah , no need for sudo when running make
no need for root to run sudo to run make
normally you would compile as a normal user, and only run "make install" as root
anyway
what distro are you on?
there might be a package available for your distro
is there a specific reason for you to compile this?
root@shawn-fernandes:/opt/idevicerestore# sudo make
make all-recursive
make[1]: Entering directory '/opt/idevicerestore'
Making all in src
make[2]: Entering directory '/opt/idevicerestore/src'
CC idevicerestore-idevicerestore.o
CC idevicerestore-common.o
common.c: In function ‘get_temp_filename’:
common.c:446:2: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncpy(result, tmpdir, lt);
^~~~~~~~~~~~~~~~~~~~~~~~~~~
common.c:440:7: note: length computed here
lt = strlen(tmpdir);
^~~~~~~~~~~~~~
CC idevicerestore-tss.o
CC idevicerestore-fls.o
CC idevicerestore-mbn.o
CC idevicerestore-img3.o
CC idevicerestore-img4.o
CC idevicerestore-ipsw.o
ipsw.c: In function ‘build_path’:
ipsw.c:62:2: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncpy(fullpath, path, plen);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ipsw.c:56:16: note: length computed here
size_t plen = strlen(path);
^~~~~~~~~~~~
ipsw.c:64:2: warning: ‘strncpy’ specified bound depends on the length of the source argument [-Wstringop-overflow=]
strncpy(fullpath+plen+1, file, flen);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
ipsw.c:57:16: note: length computed here
size_t flen = strlen(file);
^~~~~~~~~~~~
CC idevicerestore-normal.o
normal.c:31:10: fatal error: libimobiledevice/preboard.h: No such file or directory
#include <libimobiledevice/preboard.h>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
compilation terminated.
make[2]: *** [Makefile:648: idevicerestore-normal.o] Error 1
make[2]: Leaving directory '/opt/idevicerestore/src'
make[1]: *** [Makefile:433: all-recursive] Error 1
make[1]: Leaving directory '/opt/idevicerestore'
make: *** [Makefile:365: all] Error 2
As you were asked in your other thread, you need to read the "Question Guidelines", and provide details. As others have said, without knowing where you got this software, or what version/distro of Linux you're using, we can't tell you much.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.