[Python-bugs-list] [ python-Bugs-504252 ] More build problems on AIX 4.3

noreply@sourceforge.net noreply@sourceforge.net
Wed, 16 Jan 2002 04:02:51 -0800


Bugs item #504252, was opened at 2002-01-16 00:01
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=504252&group_id=5470

Category: Build
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Sven Rubben (srubben)
Assigned to: Nobody/Anonymous (nobody)
Summary: More build problems on AIX 4.3

Initial Comment:
When Python-2.2 is configured on AIX, and the build is
running (when bug #477487 is solved) , it will produce
a lot of errors but they all look the same:

unable to execute
/usr/local/lib/python2.2/config/ld_so_aix: No such file
or directory


Reason:
In the configure script, the location of the special
link script used in the compilation (ld_so_aix) is set
to $BINLIBDEST, but it is not there yet.

Solution:
Change the location of ld_so_aix to the correct dir in
the source tree. So change LDSHARED from pointing to
$BINLIBDEST/config to $srcdir/Modules and do the same
for python.exp.

The following patch does the trick:
--- configure   Wed Jan 16 08:42:56 2002
+++ configure.new       Wed Jan 16 08:33:27 2002
@@ -3147,7 +3147,7 @@
        case $ac_sys_system/$ac_sys_release in
        AIX*)
                BLDSHARED="\/Modules/ld_so_aix
\ -bI:Modules/python.exp"
-              
LDSHARED="\/config/ld_so_aix \
-bI:\/config/python.exp"
+               LDSHARED="\/Modules/ld_so_aix
\ -bI:\/Modules/python.exp"
                ;;
        BeOS*)
               
BLDSHARED="\/Modules/ld_so_beos $LDLIBRARY"


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

>Comment By: Martin v. Löwis (loewis)
Date: 2002-01-16 04:02

Message:
Logged In: YES 
user_id=21627

I think the problem is somewhere else: When building Python
itself, BLDSHARED should be used. LDSHARED will be
appropriate when building extension modules with distutils,
so it must point to the installed ld_so_aix, not the one in
the source distribution.

So in essence, you will need to replace LDSHARED with
BLDSHARED in the appropriate places of Makefile.in. Can you
place try to come up with a patch that does so, and attach
it to this report?

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

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=504252&group_id=5470