diff options
| -rw-r--r-- | meta-oe/recipes-connectivity/libimobiledevice/files/inline-without-definition.patch | 31 | ||||
| -rw-r--r-- | meta-oe/recipes-connectivity/libimobiledevice/libimobiledevice_1.1.4.bb | 1 |
2 files changed, 32 insertions, 0 deletions
diff --git a/meta-oe/recipes-connectivity/libimobiledevice/files/inline-without-definition.patch b/meta-oe/recipes-connectivity/libimobiledevice/files/inline-without-definition.patch new file mode 100644 index 0000000000..9a7895fd41 --- /dev/null +++ b/meta-oe/recipes-connectivity/libimobiledevice/files/inline-without-definition.patch | |||
| @@ -0,0 +1,31 @@ | |||
| 1 | Fix link error with gcc 5 toolchains | ||
| 2 | |||
| 3 | afc.c:258: error: undefined reference to 'debug_buffer' | ||
| 4 | collect2: error: ld returned 1 exit status | ||
| 5 | |||
| 6 | debug.h header was declaring things inline without providing a definition. | ||
| 7 | Files that included this header then failed to link against the corresponding | ||
| 8 | external symbol in debug.c, because the linker took the 'inline' keyword | ||
| 9 | seriously rather than ignoring it. | ||
| 10 | |||
| 11 | --- libimobiledevice-1.1.4/src/debug.h.orig 2015-10-03 16:24:08.758740386 -0700 | ||
| 12 | +++ libimobiledevice-1.1.4/src/debug.h 2015-10-03 16:24:22.706740355 -0700 | ||
| 13 | @@ -44,14 +44,14 @@ | ||
| 14 | #define debug_plist(a) | ||
| 15 | #endif | ||
| 16 | |||
| 17 | -LIBIMOBILEDEVICE_INTERNAL inline void debug_info_real(const char *func, | ||
| 18 | +LIBIMOBILEDEVICE_INTERNAL void debug_info_real(const char *func, | ||
| 19 | const char *file, | ||
| 20 | int line, | ||
| 21 | const char *format, ...); | ||
| 22 | |||
| 23 | -LIBIMOBILEDEVICE_INTERNAL inline void debug_buffer(const char *data, const int length); | ||
| 24 | -LIBIMOBILEDEVICE_INTERNAL inline void debug_buffer_to_file(const char *file, const char *data, const int length); | ||
| 25 | -LIBIMOBILEDEVICE_INTERNAL inline void debug_plist_real(const char *func, | ||
| 26 | +LIBIMOBILEDEVICE_INTERNAL void debug_buffer(const char *data, const int length); | ||
| 27 | +LIBIMOBILEDEVICE_INTERNAL void debug_buffer_to_file(const char *file, const char *data, const int length); | ||
| 28 | +LIBIMOBILEDEVICE_INTERNAL void debug_plist_real(const char *func, | ||
| 29 | const char *file, | ||
| 30 | int line, | ||
| 31 | plist_t plist); | ||
diff --git a/meta-oe/recipes-connectivity/libimobiledevice/libimobiledevice_1.1.4.bb b/meta-oe/recipes-connectivity/libimobiledevice/libimobiledevice_1.1.4.bb index 06260f75cd..32aca96fd0 100644 --- a/meta-oe/recipes-connectivity/libimobiledevice/libimobiledevice_1.1.4.bb +++ b/meta-oe/recipes-connectivity/libimobiledevice/libimobiledevice_1.1.4.bb | |||
| @@ -12,6 +12,7 @@ DEPENDS = "libplist usbmuxd libtasn1 gnutls libgcrypt" | |||
| 12 | SRC_URI = " \ | 12 | SRC_URI = " \ |
| 13 | http://www.libimobiledevice.org/downloads/libimobiledevice-${PV}.tar.bz2 \ | 13 | http://www.libimobiledevice.org/downloads/libimobiledevice-${PV}.tar.bz2 \ |
| 14 | file://configure-fix-largefile.patch \ | 14 | file://configure-fix-largefile.patch \ |
| 15 | file://inline-without-definition.patch \ | ||
| 15 | " | 16 | " |
| 16 | 17 | ||
| 17 | SRC_URI[md5sum] = "3f28cbc6a2e30d34685049c0abde5183" | 18 | SRC_URI[md5sum] = "3f28cbc6a2e30d34685049c0abde5183" |
