[Python-bugs-list] [Bug #110833] linker options documentation (PR#195)

noreply@sourceforge.net noreply@sourceforge.net
Fri, 11 Aug 2000 06:39:18 -0700


Bug #110833, was updated on 2000-Aug-01 14:13
Here is a current snapshot of the bug.

Project: Python
Category: Documentation
Status: Open
Resolution: None
Bug Group: Feature Request
Priority: 5
Summary: linker options documentation (PR#195)

Details: Jitterbug-Id: 195
Submitted-By: John-Mark Gurney <gurney_j@efn.org>
Date: Sun, 30 Jan 2000 18:09:56 -0800
Version: None
OS: None

I have found out that I need to add -Xlinker -export-dynamic to the gcc
command to compile a program linked w/ the libpython.a library... if you
do not specify this option, all unreferenced symbols will be discarded...

please document this requirement in the documentation, and after that has
happened, close this bug report...

Thanks.

-- 
  John-Mark Gurney				Voice: +1 408 975 9651
  Cu Networking					  

  "The soul contains in itself the event that shall presently befall it.
  The event is only the actualizing of its thought." -- Ralph Waldo Emerson


====================================================================
Audit trail:
Mon Feb 07 12:37:05 2000	guido	changed notes
Mon Feb 07 12:37:05 2000	guido	moved from incoming to request

Follow-Ups:

Date: 2000-Aug-01 14:13
By: none

Comment:
From: Guido van Rossum <guido@CNRI.Reston.VA.US>
Subject: Re: [Python-bugs-list] please resolve 191.. (PR#195)
Date: Mon, 31 Jan 2000 12:25:49 -0500

> I have found out that I need to add -Xlinker -export-dynamic to the gcc
> command to compile a program linked w/ the libpython.a library... if you
> do not specify this option, all unreferenced symbols will be discarded...
> 
> please document this requirement in the documentation, and after that has
> happened, close this bug report...

I read your bug report 191 and I think it may be platform specific, or
a bug in how you link with Python, since I cannot reproduce this here
on Solaris.

Until we are clear on this we can't fix the documentation, sorry.

--Guido van Rossum (home page: http://www.python.org/~guido/)

-------------------------------------------------------

Date: 2000-Aug-01 14:13
By: none

Comment:
From: John-Mark Gurney <gurney_j@efn.org>
Subject: Re: [Python-bugs-list] please resolve 191.. (PR#195)
Date: Mon, 31 Jan 2000 11:40:12 -0800

Guido van Rossum scribbled this message on Jan 31:
> > I have found out that I need to add -Xlinker -export-dynamic to the gcc
> > command to compile a program linked w/ the libpython.a library... if you
> > do not specify this option, all unreferenced symbols will be discarded...
> > 
> > please document this requirement in the documentation, and after that has
> > happened, close this bug report...
> 
> I read your bug report 191 and I think it may be platform specific, or
> a bug in how you link with Python, since I cannot reproduce this here
> on Solaris.

I would try it under Solaris, but I don't have the time right now to
compile up the latest GNU ld on solaris, to make sure that it is compiler
specific...

> Until we are clear on this we can't fix the documentation, sorry.

I would think that you would want to document such a behavior considering
just how many people happen to use gcc...  I am using gcc 2.7.2.3 and GNU
ld 2.9.1, and considering the number of people that are using GNU ld 2.9.1,
I would assume you'd want to document it so that people like myself, don't
run into this problem...

the -Xlinker -export-dynamic happens to be a GNU ld specific solution,
but the bug that python doesn't force include all the symbols should be
documented so that people don't encounter the problem...

-- 
  John-Mark Gurney				Voice: +1 408 975 9651
  Cu Networking					  

  "The soul contains in itself the event that shall presently befall it.
  The event is only the actualizing of its thought." -- Ralph Waldo Emerson

-------------------------------------------------------

Date: 2000-Aug-01 14:13
By: none

Comment:
From: Guido van Rossum <guido@CNRI.Reston.VA.US>
Subject: Re: [Python-bugs-list] please resolve 191.. (PR#195)
Date: Mon, 31 Jan 2000 15:35:35 -0500

> Guido van Rossum scribbled this message on Jan 31:
> > > I have found out that I need to add -Xlinker -export-dynamic to the gcc
> > > command to compile a program linked w/ the libpython.a library... if you
> > > do not specify this option, all unreferenced symbols will be discarded...
> > > 
> > > please document this requirement in the documentation, and after that has
> > > happened, close this bug report...
> > 
> > I read your bug report 191 and I think it may be platform specific, or
> > a bug in how you link with Python, since I cannot reproduce this here
> > on Solaris.
> 
> I would try it under Solaris, but I don't have the time right now to
> compile up the latest GNU ld on solaris, to make sure that it is compiler
> specific...
> 
> > Until we are clear on this we can't fix the documentation, sorry.
> 
> I would think that you would want to document such a behavior considering
> just how many people happen to use gcc...  I am using gcc 2.7.2.3 and GNU
> ld 2.9.1, and considering the number of people that are using GNU ld 2.9.1,
> I would assume you'd want to document it so that people like myself, don't
> run into this problem...
> 
> the -Xlinker -export-dynamic happens to be a GNU ld specific solution,
> but the bug that python doesn't force include all the symbols should be
> documented so that people don't encounter the problem...

This (that it's GNU ld specific) is information that you didn't
explain first.  I am probably not using GNU ld, which may explain why
I couldn't reproduce your problem.

If you want to save me the most time, please suggest the exact patch
for the documentation, using the latest version of the docs from the
CVS tree.  (python.org/download/cvs.html)

To save me at least some time, write a paragraph of text and give me
at least a hint on which section of which document it should be
inserted into, and we'll figure it out from there.

--Guido van Rossum (home page: http://www.python.org/~guido/)

-------------------------------------------------------

Date: 2000-Aug-01 14:13
By: none

Comment:
From: Guido van Rossum <guido@python.org>
Subject: Re: [Python-bugs-list] please resolve 191.. (PR#195)
Date: Mon, 07 Feb 2000 12:55:20 -0500

> the -Xlinker -export-dynamic happens to be a GNU ld specific solution,
> but the bug that python doesn't force include all the symbols should be
> documented so that people don't encounter the problem...

There's a Solaris-specific patch (just checked in a few days ago) to
configure.in that takes care of this; maybe it can be made general?

No time to explain, see latest configure.in cvs log.
python.org/download/cvs.html

--Guido van Rossum (home page: http://www.python.org/~guido/)

-------------------------------------------------------

Date: 2000-Aug-01 14:13
By: none

Comment:
Still waiting for a patch...
-------------------------------------------------------

For detailed info, follow this link:
http://sourceforge.net/bugs/?func=detailbug&bug_id=110833&group_id=5470