[ python-Bugs-1563238 ] http//... test file

2006-09-22 Thread SourceForge.net
Bugs item #1563238, was opened at 2006-09-22 01:15
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1563238&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: None
>Status: Closed
>Resolution: Invalid
Priority: 5
Submitted By: Grzegorz Makarewicz (makaron)
Assigned to: Nobody/Anonymous (nobody)
Summary: http//... test file

Initial Comment:
Whilte testing 2.5 (release-build) i have found that
python tries to download some files from internet.

Low connectin isn't big deal at this time but it's
frustrating - korean letters at polish xp ? - I havn't
see that combination


--

>Comment By: Georg Brandl (gbrandl)
Date: 2006-09-22 08:14

Message:
Logged In: YES 
user_id=849994

If you enable the resource "urlfetch", the test suite will
try to fetch some files required to test the east asian
codecs. This is expected.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1563238&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1563236 ] temporary file(s)

2006-09-22 Thread SourceForge.net
Bugs item #1563236, was opened at 2006-09-22 01:10
Message generated for change (Comment added) made by gbrandl
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1563236&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: None
>Status: Closed
Resolution: None
Priority: 5
Submitted By: Grzegorz Makarewicz (makaron)
Assigned to: Nobody/Anonymous (nobody)
Summary: temporary file(s)

Initial Comment:
After runnig Lib/test/test.py I have found some
temporary files - the major is __db,004

can it be deleted ?

--

>Comment By: Georg Brandl (gbrandl)
Date: 2006-09-22 08:15

Message:
Logged In: YES 
user_id=849994

Yes, you can delete them. They should be automatically
removed by the bsddb test suite, but on Windows, there are
sometimes file locking problems.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1563236&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1557232 ] Parser crash

2006-09-22 Thread SourceForge.net
Bugs item #1557232, was opened at 2006-09-12 08:28
Message generated for change (Comment added) made by nnorwitz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1557232&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Parser/Compiler
Group: Python 2.5
Status: Open
Resolution: None
Priority: 7
Submitted By: Martin v. Löwis (loewis)
Assigned to: Nobody/Anonymous (nobody)
Summary: Parser crash

Initial Comment:
The code

def x(((y))):pass 

crashes the compiler (?) in 2.5c2, on Windows.

--

>Comment By: Neal Norwitz (nnorwitz)
Date: 2006-09-22 01:21

Message:
Logged In: YES 
user_id=33168

Committed revision 51972. (2.6)
Still needs backport.


--

Comment By: Neal Norwitz (nnorwitz)
Date: 2006-09-17 22:55

Message:
Logged In: YES 
user_id=33168

Attaching a new patch with tests.  There probably should be
more tests, but this is all I can think of at this point.  I
think I've covered the cases of the recursive definition
properly now.

Conceptually this is a very small patch.  I've added a bunch
of asserts and broken some complex lines up though.

The first chunk deals with complex_args and elides
superfluous parens around (x).  The second chunk does the
same eliding but for non-complex args.  Any number of extra
parens should be elided properly now.

I will apply to head and 2.5.1 later.

--

Comment By: Neal Norwitz (nnorwitz)
Date: 2006-09-13 00:44

Message:
Logged In: YES 
user_id=33168

I think patch v2 might fix both problems.  I'm not sure it's
correct.  We really need a lot of tests for this stuff.

--

Comment By: Neal Norwitz (nnorwitz)
Date: 2006-09-12 23:22

Message:
Logged In: YES 
user_id=33168

The attached patch seems to fix the x problem.  I
didn't run in debug mode, so I'm not positive the assert
works as I expect.

However now my test case below doesn't work, it puts in 5
UNPACK_SEQUENCES rather than 3.  This looks like a different
problem in compiler_complex_args().

Not sure how much farther I'll get tonight.

--

Comment By: Neal Norwitz (nnorwitz)
Date: 2006-09-12 23:00

Message:
Logged In: YES 
user_id=33168

I guess what 2.4 does is the most reasonable behavior:

>>> def f((x)),),),)): pass
>>> dis.dis(f)
  1   0 LOAD_FAST0 (.0)
  3 UNPACK_SEQUENCE  1
  6 UNPACK_SEQUENCE  1
  9 UNPACK_SEQUENCE  1
 12 STORE_FAST   1 (x)
 15 LOAD_CONST   0 (None)
 18 RETURN_VALUE


--

Comment By: Neal Norwitz (nnorwitz)
Date: 2006-09-12 22:50

Message:
Logged In: YES 
user_id=33168

The problem is in Python/ast.c around line 666.  See the
comment:

/* def foo((x)): setup for checking NAME below. */

The code is not sufficient, we need a loop and need to
handle various combinations of:

def f(x))),)),))): pass

I don't know if the parens above match, but the general idea
is that there could be a bunch of parens and commas at
various places.  I'm not sure how the above should be
interpreted.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1557232&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1563630 ] IDLE doesn't load - apparently without firewall problems

2006-09-22 Thread SourceForge.net
Bugs item #1563630, was opened at 2006-09-22 17:19
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1563630&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: IDLE
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: dani (daniboy22)
Assigned to: Nobody/Anonymous (nobody)
Summary: IDLE doesn't load - apparently without firewall problems

Initial Comment:
I've installed Python in Windows XP, SP2. When I ran
IDLE for the first times, it worked ok. But then I
redefined some shorcuts (history-previous,
history-next, and expand-word). This also worked ok,
but there was a problem I wasn't expecting: I changed
the history-previous to the short-cut  + P, and
when I use it for the first time it printed the content
of the window... I forgot that this shorcut was already
in use...

Then came the real problem. I went to redefine the
history-previous to another key set, but each time I
clicked for "oK" for the new keys, the shell wrote some
errors in red (-/+ 7/8 lines). I did that a few times
until I closed IDLE and tried to restarted it again.
Then it stop working.

The only thing it does now is to show the hourglass
logo in the mouse pointer for a few seconds and then it
does not do anything else.

