1- Subject: AIX-NOTES FOR 1.4
2- From: Manus Hand <
[email protected] >
3- 4- 5- Date: Fri, 25 Oct 1996 15:19:23 -0600 (MDT)
1+ Subject: AIX - Misc/AIX-NOTES
2+ From: Vladimir Marangozov <
[email protected] >
3+ To:
[email protected] (Guido van Rossum)
4+ Date: Wed, 6 Aug 1997 11:41:00 +0200 (EET)
65
76==============================================================================
87 COMPILER INFORMATION
@@ -19,7 +18,6 @@ Date: Fri, 25 Oct 1996 15:19:23 -0600 (MDT)
1918 AIX C compiler version 3.1.2 on AIX 4.1.3 and AIX 4.1.4
2019 AIX C compiler version 1.3.0 on AIX 3.2.5
2120 If you have this problem, please report the compiler/OS version.
22- [Postscript: it has also been spotted on AIX 4.2.1 --Guido]
2321
2422(2) Stefan Esser (
[email protected] ), in work done to compile Python
2523 1.0.0 on AIX 3.2.4, reports that AIX compilers don't like the LANG
@@ -56,8 +54,7 @@ Date: Fri, 25 Oct 1996 15:19:23 -0600 (MDT)
5654 THREAD SUPPORT
5755------------------------------------------------------------------------------
5856
59- AIX uses pthreads. However, as of AIX version 4, there are two (incompatible)
60- types of pthreads on AIX:
57+ As of AIX version 4, there are two (incompatible) types of pthreads on AIX:
6158 a) AIX DCE pthreads (on AIX 3.2.5)
6259 b) AIX 4 pthreads (on AIX 4.1 and up)
6360Support has been added to Python to handle the distinction.
9289
9390Python modules may now be built as shared libraries on AIX using the normal
9491process of uncommenting the "*shared*" line in Modules/Setup.in before the
95- build. There is one additional step required, and that is to also uncomment
96- the line in Modules/Setup.in which reads
97- LINKCC= makexp_aix python.exp "" $(MYLIBS) $(ADDOBJS) ; $(CC)
92+ build.
9893
9994AIX shared libraries require that an "export" and "import" file be provided
10095at compile time to list all extern symbols which may be shared between
101- modules. The effect of uncommenting the LINKCC line in Modules/Setup.in is
102- to create the "export" file for the modules and the libraries that belong to
103- the Python core. This is done by the "makexp_aix" script, which creates a
104- file named python.exp before performing the link of the python binary.
96+ modules. The "export" file (named python.exp) for the modules and the
97+ libraries that belong to the Python core is created by the "makexp_aix"
98+ script before performing the link of the python binary. It lists all global
99+ symbols (exported during the link) of the modules and the libraries that
100+ make up the python executable.
105101
106102When shared library modules (.so files) are made, a second shell script
107103is invoked. This script is named "ld_so_aix" and is also provided with
@@ -111,16 +107,6 @@ it adds the appropriate arguments (in the appropriate order) to the link
111107command that creates the shared module. Among other things, it specifies
112108that the "python.exp" file is an "import" file for the shared module.
113109
114- A default python.exp file is provided with the distribution. It will be
115- overwritten (by the action of the makexp_aix script) if you build with shared
116- libraries. The python.exp file which comes with the distribution contains
117- all extern symbols of a completely statically built python executable.
118- Any python.exp file which is created from a build of python with some of the
119- modules linked as shared modules will obviously not list symbols from the now
120- dynamic modules. The distributed python.exp is provided so that, with
121- assistance from the ld_so_aix and makexp_aix scripts, shared extension
122- modules may be added to an otherwise completely static python build.
123-
124110At the time of this writing, neither the python.exp file nor the makexp_aix
125111or ld_so_aix scripts are installed by the make procedure, so you should
126112remember to keep these and/or copy them to a different location for
0 commit comments