Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 374559 - media-libs/libdc1394 and dev-libs/libusb:0 are incompatible
Summary: media-libs/libdc1394 and dev-libs/libusb:0 are incompatible
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Stefaan De Roeck (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 380287
  Show dependency tree
 
Reported: 2011-07-09 16:43 UTC by Dirk Tilger
Modified: 2011-09-13 18:00 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dirk Tilger 2011-07-09 16:43:02 UTC
media-libs/libdc1394 and dev-libs/libusb:0 both export a function 'usb_init' that in C namespace. Depending on which order the libraries are linked, the linker will either pick the one or the other.

When digikam-2.0.0-rc is compiled with USE=gphoto2 and media-libs/opencv with USE=ieee1394, it will crash upon connecting a USB camera as the libdc1394's 'usb_init' will be used instead of the libusb one.

Part of the problem is that libdc1394 exports its entire namespace. libdc1394's 'usb_init' is not intended for usage by consumers of the library, but only internally. I therefore suggest to set a blocker on media-libs/libdc1394-2.1.3 for dev-libs/libusb:0. I'm currently testing a patch for libdc1394's upstream.
Comment 2 Samuli Suominen (RETIRED) gentoo-dev 2011-09-13 18:00:42 UTC
*libdc1394-2.1.3-r1 (06 Sep 2011)

  06 Sep 2011; Andreas K. Huettel <dilfridge@gentoo.org>
  +files/libdc1394-usbinit.patch, +libdc1394-2.1.3-r1.ebuild:
  Non-maintainer fix: add upstream patch to avoid usb_init symbol conflict, bug
  380287