I've installed Python in its default path
(C:\Python25), and tried to switch off all the
firewalls I remembered (Windows Firewall and disabled
McAfee Virus Scan). None of that worked. I tried
several times to reinstall the software, but that
didn't work either.

I even tried to install a previous version of Python
(v2.4.3), but it had exactly the same problem.

I haven't found any similar problem on the web.

Thanks,
Dani 

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1563630&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1562822 ] decimal module borks thread

2006-09-22 Thread SourceForge.net
Bugs item #1562822, was opened at 2006-09-21 13:59
Message generated for change (Comment added) made by steevel
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1562822&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Threads
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jaster (steevel)
Assigned to: Nobody/Anonymous (nobody)
Summary: decimal module borks thread

Initial Comment:
I got across this while trying to use MySQLdb in a
thread. Since MySQLdb imports decimal I got the same
error there.

Code: (This happens in both 2.4 and 2.5)

import thread, time, sys
if len(sys.argv) > 1:
   import threading

def test ():
   import decimal
   print 'Exiting test.'

thread.start_new_thread(test, ())
time.sleep(1)


Output:
$ ./thread.py 1
Exiting test.

$ ./thread.py
Exiting test.
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/local/python2.5/lib/python2.5/atexit.py",
line 24, in _run_exitfuncs
func(*targs, **kargs)
  File
"/usr/local/python2.5/lib/python2.5/threading.py", line
656, in __exitfunc
self._Thread__delete()
  File
"/usr/local/python2.5/lib/python2.5/threading.py", line
540, in __delete
del _active[_get_ident()]
KeyError: -1209698640
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/local/python2.5/lib/python2.5/atexit.py",
line 24, in _run_exitfuncs
func(*targs, **kargs)
  File
"/usr/local/python2.5/lib/python2.5/threading.py", line
656, in __exitfunc
self._Thread__delete()
  File
"/usr/local/python2.5/lib/python2.5/threading.py", line
540, in __delete
del _active[_get_ident()]
KeyError: -1209698640

--

>Comment By: Jaster (steevel)
Date: 2006-09-22 19:56

Message:
Logged In: YES 
user_id=1117967

I don't get this interface. Why can't I post a comment?
To josiahcarlson: The program I'm currently writing is
module based and I don't know what python modules my users
will import. It shouldn't matter tho, either this is a "bug"
or it needs to go in the documentation that you can't import
them in a thread if you havent already imported them before.

--

Comment By: Josiah Carlson (josiahcarlson)
Date: 2006-09-22 05:48

Message:
Logged In: YES 
user_id=341410

I believe it is an issue with the import lock.

If you 'import decimal' prior to starting up your subthread,
everything will run fine.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1562822&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1562822 ] decimal module borks thread

2006-09-22 Thread SourceForge.net
Bugs item #1562822, was opened at 2006-09-21 04:59
Message generated for change (Comment added) made by josiahcarlson
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1562822&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Threads
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Jaster (steevel)
Assigned to: Nobody/Anonymous (nobody)
Summary: decimal module borks thread

Initial Comment:
I got across this while trying to use MySQLdb in a
thread. Since MySQLdb imports decimal I got the same
error there.

Code: (This happens in both 2.4 and 2.5)

import thread, time, sys
if len(sys.argv) > 1:
   import threading

def test ():
   import decimal
   print 'Exiting test.'

thread.start_new_thread(test, ())
time.sleep(1)


Output:
$ ./thread.py 1
Exiting test.

$ ./thread.py
Exiting test.
Error in atexit._run_exitfuncs:
Traceback (most recent call last):
  File "/usr/local/python2.5/lib/python2.5/atexit.py",
line 24, in _run_exitfuncs
func(*targs, **kargs)
  File
"/usr/local/python2.5/lib/python2.5/threading.py", line
656, in __exitfunc
self._Thread__delete()
  File
"/usr/local/python2.5/lib/python2.5/threading.py", line
540, in __delete
del _active[_get_ident()]
KeyError: -1209698640
Error in sys.exitfunc:
Traceback (most recent call last):
  File "/usr/local/python2.5/lib/python2.5/atexit.py",
line 24, in _run_exitfuncs
func(*targs, **kargs)
  File
"/usr/local/python2.5/lib/python2.5/threading.py", line
656, in __exitfunc
self._Thread__delete()
  File
"/usr/local/python2.5/lib/python2.5/threading.py", line
540, in __delete
del _active[_get_ident()]
KeyError: -1209698640

--

Comment By: Josiah Carlson (josiahcarlson)
Date: 2006-09-22 13:25

Message:
Logged In: YES 
user_id=341410

It's not so much that you can't import in a thread, it's
that you can't import in a thread when the importer is
running in another thread.

When you run a module via 'python module.py', Python
compiles that module into bytecode, then imports the module,
which results in the module being executed.  The execution
of the module performs the various imports, function
definitions, class definitions, etc.  When you start up a
thread while the module is being imported, the import lock
doesn't know what to do and bails out, leaving you with the
situation you are having.

Try rewriting your module like:
import thread
import time
import decimal

def test():
import decimal
print "exiting test"

def main():
thread.start_new_thread(test, ())
time.sleep(1)

Then running it via:
python -c "import tmodule;tmodule.main()"

And really, aside from "importing in a thread can be
troublesome, if you don't know what you are doing, don't do
it", what kind of documentation change would you suggest,
and where would it go?

--

Comment By: Jaster (steevel)
Date: 2006-09-22 10:56

Message:
Logged In: YES 
user_id=1117967

I don't get this interface. Why can't I post a comment?
To josiahcarlson: The program I'm currently writing is
module based and I don't know what python modules my users
will import. It shouldn't matter tho, either this is a "bug"
or it needs to go in the documentation that you can't import
them in a thread if you havent already imported them before.

--

Comment By: Josiah Carlson (josiahcarlson)
Date: 2006-09-21 20:48

Message:
Logged In: YES 
user_id=341410

I believe it is an issue with the import lock.

