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

Bug 14857

Summary: emerge transcode-0.6.3.20030116 fails with `ld: cannot find -lvga`
Product: Gentoo Linux Reporter: Ewan Mac Mahon <ecm103>
Component: Current packagesAssignee: Martin Holzer (RETIRED) <mholzer>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Full build output from failed emerge

Description Ewan Mac Mahon 2003-01-31 11:20:22 UTC
User-Agent:       
Build Identifier: 

I'm running gentoo 1.2 unstable, kept up to date with emege --update world 
(note not with --deep), and emerging transcode fails at the line with  
'ld: cannot find -lvga'.  
 
There is indeed no libvga.a/.so but I can't see why it would want it. 
I've tried emerging with: 
USE="-sdl -mmx -mpeg -sse -dvd -encode -X -quicktime -avi" emerge --update 
transcode 
in an attempt to narrow the problem down but exactly the same error occurs. 

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Ewan Mac Mahon 2003-01-31 11:22:09 UTC
Created attachment 7782 [details]
Full build output from failed emerge
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-01-31 15:45:16 UTC
try emerge svgalib
then try again emerge transcode
Comment 3 Jonas Berlin 2003-01-31 18:00:14 UTC
Essentially transcode does not depend on libvga (svgalib). But it might depend on a library that depends on libvga. For me, it was libdv that had been compiled a long time ago while I still had svgalib installed and in USE. Thus, when I uninstalled svgalib and removed it from USE, I unintentionally broke libdv.

To find out which of your installed "libtool" libraries depend on libvga, do:

 grep -- -lvga /usr/lib/*.la

You can then re-merge the packages owning these libraries. I re-merged libdv (0.98) and after that transcode emerged just fine.

* Suggestion: change this bug to resolved and create new bug to fix the libdv (at least 0.98) ebuild to include a conditional dependency on svgalib, perhaps something like:

  svga? (media-libs/svgalib)

.. although not having looked at libdv's configure scripts I can't say for sure..
Comment 4 Ewan Mac Mahon 2003-02-01 09:09:19 UTC
Bingo, it was indeed libdv; I can see I'm going to have to read up on libtool. 
The libdv ebuild doesn't show a dependency on svgalib, and it seems slightly 
broken with respect to xv too. I shall have a fiddle with it and submit a new 
bug when I think I understand it properly. 
 
Anyway, we can consider this one resolved / not really a bug - thanks. 
Comment 5 Martin Holzer (RETIRED) gentoo-dev 2003-02-17 15:57:13 UTC
sorry for this
Comment 6 Martin Holzer (RETIRED) gentoo-dev 2003-02-24 14:53:23 UTC
reemerging libdv/svgalib fixed this