The latest libimobildevice is not stable working for iOS 5.1
-
Martin S.
- State changed from new to open
- Tag set to gnutls, ssl
- Assigned user set to Martin S.
Which is the GNUTLS version you used as this appears to be the issue?
-
viewrain
I install gnutls by fink.
i gnutls26 2.10.2-4 GNU TLS encryption library i gnutls26-shlibs 2.10.2-4 GNU TLS encryption library
-
viewrain
Any update? Have you reproduce the same issue? Thanks a lot.
-
Martin S.
Please don't use the 1.1.1 source code as iOS 5+ support is only available in git master for now.
The next release should fix this issue.Meanwhile you can try HEAD:
http://cgit.sukimashita.com/libimobiledevice.git/snapshot/libimobil... -
viewrain
Thanks for your help.
I got the source code by "git clone http://git.sukimashita.com/libimobiledevice.git"
It was successful to run "./autogen.sh --without-swig", but failed to make.
Here's the error log:$ make make all-recursive
Making all in src
CC idevice.lo CC debug.lo CC userpref.lo CC property_list_service.lo CC device_link_service.lo CC lockdown.lo CC afc.lo CC file_relay.lo CC notification_proxy.lo CC installation_proxy.lo CC sbservices.lo CC mobile_image_mounter.lo CC screenshotr.lo CC mobilesync.lo CC mobilebackup.lo CC house_arrest.lo CC mobilebackup2.lo CC restore.lo CCLD libimobiledevice.la Making all in include
make[2]: Nothing to be done for `all'.
Making all in tools
CC idevice_id-idevice_id.o In file included from idevice_id.c:4:
../include/libimobiledevice/libimobiledevice.h:33:25: error: plist/plist.h: No such file or directory In file included from idevice_id.c:5:
../include/libimobiledevice/lockdown.h:79: error: expected declaration specifiers or ‘...’ before ‘plist_t’ ../include/libimobiledevice/lockdown.h:80: error: expected declaration specifiers or ‘...’ before ‘plist_t’ ../include/libimobiledevice/lockdown.h:85: error: expected declaration specifiers or ‘...’ before ‘plist_t’ ../include/libimobiledevice/lockdown.h:86: error: expected declaration specifiers or ‘...’ before ‘plist_t’ ../include/libimobiledevice/lockdown.h:90: error: expected declaration specifiers or ‘...’ before ‘plist_t’ idevice_id.c: In function ‘main’:
idevice_id.c:31: warning: declaration of ‘devname’ shadows a global declaration
/usr/include/stdlib.h:290: warning: shadowed declaration is here make[2]: [idevice_id-idevice_id.o] Error 1
make[1]: [all-recursive] Error 1
make: *** [all] Error 2 -
Martin S.
Do you have development packages for libplist installed?
Does the same happen if you do "./configure --prefix=/usr --without-swig"?If it still fails, please try to add " $(libplist_CFLAGS)" to tools/Makefile.am on line 3:
- AM_CFLAGS = $(GLOBAL_CFLAGS) $(libgnutls_CFLAGS) $(libtasn1_CFLAGS) $(openssl_CFLAGS) $(LFS_CFLAGS) + AM_CFLAGS = $(GLOBAL_CFLAGS) $(libgnutls_CFLAGS) $(libtasn1_CFLAGS) $(openssl_CFLAGS) $(libplist_CFLAGS) $(LFS_CFLAGS)Thanks.
-
viewrain
Hi, Martin:
It works for me if I add " $(libplist_CFLAGS)" to tools/Makefile.am on line 3: - AM_CFLAGS = $(GLOBAL_CFLAGS) $(libgnutls_CFLAGS) $(libtasn1_CFLAGS) $(openssl_CFLAGS) $(LFS_CFLAGS) + AM_CFLAGS = $(GLOBAL_CFLAGS) $(libgnutls_CFLAGS) $(libtasn1_CFLAGS) $(openssl_CFLAGS) $(libplist_CFLAGS) $(LFS_CFLAGS)Thanks for your help!
But the same issues occurs on the latest ideviceinstaller. I get the source code by "git clone git://git.sukimashita.com/ideviceinstaller.git". When I ran "ideviceinstaller -l" against iOS 5.1 device, sometimes it works, sometimes no output, sometimes get: """ GnuTLS error: The request is invalid.
Could not connect to lockdownd. Exiting.
"""Would you please help to solve the problem?
Thanks.
-
Martin S.
This is very OS X specific, you appear to have the libraries scattered around the system.
The ideviceinstaller problem most likely shows that you compiled ideviceinstaller against an old libimobiledevice that is somewhere on your system.
Make sure to remove all installations, build and install a fresh libimobiledevice, then build ideviceinstaller again.
Latest libimobiledevice git master also allows to use OpenSSL instead of GNUTLS which you might try, too.
-
viewrain
Thanks.
I encountered another problem when rebuilt the ideviceinstaller from the latest sourcecode. I could run "./configure" successfully, but failed to make:$ make make all-recursive
Making all in src
CC ideviceinstaller-ideviceinstaller.o ideviceinstaller.c: In function ‘zip_f_get_contents’:
ideviceinstaller.c:166: error: ‘LLONG_MAX’ undeclared (first use in this function)
ideviceinstaller.c:166: error: (Each undeclared identifier is reported only once
ideviceinstaller.c:166: error: for each function it appears in.)
make[2]: [ideviceinstaller-ideviceinstaller.o] Error 1
make[1]: [all-recursive] Error 1
make: *** [all] Error 2 -
Martin S.
Hmm, could you try to add "#include <limits.h>" at the top (line 36) of src/ideviceinstaller.c?
-
viewrain
Thanks, Martin. I've added "#include <limits.h>" at the top (line 36) of src/ideviceinstaller.c. And it works for me now~~
-
Martin S.
- State changed from open to resolved
Thanks for testing. Pushed changes to master repositiories.
Please Sign in or create a free account to add a new ticket.
With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.