idevicerestore icon indicating copy to clipboard operation
idevicerestore copied to clipboard

I need help to complile idevicerestore on ubuntu 15.04

Open yassrun opened this issue 11 years ago • 13 comments

hi everybody i'm new to linux i installed ubuntu 15.04 on virtualbox and libimobile 2.0 and all th required packages for idevicerestore and i get this error

dfu.c:243:48: warning: initialization makes pointer from integer without a cast const struct irecv_device_info device_info = irecv_get_device_info(client->dfu->client); ^ dfu.c:248:21: error: dereferencing pointer to incomplete type *cpid = device_info->cpid; ^ dfu.c: In function ‘dfu_get_ecid’: dfu.c:260:48: warning: initialization makes pointer from integer without a cast const struct irecv_device_info *device_info = irecv_get_device_info(client->dfu->client); ^ dfu.c:265:21: error: dereferencing pointer to incomplete type *ecid = device_info->ecid; ^ dfu.c: In function ‘dfu_is_image4_supported’: dfu.c:278:48: warning: initialization makes pointer from integer without a cast const struct irecv_device_info *device_info = irecv_get_device_info(client->dfu->client); ^ dfu.c:283:21: error: dereferencing pointer to incomplete type return (device_info->ibfl & IBOOT_FLAG_IMAGE4_AWARE); ^ dfu.c: In function ‘dfu_get_ap_nonce’: dfu.c:293:48: warning: initialization makes pointer from integer without a cast const struct irecv_device_info *device_info = irecv_get_device_info(client->dfu->client); ^ dfu.c:298:17: error: dereferencing pointer to incomplete type if (device_info->ap_nonce && device_info->ap_nonce_size > 0) { ^ dfu.c:298:42: error: dereferencing pointer to incomplete type if (device_info->ap_nonce && device_info->ap_nonce_size > 0) { ^ dfu.c:299:46: error: dereferencing pointer to incomplete type *nonce = (unsigned char)malloc(device_info->ap_nonce_size); ^ dfu.c:303:28: error: dereferencing pointer to incomplete type _nonce_size = device_info->ap_nonce_size; ^ dfu.c:304:29: error: dereferencing pointer to incomplete type memcpy(_nonce, device_info->ap_nonce, nonce_size); ^ dfu.c: In function ‘dfu_get_sep_nonce’: dfu.c:317:48: warning: initialization makes pointer from integer without a cast const struct irecv_device_info *device_info = irecv_get_device_info(client->dfu->client); ^ dfu.c:322:17: error: dereferencing pointer to incomplete type if (device_info->sep_nonce && device_info->sep_nonce_size > 0) { ^ dfu.c:322:43: error: dereferencing pointer to incomplete type if (device_info->sep_nonce && device_info->sep_nonce_size > 0) { ^ dfu.c:323:46: error: dereferencing pointer to incomplete type *nonce = (unsigned char)malloc(device_info->sep_nonce_size); ^ dfu.c:327:28: error: dereferencing pointer to incomplete type _nonce_size = device_info->sep_nonce_size; ^ dfu.c:328:29: error: dereferencing pointer to incomplete type memcpy(_nonce, device_info->sep_nonce, nonce_size); ^ Makefile:602: recipe for target 'idevicerestore-dfu.o' failed make[2]: ** [idevicerestore-dfu.o] Error 1 make[2]: Leaving directory '/home/malddingo/idevicerestore/src' Makefile:408: recipe for target 'all-recursive' failed make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory '/home/malddingo/idevicerestore' Makefile:339: recipe for target 'all' failed make: *** [all] Error 2

yassrun avatar Aug 31 '15 17:08 yassrun

I have the exact same problem. Waiting for a solution.

jacopo-j avatar Sep 15 '15 16:09 jacopo-j

Exact problem here aswell

Jamesmallon1 avatar Sep 15 '15 16:09 Jamesmallon1

Tried on Lubuntu, Ubuntu 15.04, Ubuntu 14.04 and ubuntu 12.04. Installed all dependencies. Will keep trying and keep you all updated

Jamesmallon1 avatar Sep 15 '15 16:09 Jamesmallon1

I can't believe I just went through all the rigmarole of downloading & compiling dependencies of dependencies of dependencies, getting to the point of typing 'make', and the software that SOMEONE ELSE WROTE IS BROKEN! F*********CK!

sethasaurus avatar Sep 18 '15 22:09 sethasaurus

Hours and hours and hours of time to get to a dead end!

sethasaurus avatar Sep 18 '15 22:09 sethasaurus

I know mate its a joke it hasn't been updated for years..

Jamesmallon1 avatar Sep 18 '15 22:09 Jamesmallon1

If anyone has a solotion please share

Jamesmallon1 avatar Sep 18 '15 22:09 Jamesmallon1

Lol well you installed it using the git repositories or the ubuntu ones ? I had the same issues but I fixed it by installing everything using the git ones. Plus the process is simple with those.

./autogen.sh make && make install

and you are good to go

DarkUD avatar Sep 19 '15 23:09 DarkUD

Do you have a working compiled version atm?

Jamesmallon1 avatar Sep 19 '15 23:09 Jamesmallon1

Yep on ubuntu 14.04

DarkUD avatar Sep 19 '15 23:09 DarkUD

James - Just a thought. Try doing make clean for everything and then recompiling.

sethasaurus avatar Sep 20 '15 15:09 sethasaurus

Did you manage to compile it ?

DarkUD avatar Sep 21 '15 09:09 DarkUD

Compiles and installs fine since ubuntu 10.04. have been doing this for years (now on 17.04). Standard linux build and install procedure for all related packages.

nikias avatar Jun 15 '17 10:06 nikias