[issue941346] AIX shared library fix

2011-02-25 Thread Georg Brandl
Georg Brandl added the comment: Backported to 3.1 in r88560, 2.7 in r88568. -- status: open -> closed ___ Python tracker ___ ___ Pyt

[issue941346] AIX shared library fix

2011-02-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: Georg, the non-abiflags portion seems to need backporting. -- assignee: -> georg.brandl priority: release blocker -> normal status: closed -> open ___ Python tracker ___

[issue941346] AIX shared library fix

2011-02-16 Thread Sébastien Sablé
Sébastien Sablé added the comment: Also Michael, I am working on the 3.2 branch, it may be different with Python 2.7.1 but I haven't tested yet. -- ___ Python tracker ___

[issue941346] AIX shared library fix

2011-02-16 Thread Sébastien Sablé
Sébastien Sablé added the comment: By the way... thanks Georg! -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscri

[issue941346] AIX shared library fix

2011-02-16 Thread Sébastien Sablé
Sébastien Sablé added the comment: Are you using --enable-shared when compiling python? That is when you should see the error (it could not find python.exp at some stage). -- ___ Python tracker _

[issue941346] AIX shared library fix

2011-02-16 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: > You can remove -L\$(srcdir) on this line, but then you need to specify > the > full path to Modules/python.exp. See patch below: Interesting, didn't experience this to be necessary with Python-2.7.1 here... Maybe because I do an in-source build, have

[issue941346] AIX shared library fix

2011-02-15 Thread Georg Brandl
Georg Brandl added the comment: Committed in r88426. -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue941346] AIX shared library fix

2011-02-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Looks good to me. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http:/

[issue941346] AIX shared library fix

2011-02-15 Thread Sébastien Sablé
Sébastien Sablé added the comment: Here is the full patch. I also modified Makefile.pre.in to clean Modules/python.exp when doing distclean. -- Added file: http://bugs.python.org/file20764/patch_aix_shared_32.diff ___ Python tracker

[issue941346] AIX shared library fix

2011-02-15 Thread Georg Brandl
Georg Brandl added the comment: OK. Sébastien, could you make and attach a complete patch? -- ___ Python tracker ___ ___ Python-bugs

[issue941346] AIX shared library fix

2011-02-15 Thread Antoine Pitrou
Antoine Pitrou added the comment: Agreed. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue941346] AIX shared library fix

2011-02-15 Thread Georg Brandl
Georg Brandl added the comment: This looks like it should (and could) go into 3.2 final. Agreed? -- nosy: +barry, benjamin.peterson, georg.brandl priority: normal -> release blocker status: closed -> open ___ Python tracker

[issue941346] AIX shared library fix

2011-02-15 Thread Sébastien Sablé
Sébastien Sablé added the comment: OK, Python with shared libraries is broken in trunk since the library was renamed to libpython3.2m. Here is a patch to correct that: Index: Modules/ld_so_aix.in === --- Modules/ld_so_aix.in

[issue941346] AIX shared library fix

2011-02-15 Thread Sébastien Sablé
Sébastien Sablé added the comment: Hum, I was incorrect in previous note: You can remove -L\$(srcdir) on this line, but then you need to specify the full path to Modules/python.exp. See patch below: Index: configure.in === --- con

[issue941346] AIX shared library fix

2011-02-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: Hi Micheal, I don't remember why "-L\$(srcdir)" was added since it has been quite a long time. I tried to recompile everything after removing it and everything compiled just fine, so I guess it can be removed. regards -- _

[issue941346] AIX shared library fix

2011-02-09 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Sébastien, why did you need to add '-L$(srcdir)' to BLDSHARED in these patches? As LDLIBRARY points to the immediate file 'libpython$(VERSION).so' instead of '-lpython$(VERSION)', I don't see the need for '-L$(srcdir)' at all. The problem is that '-L$(

[issue941346] AIX shared library fix

2010-09-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: Great! Thanks Antoine. I checked quickly and there is a small correction to do on the 2.7 branch: this branch is different because there has been a change between python 2.x and 3.x in pep-3121 concerning the name of the entry function in a module (init to

[issue941346] AIX shared library fix

2010-09-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed the latest patch in r84680 (3.x), r84682 (3.1) and r84683 (2.7). Perhaps you want to check it's ok. Thank you anyway! -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed

[issue941346] AIX shared library fix

2010-09-10 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18832/py3k_aix61_shared_xlc_pathshared.txt.gz ___ Python tracker ___ ___

[issue941346] AIX shared library fix

2010-09-10 Thread Sébastien Sablé
Changes by Sébastien Sablé : Removed file: http://bugs.python.org/file18820/py3k_aix61_shared_xlc_pathshared.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-09-10 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18822/py3k_aix61_shared_gcc_patchshared.txt.gz ___ Python tracker ___ __

[issue941346] AIX shared library fix

2010-09-10 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18821/py3k_aix61_static_gcc_patchshared.txt.gz ___ Python tracker ___ __

[issue941346] AIX shared library fix

2010-09-10 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18820/py3k_aix61_shared_xlc_pathshared.txt.gz ___ Python tracker ___ ___

[issue941346] AIX shared library fix

2010-09-10 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18819/py3k_aix61_static_xlc_patchshared.txt.gz ___ Python tracker ___ __

[issue941346] AIX shared library fix

2010-09-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: Antoine, I tested this patch on py3k with both gcc and xlc in static and shared mode and I did not notice any issue. I attach the build and test logs. I think you can safely commit it. -- Added file: http://bugs.python.org/file18818/py3k_aix61_stat

[issue941346] AIX shared library fix

2010-09-08 Thread Sébastien Sablé
Sébastien Sablé added the comment: Antoine, I wanted to test this improvement (and others) on the branch py3k (I was using Python 2.7 and Python 3.1.2 for the moment). But I have some issues compiling this branch, even without any patch (see issue 9799). So you may want to wait for the other

[issue941346] AIX shared library fix

2010-09-08 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18797/python312_AIX61_shared_gcc_patchshared.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-09-08 Thread Sébastien Sablé
Sébastien Sablé added the comment: Here are the build logs for Python 3.1.2 modified with this patch and compiled with gcc. The extensions are correctly built. I also compiled an extension not directly provided in Python source (cx_Oracle) and it worked fine also. -- Added file: htt

[issue941346] AIX shared library fix

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Anyway, I will run the test with gcc on Wednesday and know for sure if > that works. Thank you! If it works, it's good for commit. -- ___ Python tracker __

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé added the comment: Hum, forget my previous note;I checked ld_so_aix and it actually calls $CC to handle linking not ld. I suppose gcc will call the native ld. Anyway, I will run the test with gcc on Wednesday and know for sure if that works. -- __

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé added the comment: Yes Antoine, gcc only handles compilation; the linker is explicitly called through the ld_so_aix script which handles calling the native ld with the right flags to import symbols. I will check with gcc and attach the log on Wednesday (not at work tomorrow)

[issue941346] AIX shared library fix

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: > * there are no more warnings for 'Duplicate symbol': I changed > build_ext.py to not link extensions with libpython since the symbols > are already defined by python.exp Could this affect building extensions with gcc under AIX? Or does gcc delegate to the AI

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé added the comment: Here is the patch for Python 2.7. The only difference compared to Python 3.1.2 is that we don't rename init to PyInit_. -- versions: +Python 2.6 -Python 3.2 Added file: http://bugs.python.org/file18768/Python-2.7_shared_AIX.diff

[issue941346] AIX shared library fix

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Thank you. For the record, here is the patch adapted for 3.2 development branch. It looks ok to me. -- stage: unit test needed -> patch review versions: +Python 3.2 -Python 2.6 Added file: http://bugs.python.org/file18767/aix32.diff __

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Changes by Sébastien Sablé : -- versions: +Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscrib

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18765/python312_AIX61_shared_patch_shared.txt.gz ___ Python tracker ___

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18764/python312_AIX61_static_patch_shared.txt.gz ___ Python tracker ___

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18763/python312_AIX61_static_nopatch.txt.gz ___ Python tracker ___ ___ P

[issue941346] AIX shared library fix

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé added the comment: Hi, I have updated the patch and adapted it for Python 3.1.2: * this time ld_so_aix is moved to ld_so_aix.in which is converted to ld_so_aix by 'configure' so that it has the right version number for the python library * there are no more warnings for 'Dupl

[issue941346] AIX shared library fix

2010-09-02 Thread Sébastien Sablé
Sébastien Sablé added the comment: Le 01/09/2010 00:16, Antoine Pitrou a écrit : > In dynamic builds, there seem to be lots of messages such as: > > ld: 0711-224 WARNING: Duplicate symbol: .PyLong_FromString > ld: 0711-224 WARNING: Duplicate symbol: PyLong_FromString > > Are you sure this is nor

[issue941346] AIX shared library fix

2010-08-31 Thread Antoine Pitrou
Antoine Pitrou added the comment: In dynamic builds, there seem to be lots of messages such as: ld: 0711-224 WARNING: Duplicate symbol: .PyLong_FromString ld: 0711-224 WARNING: Duplicate symbol: PyLong_FromString Are you sure this is normal? In any case, if you find a way to cleanup ld_so_aix

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18695/python266_AIX61_shared_xlc_patchshared.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18694/python266_AIX61_shared_xlc_nopatch.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18693/python266_AIX61_shared_gcc_patchshared.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18692/python266_AIX61_shared_gcc_nopatch.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18691/python266_AIX61_static_xlc_patchshared.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18690/python266_AIX61_static_xlc_nopatch.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18689/python266_AIX61_static_gcc_patchshared.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Changes by Sébastien Sablé : Added file: http://bugs.python.org/file18688/python266_AIX61_static_gcc_nopatch.txt.gz ___ Python tracker ___ _

[issue941346] AIX shared library fix

2010-08-31 Thread Sébastien Sablé
Sébastien Sablé added the comment: Hi, As reported in this issue and issue 1756343 and issue 1542544, Python does not produce a shared python library on AIX even with the --enable-shared flag. I had provided a patch to correct that, but it was breaking static compilation of Python on AIX. W

[issue941346] AIX shared library fix

2009-05-20 Thread Loris Bennett
Loris Bennett added the comment: Addition to last message: More importantly, without "-Wl", the flags are not passed to the linker and the tcl/tk libs will not be found. -- ___ Python tracker ___

[issue941346] AIX shared library fix

2009-05-20 Thread Loris Bennett
Loris Bennett added the comment: Shouldn't line 170 be CCOPT="$CCOPT -Wl,-bM:SRE -Wl,-T512 -Wl,-H512 -Wl,-brtl -Wl,-bnortllib -lm -o $objfile" instead of CCOPT="$CCOPT -Wl,-bM:SRE -Wl,-T512 -Wl,-H512 -brtl -bnortllib -lm -o $objfile" Otherwise the -brtl and -bnortllib flags are interpr

[issue941346] AIX shared library fix

2009-02-14 Thread Daniel Diniz
Changes by Daniel Diniz : -- components: +Build, Extension Modules -None stage: -> test needed type: -> feature request versions: +Python 2.7 ___ Python tracker ___ __

[issue941346] AIX shared library fix

2008-08-08 Thread Sébastien Sablé
Sébastien Sablé <[EMAIL PROTECTED]> added the comment: Hum, I tried to recompile Python without the --enable-shared option on AIX and it crashed; so this patch may not be compatible with a static version of Python (though I have other patches in my version - cf issue 3526 - which may be incompati

[issue941346] AIX shared library fix

2008-08-08 Thread Antoine Pitrou
Antoine Pitrou <[EMAIL PROTECTED]> added the comment: Sébastien, what does your patch change exactly? Does it build a shared lib for Python by default? If that's the case, I'm not sure it's a good idea due to AIX's particular way of treating shared libraries; it might break e.g. when trying to em

[issue941346] AIX shared library fix

2008-08-08 Thread Sébastien Sablé
Sébastien Sablé <[EMAIL PROTECTED]> added the comment: Hi, I have modified a bit this patch to make it work with Python 2.5.2 (see attached patched). It is a great enhancement for Python users on AIX to be able to use a shared library instead of a static one, so I would appreciate if this featu