Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 23581 - libXau.so not being made with x11-base/xfree-4.3.0-r3
Summary: libXau.so not being made with x11-base/xfree-4.3.0-r3
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 29096
  Show dependency tree
 
Reported: 2003-06-27 04:49 UTC by Stefan Jones (RETIRED)
Modified: 2003-10-18 01:54 UTC (History)
2 users (show)

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


Attachments
fix for xc/export/lib directory not being recreated (x.patch,224 bytes, patch)
2003-07-30 15:58 UTC, splite
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Jones (RETIRED) gentoo-dev 2003-06-27 04:49:26 UTC
Snip from compile log:

rm -f libXau.so.6.0~
+ cd .
+ gcc -m32 -o ./libXau.so.6.0~ -shared -Wl,-soname,libXau.so.6 AuDispose.o
AuFileName.o AuGetAddr.o AuGetBest.o AuLock.o AuRead.o AuUnlock.o AuWrite.o -lc
+ rm -f libXau.so.6
+ ln -s libXau.so.6.0 libXau.so.6
+ rm -f ../../exports/lib/libXau.so.6
+ cd ../../exports/lib
/bin/sh: line 1: cd: ../../exports/lib: No such file or directory
make[4]: *** [libXau.so.6.0] Error 1
make[4]: Target `all' not remade because of errors.
rm -f libXau.a
(cd unshared && ar clq ../libXau.a AuDispose.o AuFileName.o AuGetAddr.o
AuGetBest.o AuLock.o    AuRead.o AuUnlock.o AuWrite.o  )
ranlib libXau.a
+ mkdir -p ../../exports/lib
rm -f ../../exports/lib/libXau.a
cd ../../exports/lib && ln -s ../../lib/Xau/libXau.a

As you can see there is a bug in the makefiles which makes the xc/exports/lib
dir not being made. This causes the libXau.so lib not to be installed. 
libXp.so and libXfo-something then link to libXau.a which was not compiled with
-fPIC (libXau.so is) and thus prelink complaines about -fPIC.

Fix: 

Either fix the IMakefiles / Makefiles or add mkdir -p xc/exports/lib after
src_unpack
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2003-06-27 06:33:36 UTC
fixed, thanks stefan
Comment 2 splite 2003-07-30 15:58:28 UTC
Created attachment 15251 [details, diff]
fix for xc/export/lib directory not being recreated

Creating xc/export/lib in the ebuild doesn't work because it gets clobbered by
"make clean".  "make includes" should recreate it, but doesn't.  I've attached
a patch for xc/Imakefile.
Comment 3 Stefan Jones (RETIRED) gentoo-dev 2003-09-23 01:36:47 UTC
Thanks for the 'correct' fix, will try and push it into portage,
this should fix the prelink PIC problem as well.
Comment 4 Donnie Berkholz (RETIRED) gentoo-dev 2003-09-23 01:56:03 UTC
Hey splite, I've got a patch in there now that accomplishes the same thing but cretin showed me this one and it's cleaner so I'll replace the current one soon.
Comment 5 bugs 2003-10-07 14:23:29 UTC
Just would like to say I'm still seeing the prelink errors related to xfree
mentioned in the more general 29096 .
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2003-10-18 01:54:30 UTC
Just added splite's patch to xfree-4.3.0-r3 as #0119.