Opened 11 years ago

Closed 10 years ago

#42837 closed defect (worksforme)

python26, python27: Symbol not found: _AddResource

Reported by: design_by_xs@… Owned by: MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)
Priority: Normal Milestone:
Component: ports Version: 2.2.1
Keywords: Cc: jyrkiwahlstedt, ryandesign (Ryan Carsten Schmidt)
Port: python26, python27

Description (last modified by mf2k (Frank Schima))

Problem installing python 26 (and thus, jailkit)

Before opening this ticket, I did the following:

sudo port selfupdate
sudo port -u upgrade outdated
sudo port clean

When I try to install jailkit, the instller comes to configuring python 26, and fails with this error:

Error: org.macports.destroot for port python26 returned: command execution failed
Please see the log file for port python26 for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python26/python26/main.log

I then ran:

sudo ports clean --all installed
sudo port selfupdate
sudo ports -u upgrade

(Returned: Nothing to upgrade.)

I ran sudo port install python26 (again). --- Log attached. ---

I've encountered other similar problems, staging tools into destroot. System Info: XServe Xeon 2.8Ghz, running OSX 10.5.8.

When I try to do:

which install-info

The returned info is:

/usr/bin/install-info

The problem that I primarily see is that python is returning an error of:

:info:destroot: file is not of required architecture

I next tried to do this:

sudo port install python26 -arch x86_64

and

sudo port install python26 -arch i386

I was hoping that using the arch switch might help.

Note: I did not migrate from another system: The OS install was done on this machine.

What can anyone tell me on how to fix this?

Attachments (2)

ports_python26_main2.log (1.0 MB) - added by design_by_xs@… 11 years ago.
python27.log (1.5 MB) - added by design_by_xs@… 11 years ago.
Python 2.7.6 Staging Errors

Change History (8)

Changed 11 years ago by design_by_xs@…

Attachment: ports_python26_main2.log added

comment:1 Changed 11 years ago by mf2k (Frank Schima)

Description: modified (diff)
Owner: changed from macports-tickets@… to mcalhoun@…

In the future, please use WikiFormatting and Cc the port maintainers (port info --maintainers python26).

comment:2 Changed 11 years ago by mf2k (Frank Schima)

FYI, I have updated the jailkit port to the latest version and to use python 2.7.

Changed 11 years ago by design_by_xs@…

Attachment: python27.log added

Python 2.7.6 Staging Errors

comment:3 Changed 11 years ago by design_by_xs@…

Python 2.7.6 also refuses to stage into root. (Please see log.)

comment:4 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jwa@… added
Port: python27 added
Summary: Error Staging into Destroot for python26 and others.python26, python27: Symbol not found: _AddResource

Hmm, the logs say:

:info:destroot ImportError: dlopen(/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python26/python26/work/Python-2.6.9/build/lib.macosx-10.5-i386-2.6/_Res.so, 2): Symbol not found: _AddResource
:info:destroot   Referenced from: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python26/python26/work/Python-2.6.9/build/lib.macosx-10.5-i386-2.6/_Res.so
:info:destroot   Expected in: dynamic lookup
:info:destroot ImportError: dlopen(/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.6/build/lib.macosx-10.5-i386-2.7/_Res.so, 2): Symbol not found: _AddResource
:info:destroot   Referenced from: /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_lang_python27/python27/work/Python-2.7.6/build/lib.macosx-10.5-i386-2.7/_Res.so
:info:destroot   Expected in: dynamic lookup

I do not see this problem on Mac OS X 10.5.8 with Xcode 3.1.4 (nor any other system).

Please confirm: what version of Xcode do you have? If not 3.1.4, try upgrading to that, since it is the latest version for Mac OS X 10.5.8.

comment:5 Changed 10 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added

Cc Me!

comment:6 Changed 10 years ago by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez)

Resolution: worksforme
Status: newclosed

Closing since there is no response to comment:4, and I am unable to duplicate the problem.

Note: See TracTickets for help on using tickets.