[Python-checkins] python/dist/src README,1.157,1.158

loewis@users.sourceforge.net loewis@users.sourceforge.net
Thu, 14 Nov 2002 23:28:07 -0800


Update of /cvsroot/python/python/dist/src
In directory usw-pr-cvs1:/tmp/cvs-serv17143

Modified Files:
	README 
Log Message:
Explain what to do in case of missing shared libraries. Remove mentioning
of egcs. Fixes #635929. Backported to 2.2.3.


Index: README
===================================================================
RCS file: /cvsroot/python/python/dist/src/README,v
retrieving revision 1.157
retrieving revision 1.158
diff -C2 -d -r1.157 -r1.158
*** README	12 Nov 2002 16:53:36 -0000	1.157
--- README	15 Nov 2002 07:28:05 -0000	1.158
***************
*** 215,227 ****
  If you get failures in test_long, or sys.maxint gets set to -1, you
  are probably experiencing compiler bugs, usually related to
! optimization.  This is a common problem with some versions of gcc and
! egcs, and some vendor-supplied compilers, which can sometimes be
! worked around by turning off optimization.  Consider switching to
! stable versions (gcc 2.7.2.3, egcs 1.1.2, or contact your vendor.)
  
  From Python 2.0 onward, all Python C code is ANSI C.  Compiling using
  old K&R-C-only compilers is no longer possible.  ANSI C compilers are
  available for all modern systems, either in the form of updated
! compilers from the vendor, or one of the free compilers (gcc, egcs).
  
  Platform specific notes
--- 215,227 ----
  If you get failures in test_long, or sys.maxint gets set to -1, you
  are probably experiencing compiler bugs, usually related to
! optimization.  This is a common problem with some versions of gcc, and
! some vendor-supplied compilers, which can sometimes be worked around
! by turning off optimization.  Consider switching to stable versions
! (gcc 2.95.2, or contact your vendor.)
  
  From Python 2.0 onward, all Python C code is ANSI C.  Compiling using
  old K&R-C-only compilers is no longer possible.  ANSI C compilers are
  available for all modern systems, either in the form of updated
! compilers from the vendor, or one of the free compilers (gcc).
  
  Platform specific notes
***************
*** 251,254 ****
--- 251,271 ----
          are aware of the problem, so binutils 2.13.1 will probably fix
          this problem.
+ 
+ 	When the dynamic loader complains about errors finding shared
+ 	libraries, such as
+ 
+ 	ld.so.1: ./python: fatal: libstdc++.so.5: open failed: 
+ 	No such file or directory 
+ 
+ 	you need to first make sure that the library is available on
+ 	your system. Then, you need to instruct the dynamic loader how
+ 	to find it. You can chose any of the following strategies:
+ 
+ 	1. When compiling Python, set LD_RUN_PATH to the directories
+ 	   containing missing libraries.
+ 	2. When running Python, set LD_LIBRARY_PATH to these directories.
+ 	3. Use crle(8) to extend the search path of the loader.
+ 	4. Modify the installed GCC specs file, adding -R options into the
+ 	   *link: section.
  
  Linux:  A problem with threads and fork() was tracked down to a bug in