If you 'import decimal' prior to starting up your subthread,
everything will run fine.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1562822&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1563630 ] IDLE doesn't load - apparently without firewall problems

2006-09-22 Thread SourceForge.net
Bugs item #1563630, was opened at 2006-09-22 12:19
Message generated for change (Comment added) made by jordanramz
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1563630&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: IDLE
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: dani (daniboy22)
Assigned to: Nobody/Anonymous (nobody)
Summary: IDLE doesn't load - apparently without firewall problems

Initial Comment:
I've installed Python in Windows XP, SP2. When I ran
IDLE for the first times, it worked ok. But then I
redefined some shorcuts (history-previous,
history-next, and expand-word). This also worked ok,
but there was a problem I wasn't expecting: I changed
the history-previous to the short-cut  + P, and
when I use it for the first time it printed the content
of the window... I forgot that this shorcut was already
in use...

Then came the real problem. I went to redefine the
history-previous to another key set, but each time I
clicked for "oK" for the new keys, the shell wrote some
errors in red (-/+ 7/8 lines). I did that a few times
until I closed IDLE and tried to restarted it again.
Then it stop working.

The only thing it does now is to show the hourglass
logo in the mouse pointer for a few seconds and then it
does not do anything else.

I've installed Python in its default path
(C:\Python25), and tried to switch off all the
firewalls I remembered (Windows Firewall and disabled
McAfee Virus Scan). None of that worked. I tried
several times to reinstall the software, but that
didn't work either.

I even tried to install a previous version of Python
(v2.4.3), but it had exactly the same problem.

I haven't found any similar problem on the web.

Thanks,
Dani 

--

Comment By: jordanramz (jordanramz)
Date: 2006-09-22 16:15

Message:
Logged In: YES 
user_id=1604497

I am having the same problem.  When I first installed it, 
it ran okay.  Now everytime I go back to run it, the 
hourglass on my mouse shows up for a few seconds and then 
nothing.  At first I had v2.4.3 because that's what we're 
using in my class, but I tried v2.5(final) thinking it 
would help, but it didn't, so I reinstalled v2.4.3.   I 
noticed that with my task manager in view, when I click 
the IDLE program my processes jump up one number for a few 
seconds also, then goes back.  So apparently it's running 
but then ending before it loads up?  I tried messing with 
my firewall and stuff also, with no success, so I'm in the 
same boat as you.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1563630&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1563759 ] struct.unpack doens't support buffer protocol objects

2006-09-22 Thread SourceForge.net
Bugs item #1563759, was opened at 2006-09-23 01:17
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1563759&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Python Library
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Adal Chiriliuc (adalx)
Assigned to: Nobody/Anonymous (nobody)
Summary: struct.unpack doens't support buffer protocol objects

Initial Comment:
If you pass an object which supports the buffer
protocol to struct.unpack it will fail because it
specifically checks for a string.

You should use PyObject_AsReadBuffer instead.

If this code is performance critical, you could add an
unpack_buffer method or something like that.

--

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1563759&group_id=5470
___
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[ python-Bugs-1542949 ] idle in python 2.5c1 freezes on macos 10.3.9

2006-09-22 Thread SourceForge.net
Bugs item #1542949, was opened at 2006-08-18 21:51
Message generated for change (Comment added) made by dstrozzi
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1542949&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: IDLE
Group: Python 2.5
Status: Open
Resolution: None
Priority: 6
Submitted By: David Strozzi (dstrozzi)
Assigned to: Ronald Oussoren (ronaldoussoren)
Summary: idle in python 2.5c1 freezes on macos 10.3.9

Initial Comment:
Hi,

I installed python 2.5b3 on a powerbook ppc laptop
running macos 10.3.9 a few days ago.  python and idle
worked.  Now I installed 2.5c1.  python works fine from
a terminal.  When I start idle, it loads, puts up its
menu bar, opens a shell window, displays usual startup
info, and gives me a prompt.  But, I can't type or get
a cursor. Whenever I move the mouse over the idle
window or menu bar, I get a spinning color wheel and
can't do anything.

I deleted the whole /library/python tree, reinstalled
2.5c1, and exactly the same thing happened.

Oh, and I rebooted :)

Not sure what is happening, or how to diagnose.

--

>Comment By: David Strozzi (dstrozzi)
Date: 2006-09-22 18:35

Message:
Logged In: YES 
user_id=1056922

Hi,

Python 2.5 installs, and idle runs, perfectly on my 10.3.9
system!  Kudos to our noble MacOS builder!  Looks like the
problem vanished.

I'm going to risk bugging people here about my inability to
compile numpy 1.0* (* = betas and current release candidate
1) on the same 10.3.9 system.  The end of this post is a
dump of trying to install as per numpy directions.  One line
is very suspicious:

C compiler: gcc -arch ppc -arch i386 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common
-dynamic -DNDEBUG -g -O3

-arch pcc -arch i386??  Smells bad.

10.4u.sdk??  I have sys 10.3.9;
/Developer/SDKs/MacOSX10.3.0.sdk exists on my system, but
not 10.4u.

Right after this, I get the error:
gcc: cannot specify -o with -c or -S and multiple compilations

gcc 3.3 is my 'main' gcc, although I finked 4.0 but haven't
replaced my 'main' gcc with it.

Anyway, thoughts are greatly appreciated, both by me and
presumably the numpy people (who haven't replied to any of
my bug postings :) )

** The whole dump **

> python setup.py install
Running from numpy source directory.
F2PY Version 2_3198
blas_opt_info:
  FOUND:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3)]
extra_compile_args = ['-faltivec',
'-I/System/Library/Frameworks/vecLib.framework/Headers']

lapack_opt_info:
  FOUND:
extra_link_args = ['-Wl,-framework', '-Wl,Accelerate']
define_macros = [('NO_ATLAS_INFO', 3)]
extra_compile_args = ['-faltivec']

