Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89578 - prelink: /usr/bin/mencoder: Cannot prelink against non-PIC shared library /usr/lib/libdivxencore.so.0
Summary: prelink: /usr/bin/mencoder: Cannot prelink against non-PIC shared library /us...
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-18 13:42 UTC by Alejandro Diaz Caro
Modified: 2005-04-18 16:01 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 Alejandro Diaz Caro 2005-04-18 13:42:32 UTC
Prelink fails on the abovementioned library. According to the Gentoo Prelink FAQ, this error occurs when the library was compiled without the -fPIC flag (and without the pic USE flag). So, I tried to find out which package the library belonged to:

# ls -l /usr/lib/libdivxencore.so.0
lrwxrwxrwx  1 root root 25 Apr 16 11:40 /usr/lib/libdivxencore.so.0 -> /usr/lib/libdivxencore.so

# qpkg -v -f /usr/lib/libdivxencore.so
media-libs/divx4linux-20030428-r1 *

# emerge -pv divx4linux
These are the packages that I would merge, in order:
Calculating dependencies ...done!
[ebuild   R   ] media-libs/divx4linux-20030428-r1  405 kB
Total size of downloads: 405 kB

This package don't have flags! (pic is in my USE flags, but this package don't use this flag)

Reproducible: Always
Steps to Reproduce:
1.prelink -amR

Actual Results:  
Prelink finishs successfully, but it cannot prelink any binaries linked to this 
library. 

Expected Results:  
Prelinked these binaries. 

Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.3.5-20050130, 
glibc-2.3.4.20041102-r1, 2.6.9-gentoo-r9 i686) 
================================================================= 
System uname: 2.6.9-gentoo-r9 i686 AMD Duron(tm) 
Gentoo Base System version 1.4.16 
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr 18 2005, 
00:25:38)] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.3.4-r1 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4 
sys-devel/binutils:  2.15.92.0.2-r7 
sys-devel/libtool:   1.5.14 
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS="x86" 
AUTOCLEAN="yes" 
CFLAGS="-O2 -march=athlon -pipe -fomit-frame-pointer" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O2 -march=athlon -pipe -fomit-frame-pointer" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks fixpackages sandbox sfperms 
strict" 
GENTOO_MIRRORS="http://distfiles.gentoo.org 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo" 
LINGUAS="es" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.gentoo.org/gentoo-portage" 
USE="3dnow 3dnowex X acpi alsa arts audiofile avi bash-completion bitmap-fonts 
caps cdparanoia cdr chm crypt cscope cups curl dga directfb divx4linux dvd 
dvdread emboss encode ethereal fam fbcon fdftk fftw flac flash foomaticdb 
fortran gd gif gimpprint ginac gphoto2 gpm icq imagemagick imap imlib jabber 
jack java jpeg jpeg2k kde kdeenablefinal lcms libmatroska live lm_sensors mad 
maildir mbox memlimit mikmod mmx motif mozilla mp3 mpeg msn ncurses network nls 
nocardbus offensive ogg oggvorbis opengl oscar oss pam pdflib perl pic 
plotutils png qt quicktime readline real sdl slang snmp speex spell ssl svg 
svga szip tetex theora tiff truetype truetype-fonts type1-fonts unicode usb 
vorbis wmf x86 xine xmms xv xvid yahoo zlib video_cards_savage linguas_es" 
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS
Comment 1 Diego Elio Pettenò (RETIRED) gentoo-dev 2005-04-18 16:01:46 UTC
divx4linux is a binary package, we can't do anything with it.
If you want a completely prelinked system you need to remove divx4linux package and useflag.