Bug 6073

Summary: shared library runtime path not set for all libraries (Xorg won't run)
Product: xorg Reporter: Jeremy C. Reed <reed>
Component: Server/GeneralAssignee: Xorg Project Team <xorg-team>
Status: RESOLVED NOTOURBUG QA Contact:
Severity: normal    
Priority: high    
Version: git   
Hardware: x86 (IA32)   
OS: other   
Whiteboard:
i915 platform: i915 features:

Description Jeremy C. Reed 2006-03-01 08:41:29 UTC
Running Xorg fails with:

/usr/libexec/ld-elf.so.2: Shared object "libfontenc.so.1" not found, required by
"libXfont.so.1"

Because libXfont.so.1 didn't have the RPATH set with the needed shared library
runtime path.

I see that several libraries do have correct RPATH set, but several do not.

I began looking at the configure.ac and Makefile.am, but I am not sure what
causes some packages to add the  -Wl,--rpath -Wl,/home/reed/xorg/lib (for my
platform and location).

I posted about this to the xorg list but didn't get feedback. This was on
DragonFly with libtool 1.5.22. I will try on a Linux system also -- maybe my
problem is not in the modular built itself, but the libtool use.

Or if it is a problem, then teach me and I will fix this.
Comment 1 Michel Dänzer 2006-03-01 18:02:32 UTC
Note that e.g. Debian policy forbids rpath, so its usage must not be hardcoded.
Comment 2 Jeremy C. Reed 2006-03-05 18:49:58 UTC
I learned this is a bug in libtool specifically on the DragonFly platform.
I will make sure the fixes get there in libtool.m4 instead.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.