running install
running build
running config_fc
running build_src
building py_modules sources
building extension "numpy.core.multiarray" sources
Generating build/src.macosx-10.3-fat-2.5/numpy/core/config.h
customize NAGFCompiler
customize AbsoftFCompiler
customize IbmFCompiler
Could not locate executable f95
customize GnuFCompiler
customize GnuFCompiler
customize GnuFCompiler using config
C compiler: gcc -arch ppc -arch i386 -isysroot
/Developer/SDKs/MacOSX10.4u.sdk -fno-strict-aliasing
-Wno-long-double -no-cpp-precomp -mno-fused-madd -fno-common
-dynamic -DNDEBUG -g -O3

compile options:
'-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-Inumpy/core/src -Inumpy/core/include
-I/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5
-c'
gcc: _configtest.c
gcc: cannot specify -o with -c or -S and multiple compilations
gcc: cannot specify -o with -c or -S and multiple compilations
failure.
removing: _configtest.c _configtest.o
numpy/core/setup.py:50: DeprecationWarning: raising a string
exception is deprecated
  raise "ERROR: Failed to test configuration"
Traceback (most recent call last):
  File "setup.py", line 89, in 
setup_package()
  File "setup.py", line 82, in setup_package
configuration=configuration )
  File
"/Volumes/Data/strozzi2/downloads/numpy-1.0rc1/numpy/distutils/core.py",
line 174, in setup
return old_setup(**new_attr)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/core.py",
line 151, in setup
dist.run_commands()
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 974, in run_commands
self.run_command(cmd)
  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/distutils/dist.py",
line 994, in run_command
cmd_obj.run()
  File
"/Volumes/Data/strozzi2/downloads/numpy-1.0rc1/numpy/distutils/command/install.py",
line 16, in run
r = old_install.run(self)
  File
"/Library/Frameworks/Python.framework/Version

[ python-Bugs-1563807 ] Build of Python 2.5 on AIX 5.3 with GCC Fails

2006-09-22 Thread SourceForge.net
Bugs item #1563807, was opened at 2006-09-22 20:07
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1563807&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Daniel Clark (djbclark)
Assigned to: Nobody/Anonymous (nobody)
Summary: Build of Python 2.5 on AIX 5.3 with GCC Fails

Initial Comment:
Build of Python 2.5 on AIX 5.3 with GCC (tried 
multiple versions: 3.3.2 from Bull Freeware, 4.1.0 and 
4.1.1 from UCLA) fails with the below error message.

Tried various configure lines, which all get to the 
same error, the most simple being:
./configure --disable-ipv6 --with-gcc --with-cxx=g++
(With gcc 3.3.2 I also needed --without-threads)

[...]
building '_ctypes' extension
./Modules/ld_so_aix gcc -pthread -bI:Modules/
python.exp build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/_ctypes.o build/
temp.aix-5.3-2.5/usr/local/src/python-2.5/Python-2.5/
Modules/_ctypes/callbacks.o build/temp.aix-5.3-2.5/usr/
local/src/python-2.5/Python-2.5/Modules/_ctypes/
callproc.o build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/stgdict.o build/
temp.aix-5.3-2.5/usr/local/src/python-2.5/Python-2.5/
Modules/_ctypes/cfield.o build/temp.aix-5.3-2.5/usr/
local/src/python-2.5/Python-2.5/Modules/_ctypes/
malloc_closure.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
prep_cif.o build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
ffi_darwin.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
powerpc/aix.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
powerpc/aix_closure.o -L/usr/local/lib -o build/
lib.aix-5.3-2.5/_ctypes.so
ld: 0711-317 ERROR: Undefined 
symbol: .ffi_prep_cif_machdep
ld: 0711-317 ERROR: Undefined symbol: .ffi_call
ld: 0711-317 ERROR: Undefined symbol: .ffi_prep_closure
ld: 0711-317 ERROR: Undefined 
symbol: .ffi_closure_helper_DARWIN
ld: 0711-345 Use the -bloadmap or -bnoquiet option to 
obtain more information.
collect2: ld returned 8 exit status
*** WARNING: renaming "_ctypes" since importing it 
failed: Could not load module build/lib.aix-5.3-2.5.
System error: No such file or directory
error: No such file or directory
gmake: *** [sharedmods] Error 1

Re-running the failing stanza with -Wl,-bnoquiet gives:

(ld): halt 4
(ld): setopt r/o->w 
(ld): setopt nodelcsect 
(ld): setfflag 4
(ld): savename build/lib.aix-5.3-2.5/_ctypes.so
(ld): filelist 17 3
(ld): setopt noprogram
(ld): entry init_ctypes
ENTRY: Entry point set to init_ctypes
(ld): i /lib/crt0_r.o
(ld): i /tmp//ccigrpfq.o
(ld): lib /usr/lib/libm.a
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/_ctypes.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/callbacks.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/callproc.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/stgdict.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/cfield.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/malloc_closure.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/prep_cif.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
ffi_darwin.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/aix.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
aix_closure.o
(ld): i /usr/local/encap/gcc-4.1.1/bin/../lib/gcc/
powerpc-ibm-aix5.3.0.0/4.1.1/pthread/libgcc.a
(ld): i /usr/local/encap/gcc-4.1.1/bin/../lib/gcc/
powerpc-ibm-aix5.3.0.0/4.1.1/pthread/libgcc_eh.a
(ld): lib /usr/lib/libpthreads.a
(ld): lib /usr/lib/libc.a
LIBRARY: Shared object libpthreads.a[shr_comm.o]: 173 
symbols imported.
LIBRARY: Shared object libpthreads.a[shr_xpg5.o]: 161 
symbols imported.
LIBRARY: Shared object libc.a[shr.o]: 2820 symbols 
imported.
LIBRARY: Shared object libc.a[meth.o]: 2 symbols 
imported.
LIBRARY: Shared object libc.a[posix_aio.o]: 20 symbols 
imported.
LIBRARY: Shared object libc.a[aio.o]: 14 symbols 
imported.
LIBRARY: Shared object libc.a[pse.o]: 5 symbols 
imported.
LIBRARY: Shared object libc.a[dl.o]: 4 symbols 
imported.
LIBRARY: Shared object libc.a[pty.o]: 1 symbols 
imported.
FILELIST: Number of previously inserted files 
processed: 17
(ld): imports Modules/python.exp 
IMPORTS: Symbols imported from import file Modules/
pyt

