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

Bug 487918

Summary: app-emulation/qemu[static-user] - ld: cannot find -lssh2 (and others when they are not built with static-libs)
Product: Gentoo Linux Reporter: jannis <kripton>
Component: Current packagesAssignee: Doug Goldstein (RETIRED) <cardoe>
Status: RESOLVED FIXED    
Severity: normal CC: casey.webster, kripton, qemu+disabled, reuben.m
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log

Description jannis 2013-10-13 18:55:32 UTC
Trying to build a static arm userspace emulator, qemu fails to linking, missing -lssh2, -lssl -lgmp and -lcrypto.
While openssh and gmp have a static-libs USE-flag (which I guess would be necessary as dependency), openssl does not. Don't know which package provides -lcrypto

Reproducible: Always
Comment 1 jannis 2013-10-13 18:56:11 UTC
Created attachment 360818 [details]
emerge --info
Comment 2 jannis 2013-10-13 18:56:56 UTC
Created attachment 360820 [details]
build.log
Comment 3 jannis 2013-10-13 19:44:15 UTC
As expected, when openssl and gmp are built with +static-libs, the only error line appearing is:
/usr/lib/gcc/x86_64-pc-linux-gnu/4.8.1/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -lssh2

So -lcrypto is supplied by openssl
Comment 4 michael bishop 2013-11-05 05:40:03 UTC
i also got the same error with sys-libs/zlib, had to enable static-libs on that package
Comment 5 SpanKY gentoo-dev 2014-04-19 16:48:16 UTC
static-user doesn't need static zlib/etc..., but static-softmmu does.  the deps are correct, but the configure logic might need tweaking.
Comment 6 SpanKY gentoo-dev 2014-04-19 16:48:21 UTC
*** Bug 493488 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2014-04-23 02:27:25 UTC
*** Bug 508466 has been marked as a duplicate of this bug. ***
Comment 8 SpanKY gentoo-dev 2014-04-25 22:56:36 UTC
should be all set now in the tree.  if you still see issues with qemu-2.0.0+, please file a new bug with specific logs/etc...

Commit message: Fix static lib requirements for USE=static-user
http://sources.gentoo.org/app-emulation/qemu/qemu-2.0.0.ebuild?r1=1.4&r2=1.5
http://sources.gentoo.org/app-emulation/qemu/qemu-9999.ebuild?r1=1.68&r2=1.69