Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 487918 - app-emulation/qemu[static-user] - ld: cannot find -lssh2 (and others when they are not built with static-libs)
Summary: app-emulation/qemu[static-user] - ld: cannot find -lssh2 (and others when the...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Doug Goldstein (RETIRED)
URL:
Whiteboard:
Keywords:
: 493488 508466 (view as bug list)
Depends on:
Blocks:
 
Reported: 2013-10-13 18:55 UTC by jannis
Modified: 2014-04-25 22:56 UTC (History)
4 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (einfo,24.17 KB, text/plain)
2013-10-13 18:56 UTC, jannis
Details
build.log (build.log,177.90 KB, text/x-log)
2013-10-13 18:56 UTC, jannis
Details

Note You need to log in before you can comment on or make changes to this bug.
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