[ python-Bugs-1563807 ] Build of Python 2.5 on AIX 5.3 with GCC Fails

2006-09-22 Thread SourceForge.net
Bugs item #1563807, was opened at 2006-09-22 20:07
Message generated for change (Comment added) made by djbclark
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1563807&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Platform-specific
Status: Open
Resolution: None
Priority: 5
Submitted By: Daniel Clark (djbclark)
>Assigned to: Thomas Heller (theller)
Summary: Build of Python 2.5 on AIX 5.3 with GCC Fails

Initial Comment:
Build of Python 2.5 on AIX 5.3 with GCC (tried 
multiple versions: 3.3.2 from Bull Freeware, 4.1.0 and 
4.1.1 from UCLA) fails with the below error message.

Tried various configure lines, which all get to the 
same error, the most simple being:
./configure --disable-ipv6 --with-gcc --with-cxx=g++
(With gcc 3.3.2 I also needed --without-threads)

[...]
building '_ctypes' extension
./Modules/ld_so_aix gcc -pthread -bI:Modules/
python.exp build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/_ctypes.o build/
temp.aix-5.3-2.5/usr/local/src/python-2.5/Python-2.5/
Modules/_ctypes/callbacks.o build/temp.aix-5.3-2.5/usr/
local/src/python-2.5/Python-2.5/Modules/_ctypes/
callproc.o build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/stgdict.o build/
temp.aix-5.3-2.5/usr/local/src/python-2.5/Python-2.5/
Modules/_ctypes/cfield.o build/temp.aix-5.3-2.5/usr/
local/src/python-2.5/Python-2.5/Modules/_ctypes/
malloc_closure.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
prep_cif.o build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
ffi_darwin.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
powerpc/aix.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
powerpc/aix_closure.o -L/usr/local/lib -o build/
lib.aix-5.3-2.5/_ctypes.so
ld: 0711-317 ERROR: Undefined 
symbol: .ffi_prep_cif_machdep
ld: 0711-317 ERROR: Undefined symbol: .ffi_call
ld: 0711-317 ERROR: Undefined symbol: .ffi_prep_closure
ld: 0711-317 ERROR: Undefined 
symbol: .ffi_closure_helper_DARWIN
ld: 0711-345 Use the -bloadmap or -bnoquiet option to 
obtain more information.
collect2: ld returned 8 exit status
*** WARNING: renaming "_ctypes" since importing it 
failed: Could not load module build/lib.aix-5.3-2.5.
System error: No such file or directory
error: No such file or directory
gmake: *** [sharedmods] Error 1

Re-running the failing stanza with -Wl,-bnoquiet gives:

