Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #59345
| Path | csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed4.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <paul@mad-scientist.net> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.005 |
| X-Spam-Evidence | '*H*': 0.99; '*S*': 0.00; 'scripts': 0.03; 'configure': 0.05; 'importerror:': 0.07; 'forcing': 0.09; 'lookup': 0.09; 'referenced': 0.09; 'setup.py': 0.09; 'python': 0.11; '2):': 0.16; 'fine.': 0.16; 'macosx': 0.16; 'recipe': 0.16; 'skip:d 60': 0.16; 'steps,': 0.16; 'subject:failed': 0.16; 'unpack': 0.16; 'subject:python': 0.16; 'all.': 0.16; 'library': 0.18; 'module': 0.19; 'seems': 0.21; 'example': 0.22; 'import': 0.22; 'install': 0.23; '2.1': 0.24; 'subject: .': 0.24; "i've": 0.25; 'source': 0.25; 'skip:" 40': 0.26; 'tried': 0.27; 'skip:p 30': 0.29; "i'm": 0.30; 'gcc': 0.31; 'location,': 0.31; 'python2.7': 0.31; 'struct': 0.31; 'file': 0.32; 'worked': 0.33; '(most': 0.33; 'skip:_ 10': 0.34; 'received:66': 0.35; "can't": 0.35; 'problem.': 0.35; 'but': 0.35; 'version': 0.36; 'in:': 0.36; "didn't": 0.36; 'should': 0.36; 'skip:- 20': 0.37; 'being': 0.38; 'expected': 0.38; 'system,': 0.38; 'to:addr:python-list': 0.38; 'files': 0.38; 'skip:- 10': 0.38; 'anything': 0.39; 'recent': 0.39; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'received:unknown': 0.61; 'received:173': 0.61; 'simple': 0.61; 'myself': 0.63; 'refer': 0.63; 'choose': 0.64; 'header:Reply- To:1': 0.67; 'containing': 0.69; 'reply-to:no real name:2**0': 0.71; 'export': 0.74; '4.2.1': 0.84; 'received:66.147': 0.84 |
| DKIM-Signature | v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mad-scientist.net; s=default; h=Content-Transfer-Encoding:Mime-Version:Content-Type:Date:To:Reply-To:From:Subject:Message-ID; bh=H9ooQ/LjXe19HoSwCQHaq/bpXJ5QNz3kJAsQaOAnmO4=; b=Knj93d76u0l5+bbSeGvU5KROOIme+11dhAyF22DLY//yH5dEM9+kTpaXKy5DCyuS8xtm1W16/wi+FCatThtmaL6lY58m2je3JGU9Mv6pOcnGBtKo+c8HkPVEIeBdq2v/; |
| Subject | python 2.7.x on MacOSX: failed dlopen() on .so's |
| From | Paul Smith <paul@mad-scientist.net> |
| To | python-list@python.org |
| Date | Wed, 13 Nov 2013 14:16:23 -0500 |
| Organization | GNU's Not UNIX! |
| Content-Type | text/plain; charset="UTF-8" |
| X-Mailer | Evolution 3.6.4 |
| Mime-Version | 1.0 |
| Content-Transfer-Encoding | 7bit |
| X-Identified-User | {678:box531.bluehost.com:madscie1:mad-scientist.us} {sentby:smtp auth 173.9.45.73 authed with paul+mad-scientist.us} |
| X-Mailman-Approved-At | Wed, 13 Nov 2013 22:52:52 +0100 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.15 |
| Precedence | list |
| Reply-To | paul@mad-scientist.net |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.2554.1384379573.18130.python-list@python.org> (permalink) |
| Lines | 49 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1384379573 news.xs4all.nl 15959 [2001:888:2000:d::a6]:44223 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:59345 |
Show key headers only | View raw
Hi all. I need to build my own version of Python on a MacOSX system,
and I can't seem to do it successfully. I need to build it with a
particular location, etc. and so I can't use Homebrew or whatever: I
need to compile it myself from the source tarball. I did look through
the Homebrew recipe and I don't see anything that seems like it would
help with my problem.
I'm using MacOSX 10.7.5 with xcode 4.1, containing gcc 4.2.1 / clang 2.1
(configure seems to choose gcc).
I've tried this with both Python 2.7.5 and 2.7.6. I get the tarball,
unpack it, then:
$ configure --prefix=/Users/build/python
$ make
$ make install
$ export PATH=/Users/build/python/bin:$PATH
$ export PYTHONHOME=/Users/build/python
$ python2.7 --version
Python 2.7.6
Simple scripts seem to work fine. But then I need to install various
packages; for example pycrypto. When I try to build that it fails to
build:
$ cd src/pycrypto-2.6 && python2.7 setup.py build
Traceback (most recent call last):
File "setup.py", line 45, in <module>
import struct
File "/Users/build/python/lib/python2.7/struct.py", line 1, in <module>
from _struct import *
ImportError: dlopen(/Users/build/python/lib/python2.7/lib-dynload/_struct.so, 2): Symbol not found: _PyObject_Free
Referenced from: /Users/build/python/lib/python2.7/lib-dynload/_struct.so
Expected in: dynamic lookup
This happens with every module that is not pure-Python: boto, paramiko,
etc.
Looking at the various python2.7/lib-dynload/*.so files with nm I see
that actually a number of them refer to an unresolved ("U") symbol
_PyObject_Free (and other _PyObject_* symbols). I can't find any shared
library being built by the python build (.dylib or .so or whatever);
there's just a libpython2.7.a file (I tried forcing --enable-shared on
the configure line and it didn't change anything).
I should say that I've used this same configuration and set of steps,
etc. on my GNU/Linux system and it worked perfectly.
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
python 2.7.x on MacOSX: failed dlopen() on .so's Paul Smith <paul@mad-scientist.net> - 2013-11-13 14:16 -0500
csiph-web