Bug 1212

Summary: dlloader will not work when LD_BIND_NOW=1
Product: xorg Reporter: Adam Jackson <ajax>
Component: Server/DDX/Xorg/dlloaderAssignee: Adam Jackson <ajax>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: high CC: xorg-team
Version: git   
Hardware: x86 (IA32)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Bug Depends on:    
Bug Blocks: 351    
Attachments:
Description Flags
forcibly unset LD_BIND_NOW
none
dlloader-carp-on-ld-bind-now.patch none

Description Adam Jackson 2004-08-27 12:43:17 UTC
i've heard several reports now from people trying to manually sort out module
load order for dlloader, which is in many cases unpossible.  this should never
happen, so i suspect they're setting LD_BIND_NOW somewhere without realizing it.
 cheesy one-off patch to work around this to follow.
Comment 1 Adam Jackson 2004-08-27 12:44:21 UTC
Created attachment 747 [details] [review]
forcibly unset LD_BIND_NOW
Comment 2 Adam Jackson 2004-08-27 14:40:04 UTC
Created attachment 749 [details] [review]
dlloader-carp-on-ld-bind-now.patch

previous patch won't work.  libdl checks for LD_BIND_NOW before main() even
runs, so by the time we try an unsetenv it's too late.	all we can do is tell
the user that it won't work.
Comment 3 Adam Jackson 2004-08-27 14:42:36 UTC
requesting blocker status.  this patch only affects dlloader users, would be
really nice to include for the release.
Comment 4 Kevin E. Martin 2004-08-29 14:06:53 UTC
Patch looks okay.  Checking in and closing.

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.