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

ideviceinstaller.c:1399:46: error: incompatible pointer types passing status_cb #18

Closed
daqiang430 opened this issue Feb 4, 2015 · 6 comments

Comments

@daqiang430
Copy link

some argc didn't work on new version of libimobiledevice ,How to do it?

/Applications/Xcode.app/Contents/Developer/usr/bin/make all-recursive
Making all in src
CC ideviceinstaller-ideviceinstaller.o
ideviceinstaller.c:1058:49: error: incompatible pointer types passing 'void
(const char , plist_t, void *)' to parameter of type 'instproxy_status_cb_t' (aka 'void
(
)(plist_t, plist_t, void )') [-Werror,-Wincompatible-pointer-types]
instproxy_install(ipc, pkgname, client_opts, status_cb, NULL);
^~~~~~~~~
/usr/local/include/libimobiledevice/installation_proxy.h:234:132: note: passing argument to parameter
'status_cb' here
...client, const char *pkg_path, plist_t client_options, instproxy_status_cb_t status_cb, void *use...
^
ideviceinstaller.c:1065:49: error: incompatible pointer types passing 'void
(const char *, plist_t, void *)' to parameter of type 'instproxy_status_cb_t' (aka 'void
(
)(plist_t, plist_t, void )') [-Werror,-Wincompatible-pointer-types]
instproxy_upgrade(ipc, pkgname, client_opts, status_cb, NULL);
^~~~~~~~~
/usr/local/include/libimobiledevice/installation_proxy.h:262:132: note: passing argument to parameter
'status_cb' here
...client, const char *pkg_path, plist_t client_options, instproxy_status_cb_t status_cb, void *use...
^
ideviceinstaller.c:1077:41: error: incompatible pointer types passing 'void
(const char *, plist_t, void *)' to parameter of type 'instproxy_status_cb_t' (aka 'void
(
)(plist_t, plist_t, void )') [-Werror,-Wincompatible-pointer-types]
instproxy_uninstall(ipc, appid, NULL, status_cb, NULL);
^~~~~~~~~
/usr/local/include/libimobiledevice/installation_proxy.h:283:131: note: passing argument to parameter
'status_cb' here
...client, const char *appid, plist_t client_options, instproxy_status_cb_t status_cb, void *user_d...
^
ideviceinstaller.c:1253:46: error: incompatible pointer types passing 'void
(const char *, plist_t, void *)' to parameter of type 'instproxy_status_cb_t' (aka 'void
(
)(plist_t, plist_t, void )') [-Werror,-Wincompatible-pointer-types]
instproxy_archive(ipc, appid, client_opts, status_cb, NULL);
^~~~~~~~~
/usr/local/include/libimobiledevice/installation_proxy.h:325:129: note: passing argument to parameter
'status_cb' here
...client, const char *appid, plist_t client_options, instproxy_status_cb_t status_cb, void *user_d...
^
ideviceinstaller.c:1391:39: error: incompatible pointer types passing 'void
(const char *, plist_t, void *)' to parameter of type 'instproxy_status_cb_t' (aka 'void
(
)(plist_t, plist_t, void )') [-Werror,-Wincompatible-pointer-types]
instproxy_restore(ipc, appid, NULL, status_cb, NULL);
^~~~~~~~~
/usr/local/include/libimobiledevice/installation_proxy.h:349:129: note: passing argument to parameter
'status_cb' here
...client, const char *appid, plist_t client_options, instproxy_status_cb_t status_cb, void *user_d...
^
ideviceinstaller.c:1399:46: error: incompatible pointer types passing 'void
(const char *, plist_t, void *)' to parameter of type 'instproxy_status_cb_t' (aka 'void
(
)(plist_t, plist_t, void )') [-Werror,-Wincompatible-pointer-types]
instproxy_remove_archive(ipc, appid, NULL, status_cb, NULL);
^~~~~~~~~
/usr/local/include/libimobiledevice/installation_proxy.h:372:136: note: passing argument to parameter
'status_cb' here
...client, const char *appid, plist_t client_options, instproxy_status_cb_t status_cb, void *user_d...
^
6 errors generated.
make[2]: *
* [ideviceinstaller-ideviceinstaller.o] Error 1
make[1]: *** [all-recursive] Error 1
make: *** [all] Error 2

@cctile
Copy link

cctile commented Feb 23, 2015

Ran into this when building with libimobiledevice-1.2.0.

Back-rev to libimobiledevice-1.1.7 will work.

@dickeylth
Copy link

Same problems encounted with libimobiledevice-1.2.0.
Any plan to fix the compatible issue in the next version?

@FunkyM
Copy link
Member

FunkyM commented Feb 26, 2015

Just compile the "work" branch. I'll merge and fix it soon.
Of course next ideviceinstaller version will be compatible with libimobiledevice 1.2.0.
The developments version and git HEAD has no stability guarantee as it's straight git...

@0x4d4746h
Copy link

How to get the app user data? ideviceinstaller -a "com.testin.app" -o docs_only ?, it's not work for me, version 1.2.0, why?

@programmin1
Copy link

Please reopen this bug - still not working with libimobiledevice 1.2 and I see no "work" branch on Github to grab.

@FunkyM
Copy link
Member

FunkyM commented Nov 10, 2015

@0x4d4746h Your question is not related to this ticket, create separate tickets, ask on the mailing list or on IRC instead.
@programmin1 The issue is fixed in git head master and will be available in the next release. Thus no need to reopen.

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

No branches or pull requests

6 participants