[Python-bugs-list] please resolve 191.. (PR#195)

gurney_j@resnet.uoregon.edu gurney_j@resnet.uoregon.edu
Mon, 31 Jan 2000 14:39:09 -0500 (EST)


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