(ld): halt 4
(ld): setopt r/o->w 
(ld): setopt nodelcsect 
(ld): setfflag 4
(ld): savename build/lib.aix-5.3-2.5/_ctypes.so
(ld): filelist 17 3
(ld): setopt noprogram
(ld): entry init_ctypes
ENTRY: Entry point set to init_ctypes
(ld): i /lib/crt0_r.o
(ld): i /tmp//ccigrpfq.o
(ld): lib /usr/lib/libm.a
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/_ctypes.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/callbacks.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/callproc.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/stgdict.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/cfield.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/malloc_closure.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/prep_cif.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
ffi_darwin.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/aix.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
aix_closure.o
(ld): i /usr/local/encap/gcc-4.1.1/bin/../lib/gcc/
powerpc-ibm-aix5.3.0.0/4.1.1/pthread/libgcc.a
(ld): i /usr/local/encap/gcc-4.1.1/bin/../lib/gcc/
powerpc-ibm-aix5.3.0.0/4.1.1/pthread/libgcc_eh.a
(ld): lib /usr/lib/libpthreads.a
(ld): lib /usr/lib/libc.a
LIBRARY: Shared object libpthreads.a[shr_comm.o]: 173 
symbols imported.
LIBRARY: Shared object libpthreads.a[shr_xpg5.o]: 161 
symbols imported.
LIBRARY: Shared object libc.a[shr.o]: 2820 symbols 
imported.
LIBRARY: Shared object libc.a[meth.o]: 2 symbols 
imported.
LIBRARY: Shared object libc.a[posix_aio.o]: 20 symbols 
imported.
LIBRARY: Shared object libc.a[aio.o]: 14 symbols 
imported.
LIBRARY: Shared object libc.a[pse.o]: 5 symbols 
imported.
LIBRARY: Shared object libc.a[dl.o]: 4 symbols 
imported.
LIBRARY: Shared object libc.a[pty.o]: 1 symbols 
imported.
FILELIST: Number of previously inserted files 
processed: 17
(ld): imports Modules/python.exp 
IMPORTS: Symbols imported from import file Modules/
python.exp: 1034
(l

[ python-Bugs-1563807 ] _ctypes built with g fails with ld ffi error on AIX 5.3 GCC

2006-09-22 Thread SourceForge.net
Bugs item #1563807, was opened at 2006-09-22 20:07
Message generated for change (Settings changed) made by djbclark
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1563807&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
>Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Daniel Clark (djbclark)
Assigned to: Thomas Heller (theller)
>Summary: _ctypes built with g fails with ld ffi error on AIX 5.3  GCC

Initial Comment:
Build of Python 2.5 on AIX 5.3 with GCC (tried 
multiple versions: 3.3.2 from Bull Freeware, 4.1.0 and 
4.1.1 from UCLA) fails with the below error message.

Tried various configure lines, which all get to the 
same error, the most simple being:
./configure --disable-ipv6 --with-gcc --with-cxx=g++
(With gcc 3.3.2 I also needed --without-threads)

[...]
building '_ctypes' extension
./Modules/ld_so_aix gcc -pthread -bI:Modules/
python.exp build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/_ctypes.o build/
temp.aix-5.3-2.5/usr/local/src/python-2.5/Python-2.5/
Modules/_ctypes/callbacks.o build/temp.aix-5.3-2.5/usr/
local/src/python-2.5/Python-2.5/Modules/_ctypes/
callproc.o build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/stgdict.o build/
temp.aix-5.3-2.5/usr/local/src/python-2.5/Python-2.5/
Modules/_ctypes/cfield.o build/temp.aix-5.3-2.5/usr/
local/src/python-2.5/Python-2.5/Modules/_ctypes/
malloc_closure.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
prep_cif.o build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
ffi_darwin.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
powerpc/aix.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
powerpc/aix_closure.o -L/usr/local/lib -o build/
lib.aix-5.3-2.5/_ctypes.so
ld: 0711-317 ERROR: Undefined 
symbol: .ffi_prep_cif_machdep
ld: 0711-317 ERROR: Undefined symbol: .ffi_call
ld: 0711-317 ERROR: Undefined symbol: .ffi_prep_closure
ld: 0711-317 ERROR: Undefined 
symbol: .ffi_closure_helper_DARWIN
ld: 0711-345 Use the -bloadmap or -bnoquiet option to 
obtain more information.
collect2: ld returned 8 exit status
*** WARNING: renaming "_ctypes" since importing it 
failed: Could not load module build/lib.aix-5.3-2.5.
System error: No such file or directory
error: No such file or directory
gmake: *** [sharedmods] Error 1

Re-running the failing stanza with -Wl,-bnoquiet gives:

(ld): halt 4
(ld): setopt r/o->w 
(ld): setopt nodelcsect 
(ld): setfflag 4
(ld): savename build/lib.aix-5.3-2.5/_ctypes.so
(ld): filelist 17 3
(ld): setopt noprogram
(ld): entry init_ctypes
ENTRY: Entry point set to init_ctypes
(ld): i /lib/crt0_r.o
(ld): i /tmp//ccigrpfq.o
(ld): lib /usr/lib/libm.a
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/_ctypes.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/callbacks.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/callproc.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/stgdict.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/cfield.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/malloc_closure.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/prep_cif.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
ffi_darwin.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/aix.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
aix_closure.o
(ld): i /usr/local/encap/gcc-4.1.1/bin/../lib/gcc/
powerpc-ibm-aix5.3.0.0/4.1.1/pthread/libgcc.a
(ld): i /usr/local/encap/gcc-4.1.1/bin/../lib/gcc/
powerpc-ibm-aix5.3.0.0/4.1.1/pthread/libgcc_eh.a
(ld): lib /usr/lib/libpthreads.a
(ld): lib /usr/lib/libc.a
LIBRARY: Shared object libpthreads.a[shr_comm.o]: 173 
symbols imported.
LIBRARY: Shared object libpthreads.a[shr_xpg5.o]: 161 
symbols imported.
LIBRARY: Shared object libc.a[shr.o]: 2820 symbols 
imported.
LIBRARY: Shared object libc.a[meth.o]: 2 symbols 
imported.
LIBRARY: Shared object libc.a[posix_aio.o]: 20 symbols 
imported.
LIBRARY: Shared object libc.a[aio.o]: 14 symbols 
imported.
LIBRARY: Shared object libc.a[pse.o]: 5 symbols 
imported.
LIBRARY: Shared object libc.a[dl.o]: 4 symbols 
imported.
LIBRARY: Shared object libc.a[pty.o]: 1 symbols 
imported.
FILELIST: Number of previously inserted files 
processed: 17
(ld): imports Modules/python.exp 
IMPORTS: Symbols imported from import file Modules/
python.

[ python-Bugs-1563807 ] _ctypes built with GCC on AIX 5.3 fails with ld ffi error

2006-09-22 Thread SourceForge.net
Bugs item #1563807, was opened at 2006-09-22 20:07
Message generated for change (Settings changed) made by djbclark
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1563807&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Daniel Clark (djbclark)
Assigned to: Thomas Heller (theller)
>Summary: _ctypes built with GCC on AIX 5.3 fails with ld ffi error

Initial Comment:
Build of Python 2.5 on AIX 5.3 with GCC (tried 
multiple versions: 3.3.2 from Bull Freeware, 4.1.0 and 
4.1.1 from UCLA) fails with the below error message.

Tried various configure lines, which all get to the 
same error, the most simple being:
./configure --disable-ipv6 --with-gcc --with-cxx=g++
(With gcc 3.3.2 I also needed --without-threads)

[...]
building '_ctypes' extension
./Modules/ld_so_aix gcc -pthread -bI:Modules/
python.exp build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/_ctypes.o build/
temp.aix-5.3-2.5/usr/local/src/python-2.5/Python-2.5/
Modules/_ctypes/callbacks.o build/temp.aix-5.3-2.5/usr/
local/src/python-2.5/Python-2.5/Modules/_ctypes/
callproc.o build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/stgdict.o build/
temp.aix-5.3-2.5/usr/local/src/python-2.5/Python-2.5/
Modules/_ctypes/cfield.o build/temp.aix-5.3-2.5/usr/
local/src/python-2.5/Python-2.5/Modules/_ctypes/
malloc_closure.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
prep_cif.o build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
ffi_darwin.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
powerpc/aix.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
powerpc/aix_closure.o -L/usr/local/lib -o build/
lib.aix-5.3-2.5/_ctypes.so
ld: 0711-317 ERROR: Undefined 
symbol: .ffi_prep_cif_machdep
ld: 0711-317 ERROR: Undefined symbol: .ffi_call
ld: 0711-317 ERROR: Undefined symbol: .ffi_prep_closure
ld: 0711-317 ERROR: Undefined 
symbol: .ffi_closure_helper_DARWIN
ld: 0711-345 Use the -bloadmap or -bnoquiet option to 
obtain more information.
collect2: ld returned 8 exit status
*** WARNING: renaming "_ctypes" since importing it 
failed: Could not load module build/lib.aix-5.3-2.5.
System error: No such file or directory
error: No such file or directory
gmake: *** [sharedmods] Error 1

Re-running the failing stanza with -Wl,-bnoquiet gives:

(ld): halt 4
(ld): setopt r/o->w 
(ld): setopt nodelcsect 
(ld): setfflag 4
(ld): savename build/lib.aix-5.3-2.5/_ctypes.so
(ld): filelist 17 3
(ld): setopt noprogram
(ld): entry init_ctypes
ENTRY: Entry point set to init_ctypes
(ld): i /lib/crt0_r.o
(ld): i /tmp//ccigrpfq.o
(ld): lib /usr/lib/libm.a
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/_ctypes.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/callbacks.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/callproc.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/stgdict.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/cfield.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/malloc_closure.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/prep_cif.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
ffi_darwin.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/aix.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
aix_closure.o
(ld): i /usr/local/encap/gcc-4.1.1/bin/../lib/gcc/
powerpc-ibm-aix5.3.0.0/4.1.1/pthread/libgcc.a
(ld): i /usr/local/encap/gcc-4.1.1/bin/../lib/gcc/
powerpc-ibm-aix5.3.0.0/4.1.1/pthread/libgcc_eh.a
(ld): lib /usr/lib/libpthreads.a
(ld): lib /usr/lib/libc.a
LIBRARY: Shared object libpthreads.a[shr_comm.o]: 173 
symbols imported.
LIBRARY: Shared object libpthreads.a[shr_xpg5.o]: 161 
symbols imported.
LIBRARY: Shared object libc.a[shr.o]: 2820 symbols 
imported.
LIBRARY: Shared object libc.a[meth.o]: 2 symbols 
imported.
LIBRARY: Shared object libc.a[posix_aio.o]: 20 symbols 
imported.
LIBRARY: Shared object libc.a[aio.o]: 14 symbols 
imported.
LIBRARY: Shared object libc.a[pse.o]: 5 symbols 
imported.
LIBRARY: Shared object libc.a[dl.o]: 4 symbols 
imported.
LIBRARY: Shared object libc.a[pty.o]: 1 symbols 
imported.
FILELIST: Number of previously inserted files 
processed: 17
(ld): imports Modules/python.exp 
IMPORTS: Symbols imported from import file Modules/
python.exp:

[ python-Bugs-1563807 ] _ctypes built with GCC on AIX 5.3 fails with ld ffi error

2006-09-22 Thread SourceForge.net
Bugs item #1563807, was opened at 2006-09-22 20:07
Message generated for change (Comment added) made by djbclark
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1563807&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Daniel Clark (djbclark)
Assigned to: Thomas Heller (theller)
Summary: _ctypes built with GCC on AIX 5.3 fails with ld ffi error

Initial Comment:
Build of Python 2.5 on AIX 5.3 with GCC (tried 
multiple versions: 3.3.2 from Bull Freeware, 4.1.0 and 
4.1.1 from UCLA) fails with the below error message.

Tried various configure lines, which all get to the 
same error, the most simple being:
./configure --disable-ipv6 --with-gcc --with-cxx=g++
(With gcc 3.3.2 I also needed --without-threads)

[...]
building '_ctypes' extension
./Modules/ld_so_aix gcc -pthread -bI:Modules/
python.exp build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/_ctypes.o build/
temp.aix-5.3-2.5/usr/local/src/python-2.5/Python-2.5/
Modules/_ctypes/callbacks.o build/temp.aix-5.3-2.5/usr/
local/src/python-2.5/Python-2.5/Modules/_ctypes/
callproc.o build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/stgdict.o build/
temp.aix-5.3-2.5/usr/local/src/python-2.5/Python-2.5/
Modules/_ctypes/cfield.o build/temp.aix-5.3-2.5/usr/
local/src/python-2.5/Python-2.5/Modules/_ctypes/
malloc_closure.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
prep_cif.o build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
ffi_darwin.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
powerpc/aix.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
powerpc/aix_closure.o -L/usr/local/lib -o build/
lib.aix-5.3-2.5/_ctypes.so
ld: 0711-317 ERROR: Undefined 
symbol: .ffi_prep_cif_machdep
ld: 0711-317 ERROR: Undefined symbol: .ffi_call
ld: 0711-317 ERROR: Undefined symbol: .ffi_prep_closure
ld: 0711-317 ERROR: Undefined 
symbol: .ffi_closure_helper_DARWIN
ld: 0711-345 Use the -bloadmap or -bnoquiet option to 
obtain more information.
collect2: ld returned 8 exit status
*** WARNING: renaming "_ctypes" since importing it 
failed: Could not load module build/lib.aix-5.3-2.5.
System error: No such file or directory
error: No such file or directory
gmake: *** [sharedmods] Error 1

Re-running the failing stanza with -Wl,-bnoquiet gives:

(ld): halt 4
(ld): setopt r/o->w 
(ld): setopt nodelcsect 
(ld): setfflag 4
(ld): savename build/lib.aix-5.3-2.5/_ctypes.so
(ld): filelist 17 3
(ld): setopt noprogram
(ld): entry init_ctypes
ENTRY: Entry point set to init_ctypes
(ld): i /lib/crt0_r.o
(ld): i /tmp//ccigrpfq.o
(ld): lib /usr/lib/libm.a
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/_ctypes.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/callbacks.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/callproc.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/stgdict.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/cfield.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/malloc_closure.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/prep_cif.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
ffi_darwin.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/aix.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
aix_closure.o
(ld): i /usr/local/encap/gcc-4.1.1/bin/../lib/gcc/
powerpc-ibm-aix5.3.0.0/4.1.1/pthread/libgcc.a
(ld): i /usr/local/encap/gcc-4.1.1/bin/../lib/gcc/
powerpc-ibm-aix5.3.0.0/4.1.1/pthread/libgcc_eh.a
(ld): lib /usr/lib/libpthreads.a
(ld): lib /usr/lib/libc.a
LIBRARY: Shared object libpthreads.a[shr_comm.o]: 173 
symbols imported.
LIBRARY: Shared object libpthreads.a[shr_xpg5.o]: 161 
symbols imported.
LIBRARY: Shared object libc.a[shr.o]: 2820 symbols 
imported.
LIBRARY: Shared object libc.a[meth.o]: 2 symbols 
imported.
LIBRARY: Shared object libc.a[posix_aio.o]: 20 symbols 
imported.
LIBRARY: Shared object libc.a[aio.o]: 14 symbols 
imported.
LIBRARY: Shared object libc.a[pse.o]: 5 symbols 
imported.
LIBRARY: Shared object libc.a[dl.o]: 4 symbols 
imported.
LIBRARY: Shared object libc.a[pty.o]: 1 symbols 
imported.
FILELIST: Number of previously inserted files 
processed: 17
(ld): imports Modules/python.exp 
IMPORTS: Symbols imported from import file Modules/
python.exp: 103

[ python-Bugs-1563807 ] _ctypes built with GCC on AIX 5.3 fails with ld ffi error

2006-09-22 Thread SourceForge.net
Bugs item #1563807, was opened at 2006-09-22 20:07
Message generated for change (Comment added) made by djbclark
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1563807&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Submitted By: Daniel Clark (djbclark)
Assigned to: Thomas Heller (theller)
Summary: _ctypes built with GCC on AIX 5.3 fails with ld ffi error

Initial Comment:
Build of Python 2.5 on AIX 5.3 with GCC (tried 
multiple versions: 3.3.2 from Bull Freeware, 4.1.0 and 
4.1.1 from UCLA) fails with the below error message.

Tried various configure lines, which all get to the 
same error, the most simple being:
./configure --disable-ipv6 --with-gcc --with-cxx=g++
(With gcc 3.3.2 I also needed --without-threads)

[...]
building '_ctypes' extension
./Modules/ld_so_aix gcc -pthread -bI:Modules/
python.exp build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/_ctypes.o build/
temp.aix-5.3-2.5/usr/local/src/python-2.5/Python-2.5/
Modules/_ctypes/callbacks.o build/temp.aix-5.3-2.5/usr/
local/src/python-2.5/Python-2.5/Modules/_ctypes/
callproc.o build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/stgdict.o build/
temp.aix-5.3-2.5/usr/local/src/python-2.5/Python-2.5/
Modules/_ctypes/cfield.o build/temp.aix-5.3-2.5/usr/
local/src/python-2.5/Python-2.5/Modules/_ctypes/
malloc_closure.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
prep_cif.o build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
ffi_darwin.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
powerpc/aix.o build/temp.aix-5.3-2.5/usr/local/src/
python-2.5/Python-2.5/Modules/_ctypes/libffi/src/
powerpc/aix_closure.o -L/usr/local/lib -o build/
lib.aix-5.3-2.5/_ctypes.so
ld: 0711-317 ERROR: Undefined 
symbol: .ffi_prep_cif_machdep
ld: 0711-317 ERROR: Undefined symbol: .ffi_call
ld: 0711-317 ERROR: Undefined symbol: .ffi_prep_closure
ld: 0711-317 ERROR: Undefined 
symbol: .ffi_closure_helper_DARWIN
ld: 0711-345 Use the -bloadmap or -bnoquiet option to 
obtain more information.
collect2: ld returned 8 exit status
*** WARNING: renaming "_ctypes" since importing it 
failed: Could not load module build/lib.aix-5.3-2.5.
System error: No such file or directory
error: No such file or directory
gmake: *** [sharedmods] Error 1

Re-running the failing stanza with -Wl,-bnoquiet gives:

(ld): halt 4
(ld): setopt r/o->w 
(ld): setopt nodelcsect 
(ld): setfflag 4
(ld): savename build/lib.aix-5.3-2.5/_ctypes.so
(ld): filelist 17 3
(ld): setopt noprogram
(ld): entry init_ctypes
ENTRY: Entry point set to init_ctypes
(ld): i /lib/crt0_r.o
(ld): i /tmp//ccigrpfq.o
(ld): lib /usr/lib/libm.a
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/_ctypes.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/callbacks.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/callproc.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/stgdict.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/cfield.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/malloc_closure.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/prep_cif.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
ffi_darwin.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/aix.o
(ld): i build/temp.aix-5.3-2.5/usr/local/src/python-
2.5/Python-2.5/Modules/_ctypes/libffi/src/powerpc/
aix_closure.o
(ld): i /usr/local/encap/gcc-4.1.1/bin/../lib/gcc/
powerpc-ibm-aix5.3.0.0/4.1.1/pthread/libgcc.a
(ld): i /usr/local/encap/gcc-4.1.1/bin/../lib/gcc/
powerpc-ibm-aix5.3.0.0/4.1.1/pthread/libgcc_eh.a
(ld): lib /usr/lib/libpthreads.a
(ld): lib /usr/lib/libc.a
LIBRARY: Shared object libpthreads.a[shr_comm.o]: 173 
symbols imported.
LIBRARY: Shared object libpthreads.a[shr_xpg5.o]: 161 
symbols imported.
LIBRARY: Shared object libc.a[shr.o]: 2820 symbols 
imported.
LIBRARY: Shared object libc.a[meth.o]: 2 symbols 
imported.
LIBRARY: Shared object libc.a[posix_aio.o]: 20 symbols 
imported.
LIBRARY: Shared object libc.a[aio.o]: 14 symbols 
imported.
LIBRARY: Shared object libc.a[pse.o]: 5 symbols 
imported.
LIBRARY: Shared object libc.a[dl.o]: 4 symbols 
imported.
LIBRARY: Shared object libc.a[pty.o]: 1 symbols 
imported.
FILELIST: Number of previously inserted files 
processed: 17
(ld): imports Modules/python.exp 
IMPORTS: Symbols imported from import file Modules/
python.exp: 103