libimobiledevice / libideviceactivation

A library to handle the activation process of iOS devices
https://libimobiledevice.org
GNU Lesser General Public License v2.1
276 stars 129 forks source link

Error when runing make ubuntu #36

Closed lootkips closed 5 years ago

lootkips commented 5 years ago

When running make on current ubuntu build getting the following error

Any suggestions? Kinda a linux noob and got libimobiledevice working to my suprise now just need to get the device activation working. Using a clone from GIT.

make make all-recursive make[1]: Entering directory '/home/ki/Desktop/libideviceactivation' Making all in src make[2]: Entering directory '/home/ki/Desktop/libideviceactivation/src' CC activation.lo CCLD libideviceactivation.la ar: u' modifier ignored sinceD' is the default (see `U') make[2]: Leaving directory '/home/ki/Desktop/libideviceactivation/src' Making all in include make[2]: Entering directory '/home/ki/Desktop/libideviceactivation/include' make[2]: Nothing to be done for 'all'. make[2]: Leaving directory '/home/ki/Desktop/libideviceactivation/include' Making all in tools make[2]: Entering directory '/home/ki/Desktop/libideviceactivation/tools' CC ideviceactivation-ideviceactivation.o ideviceactivation.c: In function ‘main’: ideviceactivation.c:371:42: error: too many arguments to function ‘mobileactivation_activate_with_session’ if (MOBILEACTIVATION_E_SUCCESS != mobileactivation_activate_with_session(ma, record, headers)) { ^~~~~~~~~~ In file included from ideviceactivation.c:36:0: /usr/include/libimobiledevice/mobileactivation.h:176:26: note: declared here mobileactivation_error_t mobileactivation_activate_with_session(mobileactivation_client_t client, plist_t activation_record); ^~~~~~~~~~ ideviceactivation.c:452:9: warning: ignoring return value of ‘scanf’, declared with attribute warn_unused_result [-Wunused-result] scanf("%1023s", input); ^~~~~~ Makefile:449: recipe for target 'ideviceactivation-ideviceactivation.o' failed make[2]: [ideviceactivation-ideviceactivation.o] Error 1 make[2]: Leaving directory '/home/ki/Desktop/libideviceactivation/tools' Makefile:424: recipe for target 'all-recursive' failed make[1]: [all-recursive] Error 1 make[1]: Leaving directory '/home/ki/Desktop/libideviceactivation' Makefile:356: recipe for target 'all' failed make: *** [all] Error 2

siyamkumar commented 5 years ago

I'm getting same error too

Blefish commented 5 years ago

Seems like the headers you are using are from an older build.

gnanet commented 5 years ago

Seems like the headers you are using are from an older build.

Great to know, but how to fix that, or how to work around?

gnanet commented 5 years ago

To answer my own question: apt-get build-dep libimobiledevice apt-get source libimobiledevice apt-get install doxygen

Then download the 3 source files from the next Ubuntu Release, extract the tar.bz2 and the tar.xz into 1 folder dpkg-buildpackage -b And then install the built packages

after that the required header files are present, and the build of this repo suceeds.

nikias commented 5 years ago

You need to make sure to always use the latest libraries (libimobiledevice, etc.).