Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

some problems with compilation #6

Open
hdmotion opened this issue Aug 29, 2010 · 4 comments
Open

some problems with compilation #6

hdmotion opened this issue Aug 29, 2010 · 4 comments

Comments

@hdmotion
Copy link

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?

@ludoz
Copy link

ludoz commented Aug 30, 2010

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 ?

@alact
Copy link

alact commented Sep 7, 2011

$ 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

@boxingcow
Copy link

Use my fork. It ought to work on OS X

@alact
Copy link

alact commented Sep 7, 2011

worked like a charm, thanks.... now if I can figure out what's going on with idevicerestore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants