Bug 600 - xorg will not compile using binutils-2.15 (-z defs)
Summary: xorg will not compile using binutils-2.15 (-z defs)
Status: RESOLVED NOTOURBUG
Alias: None
Product: xorg
Classification: Unclassified
Component: Server/General (show other bugs)
Version: unspecified
Hardware: x86 (IA32) Linux (All)
: high normal
Assignee: Adam Jackson
QA Contact: Xorg Project Team
URL: http://bugs.gentoo.org/show_bug.cgi?i...
Whiteboard:
Keywords:
: 4347 (view as bug list)
Depends on: 400
Blocks:
  Show dependency treegraph
 
Reported: 2004-05-06 00:19 UTC by Brandon Hale
Modified: 2011-09-25 15:51 UTC (History)
8 users (show)

See Also:
i915 platform:
i915 features:


Attachments

Description Brandon Hale 2004-05-06 00:19:11 UTC
With the use of -z defs throughout the XOrg tree, it fails to build on a
binutils 2.15 system.
A good many symbols are not linked to, and a few need to link to the still
unbuilt Xserver,
which are not as easily resolvable.  Please see the included URL for the PaX
Team's analysis
of what needs linked, and what will need work (links to Xserver).
Comment 1 Adam Jackson 2004-06-25 23:01:44 UTC
there are three classes of undefined symbol that can cause this:

- things a module needs that are defined in an external system library (libc,
etc).  these can be resolved at link time.
- things a module needs that are defined in another module.  see bug 400.  these
are usually cries for refactoring.  debrix has some work along this line.
- things a module needs that are defined in the server itself.  these can be
fixed by having the module dlopen(NULL) and call those functions through dlsym
handles.  (do non-libdl platforms have equivalent functionality?)

fixing bug 400 is all that's needed to get us running with the dlloader.  the
other two are still valid but aren't blocking any functionality.

accepting, elfloader must die.
Comment 2 Adam Jackson 2004-07-21 22:50:58 UTC
reassign
Comment 3 Adam Jackson 2005-09-09 10:45:13 UTC
*** Bug 4347 has been marked as a duplicate of this bug. ***
Comment 4 Adam Jackson 2005-12-25 17:37:02 UTC
almost everything in 7.0, excluding the server and drivers, should be buildable
with -z defs now.
Comment 5 Mike Auty 2005-12-29 07:42:17 UTC
As far as I'm aware there are still some difficulties compiling the xorg-server
package, and some of the xf86-input/video drivers.  For more information please
see http://bugs.gentoo.org/show_bug.cgi?id=110506.  At the moment that link has
been marked as fixed simply because the packages force the user to swap to the
vanilla gcc specs.  I think they're experiencing the same problem though, so
it'd be great to get all the remaining linking issues ironed out.  If there's
any further information I can provide, or any testing I can do to help, please
let me know.  Thanks...
Comment 6 Erik Andren 2006-06-28 12:15:10 UTC
Is this still an issue?
Comment 7 Adam Jackson 2006-06-30 12:28:00 UTC
(In reply to comment #6)
> Is this still an issue?

yes.
Comment 8 Daniel Stone 2007-02-27 01:23:29 UTC
Sorry about the phenomenal bug spam, guys.  Adding xorg-team@ to the QA contact so bugs don't get lost in future.
Comment 9 Jeremy Huddleston Sequoia 2011-09-25 15:51:28 UTC
As I read it, this is working with newer versions of binutils.  I'm closing 
this as NOTOURBUG.  If you want to get support for the old binutils into the 
tree, I'm happy to review patches.


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.