LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   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 (https://www.linuxquestions.org/questions/linux-software-2/cant-someone-help-me-iam-trying-to-install-idevicerestore-and-when-i-do-the-sudo-make-i-get-this-error-can-someone-help-me-please-4175660675/)

shawn7226791 09-10-2019 12:48 PM

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

rtmistler 09-10-2019 12:54 PM

I do not believe you need to use sudo for the make, just the install part of it.

As far as the problem:
Code:

normal.c:31:10: fatal error: libimobiledevice/preboard.h: No such file or directory
#include <libimobiledevice/preboard.h>

Whatever package or library gives you libimobiledevice is what you need.

Perhaps there is a BUILD or README file included with this code so that you understand the pre-requisites.

For that matter, is there a configure script? And have you run it?

knudfl 09-10-2019 01:29 PM

Install libimobiledevice :
$ bzr branch lp:~timmie/libimobiledevice/libimobiledevice-github
( Debian, Ubuntu, Fedora packages are missing the header preboard.h ).

libimobiledevice depends on `libusbmuxd, libplist++´.



-

Firerat 09-10-2019 05:19 PM

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?

TB0ne 09-18-2019 07:25 AM

Quote:

Originally Posted by shawn7226791 (Post 6035427)
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.


All times are GMT -5. The time now is 02:04 AM.