LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This 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


Reply
  Search this Thread
Old 09-10-2019, 12:48 PM   #1
shawn7226791
LQ Newbie
 
Registered: Sep 2019
Posts: 3

Rep: Reputation: Disabled
Unhappy 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
 
Old 09-10-2019, 12:54 PM   #2
rtmistler
Moderator
 
Registered: Mar 2011
Location: MA, USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 8,010
Blog Entries: 13

Rep: Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453Reputation: 3453
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?
 
2 members found this post helpful.
Old 09-10-2019, 01:29 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2019 CentOS6.10 CentOS7.6 + 50+ other Linux OS, for test only.
Posts: 17,251

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

libimobiledevice depends on `libusbmuxd, libplist++´.



-

Last edited by knudfl; 09-10-2019 at 01:31 PM.
 
2 members found this post helpful.
Old 09-10-2019, 05:19 PM   #4
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 1,999

Rep: Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550Reputation: 550
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?
 
Old 09-18-2019, 07:25 AM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 21,824

Rep: Reputation: 5775Reputation: 5775Reputation: 5775Reputation: 5775Reputation: 5775Reputation: 5775Reputation: 5775Reputation: 5775Reputation: 5775Reputation: 5775Reputation: 5775
Quote:
Originally Posted by shawn7226791 View Post
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] sudo apt update and sudo apt-get update giving error cryptonic472 Linux - Software 7 08-24-2019 08:16 AM
Not able to run this command "sudo apt-get install libdevil-dev" even after trying "apt-get -f install" getting below error message srihariu1 Linux - Embedded & Single-board computer 2 04-26-2018 06:33 AM
LXer: The Ultimate Sudo FAQ — To Sudo Or Not To Sudo? LXer Syndicated Linux News 13 04-13-2013 01:36 AM
sudo apt-get update && sudo apt-get upgrade hallve_revera Linux - Newbie 6 01-10-2009 09:37 AM
I think someone is trying to get into my pc but i dont know can i get some help blufire Linux - Security 6 10-05-2004 08:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration