[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-10 Thread Antoine Pitrou
Antoine Pitrou added the comment: Ok, thank you. The improvement has been committed in all three branches (3.2, 3.1, 2.7). -- stage: -> committed/rejected status: open -> closed versions: -Python 2.6, Python 3.3 ___ Python tracker

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-10 Thread Sébastien Sablé
Sébastien Sablé added the comment: I tested Michael test in msg115868 on my AIX system (AIX 6.1 with flock correctly present in libbsd) with py3k and it works fine: checking for flock declaration... yes checking for flock... no checking for flock in -lbsd... yes [103/344] test_fcntl = OK I a

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-08 Thread Sébastien Sablé
Sébastien Sablé added the comment: Thanks Michael, your new test looks fine to me. I wanted to test it on my AIX system with branch py3k but I had some other issues (issue 9799), but I will test it tomorrow. -- versions: +Python 2.6, Python 3.3 ___

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-08 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Sébastien, while this gives expected results on the AIX box here, it still has one subtle problem: AC_TRY_LINK may fail due to missing declaration in _or_ due to missing implementation in libc. The subsequent AC_CHECK_LIB won't fail when the implementa

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-07 Thread Sébastien Sablé
Sébastien Sablé added the comment: I inverted the actions in the test I proposed in msg115768 (quick note from home, should have tested at work before posting). It should be: AC_MSG_CHECKING(for flock) have_flock=no AC_TRY_LINK([ #include "confdefs.h" #include ], [void* p = flock; flock(0, 0

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-07 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Using this patch based on current py3k branch I've been able now to build the fcntl module for 32bit aix5.3 (with flock) and 64bit aix5.3 (without flock), both using an old gcc-3.3.6, as well as for 64bit linux. If necessary, I should be able to create

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Sorry to be pedantic - but it looks like (don't have a build > environment at hand at the moment) it will fail to build as 64bit on > the not-so-up-to-date AIX with missing 64bit flock implementation: > There, the compile-check will succeed and define HAVE_FLO

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-07 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Sorry to be pedantic - but it looks like (don't have a build environment at hand at the moment) it will fail to build as 64bit on the not-so-up-to-date AIX with missing 64bit flock implementation: There, the compile-check will succeed and define HAVE_FL

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-07 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've just merged Sébastien's patches in r84584 (3.x), r84585 (2.7) and r84586 (3.1). If you'd like to improve the fixes (as per your latest message), please say so, otherwise I'll close the issue. (and thanks for your contributions!) -- resolution:

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-07 Thread Sébastien Sablé
Sébastien Sablé added the comment: Here is a new test for flock. HAVE_FLOCK is defined if we can link a C application calling flock, or if flock is defined in libbsd. FLOCK_NEEDS_LIBBSD is also defined in the second case. AC_MSG_CHECKING(for flock) have_flock=no AC_TRY_LINK([ #include "confdef

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-06 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: While I do agree this being an AIX bug, it is not a blocker here: fcntl extension does not _depend_ on flock, it just does _prefer_ flock: If not available, fcntl extension uses something else (fcntl IIRC), as it did (even without linking libbsd) before

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-06 Thread Antoine Pitrou
Antoine Pitrou added the comment: Well, I suppose if flock needs libbsd on AIX (which is quite weird in itself), and AIX fails to ship libbsd for some executable formats, then it's AIX's problem. -- nosy: +pitrou ___ Python tracker

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé added the comment: [rant: grrr, AIX is really a crappy platform; no consistency between releases; there are dozens of obvious bugs like that... anyway...] The fact that there is no 64 bits objects in libbsd.a on AIX 6.1 is a documented bug: http://www-01.ibm.com/support/docvie

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-06 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: While I've not tested these patches myself, I do think there still is an unhandled case: building a 64bit python. As libbsd.a contains 32bit objects only, there is no 64bit flock(). So AC_CHECK_LIB(bsd,flock) may still fail, which should result in have_f

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-06 Thread Sébastien Sablé
Sébastien Sablé added the comment: Here is the version of the patch for Python 2.7. I had to change AC_TRY_COMPILE to AC_COMPILE_IFELSE and AC_TRY_LINK to AC_LINK_IFELSE. The syntax in configure.in is the same between Python 2.7 and the trunk. It is also the same between Python 2.6.6 and Pyth

[issue4026] fcntl extension fails to build on AIX 6.1

2010-09-02 Thread Sébastien Sablé
Sébastien Sablé added the comment: Hi, Here is a patch that solves this problem. It was tested with Python 2.6.6 on AIX 6.1. The same problem applies to Python 2.7 and 3.x, but since the syntax has been changed in configure.in for Python 2.7 and 3.x, I need to adapt a little bit my patch (c

[issue4026] fcntl extension fails to build on AIX 6.1

2010-04-07 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: Ohw, looking on another machine, being AIX5.3 TL6: $ oslevel -s 5300-06-00- Here flock() is provided in libbsd.a(shr.o) (32bit only) too, but it isn't declared in any header-file. So that recent AIX5.3 patchset just adds the flock() declaration, no

[issue4026] fcntl extension fails to build on AIX 6.1

2010-04-07 Thread Michael Haubenwallner
Michael Haubenwallner added the comment: This very same problem happens (with Python-2.6.2) on AIX5.3 now too, after upgrading to: $ oslevel -s 5300-08-09-1013 Unlike before (comparing with old build logs), this AIX5.3 now provides flock() in and libbsd.a[shr.o] like AIX6.1. Interesting eno

[issue4026] fcntl extension fails to build on AIX 6.1

2009-01-07 Thread Jeremy Olexa
Jeremy Olexa added the comment: I have now confirmed that the fix described here[1] works as desired. I don't know if this is proper or not but it matches what inkblotter said. [1]: http://www.ibm.com/developerworks/forums/thread.jspa?threadID=226339 ___ Pyt

[issue4026] fcntl extension fails to build on AIX 6.1

2009-01-06 Thread Jeremy Olexa
Jeremy Olexa added the comment: This also happens with Python 2.5.2 (not the latest 2.5 series, I know) on AIX 6.1. -- nosy: +darkside ___ Python tracker ___

[issue4026] fcntl extension fails to build on AIX 6.1

2008-10-27 Thread inkblotter
inkblotter <[EMAIL PROTECTED]> added the comment: This occurs because it must link with -lbsd on AIX 6.1. If you hand link the failing module by adding -lbsd it builds quietly. If you build the prerequisites for the _tkinter module on AIX 6.1, you will also encounter an error becuase this modul

[issue4026] fcntl extension fails to build on AIX 6.1

2008-10-03 Thread David Jones
New submission from David Jones <[EMAIL PROTECTED]>: After hacking the configure script to work around the issues http://bugs.python.org/issue4025 and http://bugs.python.org/issue1633863 the build still fails: building 'fcntl' extension xlc_r -DNDEBUG -O -I. -I/home/u0006584/Python-2.6/./Inclu