Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 29096 - ebuilds lacking -fPIC option thus failing prelink
Summary: ebuilds lacking -fPIC option thus failing prelink
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on: 23581
Blocks:
  Show dependency tree
 
Reported: 2003-09-19 03:40 UTC by SpanKY
Modified: 2004-01-24 12:23 UTC (History)
3 users (show)

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 SpanKY gentoo-dev 2003-09-19 03:40:10 UTC
The prelink how-to:
http://www.gentoo.org/doc/en/prelink-howto.xml
asks that we report builds outside of their list which fail due to having not
been compiled with -fPIC
These libs fail for me:
/usr/X11R6/lib/libXfont.so.1
/usr/X11R6/lib/libXp.so.6
/usr/lib/libavcodec.so
/usr/lib/libdivxdecore.so.0
/usr/lib/libdivxencore.so.0

Corresponding to:
x11-base/xfree *
media-video/ffmpeg *
media-libs/divx4linux *

I'm running Xfree 4.3.0-r2 (r3 is available but doesn't seem to have fixed
anything applicable) - the prelink how-to recommends updating past 4.2.1 to
solve an OpenGL bug - so seems there's another problem as well with xfree libs.

Reproducible: Always
Steps to Reproduce:
1. run prelink -aRv > log.txt 2>&1 with the above ebuilds emerged
2. grep for PIC in log.txt
Comment 1 Stefan Jones (RETIRED) gentoo-dev 2003-09-23 01:37:58 UTC
The fix for the xfree libraries is at bug 23581, a -fPIC option is not needed,
just some makefiles need fixing.
Comment 2 Donnie Berkholz (RETIRED) gentoo-dev 2003-09-23 02:08:38 UTC
Could you do the following and report the output for me please?
grep PATCH_VER /var/db/pkg/x11-base/xfree-4*/*.ebuild
If that patch would fix it, I added a patch with the same function at some point, I'd like to know whether you got it or not.
Comment 3 bugs 2003-09-24 08:10:20 UTC
I'd love to except my house has been without power since the hurricane due to a downed tree.
Can't check before, oh, Friday I'd optimistically estimate.
Maybe later.
Comment 4 bugs 2003-09-26 12:51:08 UTC
And power back.  Right on schedule.
One week without.  Fun, fun.
# grep PATCH_VER /var/db/pkg/x11-base/xfree-4*/*.ebuild
PATCH_VER="2.1.8"
X_PATCHES="mirror://gentoo/XFree86-${PV}-patches-${PATCH_VER}.tar.bz2
        unpack XFree86-${PV}-patches-${PATCH_VER}.tar.bz2
Comment 5 Donnie Berkholz (RETIRED) gentoo-dev 2003-09-26 13:17:26 UTC
Could you remerge xfree, being sure that you get PATCH_VER=2.1.11 or higher
(2.1.14 is current as I write this), and check again? Thanks.
Comment 6 bugs 2003-09-27 14:44:10 UTC
nautilus root # grep PIC log.txt | awk '{print $NF}' | sort | uniq
/usr/X11R6/lib/libXfont.so.1
/usr/lib/libavcodec.so
/usr/lib/libdivxdecore.so.0
/usr/lib/libdivxencore.so.0
/usr/lib/liblavfile-1.6.so.0
nautilus root # grep PIC log.txt | awk '{print $NF}' | sort | uniq | while
read f;do qpkg -f $f;done
x11-base/xfree *
media-video/ffmpeg *
media-libs/divx4linux *
media-libs/divx4linux *
media-video/mjpegtools *
nautilus root # grep PATCH_VER /var/db/pkg/x11-base/xfree-4*/*.ebuild
PATCH_VER="2.1.14"
X_PATCHES="http://dev.gentoo.org/~spyderous/xfree/patchsets/XFree86-${PV}-patches-${PATCH_VER}.tar.bz2
        unpack XFree86-${PV}-patches-${PATCH_VER}.tar.bz2
Comment 7 Duncan Coutts (RETIRED) gentoo-dev 2004-01-22 11:38:16 UTC
In addition to the libs listed in the original bug report, prelinking on my system fails for the following libs:

/lib/libcap.so.1
/usr/lib/libavformat.so
/usr/lib/libpt_linux_x86_r.so.1.5
/usr/lib/libh323_linux_x86_n.so.1.12

(I also get /usr/X11R6/lib/libXfont.so.1 and /usr/lib/libavcodec.so)

corresponding to the packages:

sys-libs/libcap
media-video/ffmpeg (again)
net-libs/openh323
dev-libs/pwlib

I'm suprised about the libcap one. I'm running the latest stable version 
of all of these packages and prelink
Comment 8 SpanKY gentoo-dev 2004-01-22 11:45:17 UTC
alright, i dont know why this is still open, xfree has been fixed

sys-libs/libcap has been fixed, you just need to update yours ... and double check you're running the latest/unstable versions of those apps before filing new bugs
Comment 9 Duncan Coutts (RETIRED) gentoo-dev 2004-01-23 08:27:05 UTC
Yep, updating sys-libs/libcap-1.10 to 1.10-r3 fixes that library.

Sorry, I didn't notice that libcap had been fixed since the fix wasn't in the latest stable version. I don't normally run testing/semi-stable version of base libraries.
Comment 10 bugs 2004-01-23 12:22:02 UTC
Ummmm. Fixed? 
Just because xfree has been handled?  
I'm still getting plenty of libraries reporting this issue.  Do you ever see this tracking bug going away completely?
Comment 11 SpanKY gentoo-dev 2004-01-24 12:02:20 UTC
well, we dont normally put new stuff directly into stable soooooooo ;)
Comment 12 SpanKY gentoo-dev 2004-01-24 12:23:59 UTC
general bugs suck, file a bug for specific packages (if they dont already have one)