10101111
1212Archive-name: python-faq/part1
13- Version: 1.15
14- Last-modified: 6 October 1994
13+ Version: 1.16
14+ Last-modified: 11 November 1994
1515
1616This article contains answers to Frequently Asked Questions about
1717Python (an object-oriented interpreted programming language -- see
@@ -91,17 +91,20 @@ Here's an overview of the questions per chapter:
9191 3.2. Q. When running the test set, I get complaints about floating point
9292 operations, but when playing with floating point operations I cannot
9393 find anything wrong with them.
94- 3.3. Q. Link errors building Python with STDWIN on SGI IRIX.
95- 3.4. Q. Link errors after rerunning the configure script.
96- 3.5. Q. The python interpreter complains about options passed to a
94+ 3.3. Q. Link errors building Python with STDWIN 0.9.8. on SGI IRIX.
95+ 3.4. Q. Link errors building Python with STDWIN 0.9.9.
96+ 3.5. Q. Link errors after rerunning the configure script.
97+ 3.6. Q. The python interpreter complains about options passed to a
9798 script (after the script name).
98- 3.6 . Q. When building on the SGI, make tries to run python to create
99+ 3.7 . Q. When building on the SGI, make tries to run python to create
99100 glmodule.c, but python hasn't been built or installed yet.
100- 3.7. Q. Python built with gcc for the DEC Alpha doesn't work.
101- 3.8. Q. I use VPATH but some targets are built in the source directory.
102- 3.9. Q. Trouble building or linking with the GNU readline library.
103- 3.10. Q. Trouble building Python on Linux.
104- 3.11. Q. Other trouble building Python on platform X.
101+ 3.8. Q. Python built with gcc for the DEC Alpha doesn't work.
102+ 3.9. Q. I use VPATH but some targets are built in the source directory.
103+ 3.10. Q. Trouble building or linking with the GNU readline library.
104+ 3.11. Q. Trouble building Python on Linux.
105+ 3.12. Q. Trouble with prototypes on Ultrix.
106+ 3.13. Q. Trouble with posix.listdir on NeXTSTEP 3.2.
107+ 3.14. Q. Other trouble building Python on platform X.
105108
106109 4. Programming in Python
107110 4.1. Q. Is there a source code level debugger with breakpoints, step,
@@ -482,7 +485,7 @@ offending floating point tests and execute similar tests manually.
482485
483486A. Get STDWIN 0.9.9 from ftp://ftp.cwi.nl/pub/stdwin/stdwin0.9.9.tar.gz.
484487
485- Q. Link errors building Python with STDWIN 0.9.9.
488+ 3.4. Q. Link errors building Python with STDWIN 0.9.9.
486489
487490A. Probably routines liek 'tereate', 'tenew' etc. The STDWIN 0.9.9
488491distribution requires that you add TWO libraries from stdwin to the
@@ -491,12 +494,12 @@ line!):
491494
492495stdwin stdwinmodule.c -I$(STDWIN)/H $(STDWIN)/Packs/textedit/libtextedit.a $(STDWIN)/Ports/x11/libstdwin.a -lX11
493496
494- 3.4 . Q. Link errors after rerunning the configure script.
497+ 3.5 . Q. Link errors after rerunning the configure script.
495498
496499A. It is generally necessary to run "make clean" after a configuration
497500change.
498501
499- 3.5 . Q. The python interpreter complains about options passed to a
502+ 3.6 . Q. The python interpreter complains about options passed to a
500503script (after the script name).
501504
502505A. You are probably linking with GNU getopt, e.g. through -liberty.
@@ -511,7 +514,7 @@ You can also use this interactively:
511514
512515 python -- script.py [options]
513516
514- 3.6 . Q. When building on the SGI, make tries to run python to create
517+ 3.7 . Q. When building on the SGI, make tries to run python to create
515518glmodule.c, but python hasn't been built or installed yet.
516519
517520A. Comment out the line mentioning glmodule.c in Setup and build a
@@ -521,22 +524,22 @@ again. You don't need to do "make clean"; you do need to run "make
521524Makefile" in the Modules subdirectory (or just run "make" at the
522525toplevel).
523526
524- 3.7 . Q. Python built with gcc for the DEC Alpha doesn't work.
527+ 3.8 . Q. Python built with gcc for the DEC Alpha doesn't work.
525528
526529People have reported problems with both gcc 2.5.8 and 2.6.0. The DEC
527530OSF/1 cc compiler does not have these problems so it's probably gcc's
528531fault. One person reported that the problem went away when using -g
529532instead of -O so this may be an option if you insist on using gcc. If
530533someone tracks it down more completely I'd like to hear about it!
531534
532- 3.8 . Q. I use VPATH but some targets are built in the source directory.
535+ 3.9 . Q. I use VPATH but some targets are built in the source directory.
533536
534537A. On some systems (e.g. Sun), if the target already exists in the
535538source directory, it is created there instead of in the build
536539directory. This is usually because you have previously built without
537540VPATH. Try running "make clobber" in the source directory.
538541
539- 3.9 . Q. Trouble building or linking with the GNU readline library.
542+ 3.10 . Q. Trouble building or linking with the GNU readline library.
540543
541544A. Consider using readline 2.0. From the Python 1.1 README:
542545
@@ -578,18 +581,37 @@ hack that forces use of the static version of the termcap library.
578581readline library (I don't get this group here but I've been told
579582that it is the place for readline bugs.)
580583
581- 3.10 . Q. Trouble building Python on Linux.
584+ 3.11 . Q. Trouble building Python on Linux.
582585
583586A. There shouldn't be any -- I've seen several complaints but more
584587reports on successful "out-of-the-box" ports on Linux. The standard
585588configure script runs just fine on Linux.
586589
587- Q. Trouble with prototypes on Ultrix.
590+ 3.12. Q. Trouble with prototypes on Ultrix.
588591
589592A. Ultrix cc seems broken -- use gcc, or edit config.h to #undef
590593HAVE_PROTOTYPES.
591594
592- 3.11. Q. Other trouble building Python on platform X.
595+ 3.13. Q. Trouble with posix.listdir on NeXTSTEP 3.2.
596+
597+ A. The problem seems to be that that the NeXT posix library and the
598+ NeXT dynamic loading library are incompatible. Mike Carlton reports
599+ that the following worked for him (from a clean 1.1 distribution):
600+
601+ 1) ./configure
602+ 2) edited config.status and changed
603+ OPT='-O'
604+ to
605+ OPT='-posix -O'
606+ 3) edited Python/import.c and commented out the section
607+ #if defined(NeXT) || defined(WITH_RLD)
608+ #define DYNAMIC_LINK
609+ #define USE_RLD
610+ #endif
611+ this disables dynamic loading
612+ 4) make
613+
614+ 3.14. Q. Other trouble building Python on platform X.
593615
594616A. Please email the details to <
[email protected] > and I'll look into it.
595617
0 commit comments