Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 515204 - dev-libs/libusb[static-libs] should RDEPEND on libs it uses having static-libs also enabled (e.g. udev)
Summary: dev-libs/libusb[static-libs] should RDEPEND on libs it uses having static-lib...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-26 14:09 UTC by George Ryan
Modified: 2016-02-03 17:34 UTC (History)
3 users (show)

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


Attachments
output of `emerge --info '=app-emulation/qemu-2.0.0::gentoo' (emerge-info.txt,6.11 KB, text/plain)
2014-06-26 14:09 UTC, George Ryan
Details
output of `emerge -pqv '=app-emulation/qemu-2.0.0::gentoo' (emerge-pqv.txt,1.01 KB, text/plain)
2014-06-26 14:11 UTC, George Ryan
Details
build.log (build.log,831.81 KB, text/plain)
2014-06-26 14:13 UTC, George Ryan
Details
environment (environment,202.97 KB, text/plain)
2014-06-26 14:14 UTC, George Ryan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description George Ryan 2014-06-26 14:09:36 UTC
Created attachment 379724 [details]
output of `emerge --info '=app-emulation/qemu-2.0.0::gentoo'

QEMU Build failure.

usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../x86_64-pc-linux-gnu/bin/ld: cannot find -ludev
../os-posix.o: In function `os_setup_post':
os-posix.c:(.text+0x611): warning: Using 'initgroups' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
../os-posix.o: In function `os_parse_cmd_args':
os-posix.c:(.text+0x389): warning: Using 'getpwnam' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
../net/slirp.o: In function `slirp_smb':
slirp.c:(.text+0x694): warning: Using 'getpwuid' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.3/../../../../lib64/libglib-2.0.a(libglib_2_0_la-gutils.o): In function `g_get_user_database_entry':
gutils.c:(.text+0xac): warning: Using 'getpwnam_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
gutils.c:(.text+0xe3): warning: Using 'getpwuid_r' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
../libqemuutil.a(qemu-sockets.o): In function `inet_listen_opts':
qemu-sockets.c:(.text+0x524): warning: Using 'getaddrinfo' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
../net/net.o: In function `parse_host_port':
net.c:(.text+0x536): warning: Using 'gethostbyname' in statically linked applications requires at runtime the shared libraries from the glibc version used for linking
collect2: error: ld returned 1 exit status
make[1]: *** [qemu-system-x86_64] Error 1
make[1]: Leaving directory `/var/tmp/portage/app-emulation/qemu-2.0.0/work/qemu-2.0.0/softmmu-build/x86_64-softmmu'
make: *** [subdir-x86_64-softmmu] Error 2
 * ERROR: app-emulation/qemu-2.0.0::gentoo failed (compile phase):
 *   emake failed
Comment 1 George Ryan 2014-06-26 14:11:38 UTC
Created attachment 379726 [details]
output of `emerge -pqv '=app-emulation/qemu-2.0.0::gentoo'
Comment 2 George Ryan 2014-06-26 14:13:52 UTC
Created attachment 379728 [details]
build.log
Comment 3 George Ryan 2014-06-26 14:14:36 UTC
Created attachment 379730 [details]
environment
Comment 4 Nathan Shearer 2014-07-22 21:35:28 UTC
I'm attempting to setup an arm chroot with statically linked qemu, but I am running into the same problem.

I have enabled USE="static-libs" in /etc/portage/make.conf, updated my system with emerge -uDN world, and then tried to re-emerge qemu with the following use flags:

app-emulation/qemu-2.0.0  USE="aio caps fdt filecaps jpeg ncurses png seccomp static* static-softmmu* static-user* tci threads usb uuid vhost-net vnc xattr -accessibility -alsa* -bluetooth* -curl* -debug (-glusterfs) -gtk* -iscsi -opengl* -pulseaudio -python -rbd -sasl -sdl* (-selinux) -smartcard -spice -ssh -systemtap {-test} -tls -usbredir -vde -virtfs -xen -xfs" PYTHON_TARGETS="python2_7" QEMU_SOFTMMU_TARGETS="aarch64 alpha arm cris i386 lm32 m68k microblaze microblazeel mips mips64 mips64el mipsel moxie or32 ppc ppc64 ppcemb s390x sh4 sh4eb sparc sparc64 unicore32 x86_64 xtensa xtensaeb" QEMU_USER_TARGETS="aarch64 alpha arm armeb cris i386 m68k microblaze microblazeel mips mips64 mips64el mipsel mipsn32 mipsn32el or32 ppc ppc64 ppc64abi32 s390x sh4 sh4eb sparc sparc32plus sparc64 unicore32 x86_64"
Comment 5 SpanKY gentoo-dev 2014-07-29 09:46:25 UTC
not a bug in qemu as it does not use udev.  it does use libusb though, and libusb can optionally utilize udev.

libusb, when built with USE=static-libs, needs to RDEPEND on udev[static-libs].
Comment 6 Rick Farina (Zero_Chaos) gentoo-dev 2016-02-03 17:34:09 UTC
with permission from Cardoe this has been fixed in 1.0.19-r1 and 1.0.20