Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 787962

Summary: app-pda/libimobiledevice-1.3.0-r1 fails to compile
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: bugs, sam
Priority: Normal Keywords: PATCH
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2021-05-03 18:56:14 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: app-pda/libimobiledevice-1.3.0-r1 fails to compile.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
If you think this is a GCC-11 related issue, please block bug 732706.
Comment 1 Agostino Sarubbo gentoo-dev 2021-05-03 18:56:16 UTC
Created attachment 705801 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2021-05-03 18:56:17 UTC
Possible context of error(s):

/usr/lib/gcc/x86_64-pc-linux-gnu/11.1.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../common/.libs/libinternalcommon.a(userpref.o): undefined reference to symbol 'X509_add_ext@@OPENSSL_1_1_0'
collect2: error: ld returned 1 exit status
Comment 3 Frederik Pfautsch 2021-05-03 20:02:53 UTC
This upstream commit fixes the problem and builds successfully on my machine (as user patch): https://github.com/libimobiledevice/libimobiledevice/commit/4b2f17e8cce8fa078aa55f5da5f726c20eac3e2e
Comment 4 CFuga 2021-05-03 20:10:31 UTC
The compilation also fails with USE="gnutls"

/usr/lib/gcc/x86_64-pc-linux-gnu/10.2.0/../../../../x86_64-pc-linux-gnu/bin/ld: ../common/.libs/libinternalcommon.a(userpref.o): undefined reference to symbol 'gnutls_x509_crt_set_key_usage@@GNUTLS_3_4'
collect2: error: ld returned 1 exit status

I confirm that the referred patch in the comment 3 fixes this issue, for linking with both OpenSSL and GnuTLS.
Comment 5 Larry the Git Cow gentoo-dev 2021-05-03 21:50:32 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=351b3e27c158d85dc35b3e5438a5d223018ef126

commit 351b3e27c158d85dc35b3e5438a5d223018ef126
Author:     Georgy Yakovlev <gyakovlev@gentoo.org>
AuthorDate: 2021-05-03 21:49:45 +0000
Commit:     Georgy Yakovlev <gyakovlev@gentoo.org>
CommitDate: 2021-05-03 21:50:18 +0000

    app-pda/libimobiledevice: fix build
    
    Closes: https://bugs.gentoo.org/787962
    Package-Manager: Portage-3.0.18, Repoman-3.0.3
    Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>

 .../libimobiledevice-1.3.0-missing_libflags.patch  | 31 ++++++++++++++++++++++
 .../libimobiledevice-1.3.0-r1.ebuild               |  5 +++-
 2 files changed, 35 insertions(+), 1 deletion(-)