Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#19044 closed defect (invalid)

python24 OSA module fails to build

Reported by: yqiang@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.7.1
Keywords: python Cc:
Port: python24

Description (last modified by blb@…)

~$ uname -a Darwin iapetus.local 9.6.0 Darwin Kernel Version 9.6.0: Mon Nov 24 17:37:00 PST 2008; root:xnu-1228.9.59~1/RELEASE_I386 i386 i386

MacPorts 1.710

Unibody Macbook, 4GB Ram

python24 fails to install for me because the OSA module fails to compile.

~$ port clean python24
Password:
--->  Cleaning python24
~$ port install python24
Password:
--->  Fetching python24
--->  Verifying checksum(s) for python24
--->  Extracting python24
--->  Applying patches to python24
--->  Configuring python24
--->  Building python24
--->  Staging python24 into destroot
Error: Target org.macports.destroot returned: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/Python-2.4.6" && make frameworkinstall maninstall DESTDIR=/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/destroot " returned error 2
Command output: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/Python-2.4.6/Mac/Modules/osa/_OSAmodule.c:1003: error: 'OSADebuggerGetPreviousCallFrame' undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/Python-2.4.6/Mac/Modules/osa/_OSAmodule.c:1006: error: 'inCurrentFrame' undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/Python-2.4.6/Mac/Modules/osa/_OSAmodule.c:1008: warning: implicit declaration of function 'OSADebuggerGetPreviousCallFrame'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/Python-2.4.6/Mac/Modules/osa/_OSAmodule.c:1010: error: 'outPrevFrame' undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/Python-2.4.6/Mac/Modules/osa/_OSAmodule.c: In function 'OSAObj_OSADebuggerDisposeCallFrame':
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/Python-2.4.6/Mac/Modules/osa/_OSAmodule.c:1021: error: 'OSADebugCallFrameRef' undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/Python-2.4.6/Mac/Modules/osa/_OSAmodule.c:1021: error: syntax error before 'inCallFrame'
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/Python-2.4.6/Mac/Modules/osa/_OSAmodule.c:1023: error: 'OSADebuggerDisposeCallFrame' undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/Python-2.4.6/Mac/Modules/osa/_OSAmodule.c:1026: error: 'inCallFrame' undeclared (first use in this function)
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/Python-2.4.6/Mac/Modules/osa/_OSAmodule.c:1028: warning: implicit declaration of function 'OSADebuggerDisposeCallFrame'
running build_scripts
Creating directory /opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/config
Skip install of libpython2.4.a - use make frameworkinstall
/usr/bin/install -c -m 644 Modules/config.c /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/config/config.c
/usr/bin/install -c -m 644 Modules/ccpython.o /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/config/ccpython.o
/usr/bin/install -c -m 644 ./Modules/config.c.in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/config/config.c.in
/usr/bin/install -c -m 644 Makefile /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/config/Makefile
/usr/bin/install -c -m 644 Modules/Setup /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/config/Setup
/usr/bin/install -c -m 644 Modules/Setup.local /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_lang_python24/work/destroot/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/config/Setup.local

Attachments (1)

python24.log (6.0 KB) - added by yqiang@… 15 years ago.
install log of python24

Download all attachments as: .zip

Change History (12)

comment:1 Changed 15 years ago by blb@…

Description: modified (diff)

What's your version of Xcode?

xcodebuild -version

comment:2 Changed 15 years ago by yqiang@…

~$ xcodebuild -version Xcode 3.1.2 Component versions: DevToolsCore-1148.0; DevToolsSupport-1102.0 BuildVersion: 9M2621

comment:3 Changed 15 years ago by blb@…

Did the actual install of python24 fail as well? Building the OSA module failed (and fails for me as well), but I don't see any further errors later in your output.

Note that it appears that this is going to fail on 10.5, according to a python commit which suggests some calls aren't available on 10.5 at all. Since I don't think they will be further supporting 2.4 we'll just have to deal with the OSA module being unavailable with 2.4 on 10.5.

comment:4 Changed 15 years ago by yqiang@…

I think python24 fails to install.

~$ python_select -l Available versions: current none python25 python25-apple python26

comment:5 Changed 15 years ago by blb@…

Interesting, the OSA module fails to build for me but python24 does finish installing (and FYI, you can use port installed python24 to see if it is installed).

Was there more output from port after what you initially posted here?

comment:6 Changed 15 years ago by yqiang@…

~$ port installed python24 Password: None of the specified ports are installed.

~$ port clean python24 ---> Cleaning python24

~$ port install python24 &> python24.log

See attached log.

Changed 15 years ago by yqiang@…

Attachment: python24.log added

install log of python24

comment:7 Changed 15 years ago by yqiang@…

Also, just to add to the confusion, I have an iMac running the exact same version of Xcode & OSX and python24 builds fine there.

comment:8 Changed 15 years ago by blb@…

You wouldn't happen to have a .pydistutils.cfg file in your home directory would you?

comment:9 in reply to:  8 Changed 15 years ago by yqiang@…

Replying to blb@…:

You wouldn't happen to have a .pydistutils.cfg file in your home directory would you?

Doh! That fixed it. I can't remember why I have that config file anymore, but removing it did the trick. Thanks again!

comment:10 Changed 15 years ago by blb@…

Resolution: invalid
Status: newclosed

Glad to hear that it works. Note that we've integrated some patches into later pythons to avoid this so a .pydistutils.cfg won't get in the way for 2.5 and later (eventually those patches will make their way into python itself, see #9831 and python issue 1180).

comment:11 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.