Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 139585 - media-video/ogmrip-0.9.0-r1 fails with -Wl,--as-needed
Summary: media-video/ogmrip-0.9.0-r1 fails with -Wl,--as-needed
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords: Inclusion
Depends on:
Blocks: as-needed
  Show dependency tree
 
Reported: 2006-07-07 11:31 UTC by joachim.fasting
Modified: 2006-09-06 11:51 UTC (History)
2 users (show)

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


Attachments
as-needed patch for ogmrip (ogmrip-0.9.0-as-needed.patch,1.14 KB, patch)
2006-07-11 16:28 UTC, Robert Marmorstein
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description joachim.fasting 2006-07-07 11:31:49 UTC
media-video/ogmrip-0.9.0-r1 fails with the following message when the as-needed LDFLAG is enabled:

/usr/lib/libdvdread.so -ldl ../libogmdvd/.libs/libogmdvd.so ../libogmspawn/.libs/libogmspawn.so ../libogmrip/.libs/libogmrip.so ../libbacon/libbacon.a
../libogmdvd/.libs/libogmdvd.so: undefined reference to `DVDOpen'
../libogmdvd/.libs/libogmdvd.so: undefined reference to `DVDUDFVolumeInfo'
../libogmdvd/.libs/libogmdvd.so: undefined reference to `UDFFindFile'
../libogmdvd/.libs/libogmdvd.so: undefined reference to `ifoClose'
../libogmdvd/.libs/libogmdvd.so: undefined reference to `DVDClose'
../libogmdvd/.libs/libogmdvd.so: undefined reference to `ifoOpen'
collect2: ld returned 1 exit status
make[2]: *** [ogmrip] Error 1
make[2]: Leaving directory `/var/tmp/portage/ogmrip-0.9.0-r1/work/ogmrip-0.9.0/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/var/tmp/portage/ogmrip-0.9.0-r1/work/ogmrip-0.9.0'
make: *** [all] Error 2
Comment 1 Robert Marmorstein 2006-07-11 16:28:58 UTC
Created attachment 91521 [details, diff]
as-needed patch for ogmrip

I've never used ogmrip before, but I managed to get everything linking by changing the order of some of the libraries and adding libdvdread as a libogmdvd_la_LIBADD in libogmdvd/Makefile.am.  

I'm pretty sure this should do the trick.

This also fixed similar linking errors for hal (and possibly enchant, which I don't use).
Comment 2 Olivier Rolland 2006-08-17 13:25:02 UTC
Can you please apply this patch ? It works for me and I've applied it in OGMRip's subversion repository since a long time and never add negative feedback.

Thanks,

Olivier
Comment 3 Steve Dibb (RETIRED) gentoo-dev 2006-09-06 11:51:00 UTC
package.masked, pending removal.  Please try newer version(s) of ogmrip, and open new bugs if necessary.