some problems with compilation
Hi.
I have compiled, but not working binary. Ths stuck with error "Unable to find device activation node Unable to fetch activation request"
in compilation a have some warnings;
"activate.c:325: warning: passing argument 2 of ‘plist_to_xml’ from incompatible pointer type /usr/local/include/plist/plist.h:514: note: expected ‘char *’ but argument is of type ‘char *__’ activate.c:326: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘char *’ cache.c: In function ‘cache_plist’: cache.c:104: warning: passing argument 2 of ‘plist_to_xml’ from incompatible pointer type /usr/local/include/plist/plist.h:514: note: expected ‘char *’ but argument is of type ‘char *__’ cache.c: In function ‘get_from_cache’: cache.c:120: warning: passing argument 2 of ‘read_file’ from incompatible pointer type cache.c:48: note: expected ‘char *’ but argument is of type ‘char * ()[2097152]’ "
can you help me?
The same for me on Ubuntu 10.04 32bits. I think i have the good dependencies.
Here's the log :
activate.c:325: warning: passing argument 2 of ‘plist_to_xml’ from incompatible pointer type /usr/local/include/plist/plist.h:514: note: expected ‘char *’ but argument is of type ‘char *__’ activate.c:326: warning: format ‘%s’ expects type ‘char *’, but argument 2 has type ‘char *’ cache.c: In function ‘cache_plist’: cache.c:104: warning: passing argument 2 of ‘plist_to_xml’ from incompatible pointer type /usr/local/include/plist/plist.h:514: note: expected ‘char *’ but argument is of type ‘char *__’ cache.c: In function ‘get_from_cache’: cache.c:120: warning: passing argument 2 of ‘read_file’ from incompatible pointer type cache.c:48: note: expected ‘char *’ but argument is of type ‘char * ()[2097152]’ cache.c:122: warning: function returns address of local variable
Anyone can help us ?
$ make make -C src gcc -o ideviceactivate ideviceactivate.c activate.c cache.c util.c -g -pthread -I/usr/local/include -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/include/libxml2 -pthread -L/usr/local/lib -limobiledevice -lplist -lusbmuxd -lgthread-2.0 -lrt -lgnutls -ltasn1 -lxml2 -lglib-2.0 -lcurl activate.c: In function ‘do_activation’: activate.c:325: warning: passing argument 2 of ‘plist_to_xml’ from incompatible pointer type activate.c:326: warning: format ‘%s’ expects type ‘char ’, but argument 2 has type ‘char *’ cache.c: In function ‘cache’: cache.c:82: warning: call to __builtin___snprintf_chk will always overflow destination buffer cache.c: In function ‘cache_plist’: cache.c:104: warning: passing argument 2 of ‘plist_to_xml’ from incompatible pointer type cache.c: In function ‘get_from_cache’: cache.c:120: warning: passing argument 2 of ‘read_file’ from incompatible pointer type cache.c:122: warning: function returns address of local variable ld: library not found for -lrt collect2: ld returned 1 exit status make[1]: *** [all] Error 1 make: *** [all] Error 2
Same issue with Mac OS X 10.6 :/ i'm not really sure what direction to head in at this point
Use my fork. It ought to work on OS X
worked like a charm, thanks.... now if I can figure out what's going on with idevicerestore