Message69744
I downloaded the current source (2.5.2) and confirmed that (1) python
will build as a framework (for me) and (2) that the problem occurs for
my build, too. I did not build it as a universal binary just in case
that helped but mostly to speed things up.
I then tried to add the --with-pydebug flag to my configure script and
build that way. I used separate build directories for the two builds to
keep the source clean. Unfortunately, make fails with the following
error in that case:
if test ""; then \
gcc -o Python.framework/Versions/2.5/Python -arch i386 -arch ppc
-dynamiclib \
-isysroot "" \
-all_load libpython2.5.a -Wl,-single_module \
-install_name
/Library/Frameworks/Python.framework/Versions/2.5/Python \
-compatibility_version 2.5 \
-current_version 2.5; \
else \
/usr/bin/libtool -o Python.framework/Versions/2.5/Python
-dynamic libpython2.5.a \
-lSystem -lSystemStubs -arch_only ppc -install_name
/Library/Frameworks/Python.framework/Versions/2.5/Python
-compatibility_version 2.5 -current_version 2.5 ;\
fi
ld: Undefined symbols:
___eprintf
/usr/bin/libtool: internal link edit command failed
make: *** [Python.framework/Versions/2.5/Python] Error 1
I am guessing that eprintf has something to do with the debug option
because the symbol occurs in the debug version of libpython2.5.a but not
the plain version as far as I can tell. But I'm not sure how to fix it.
I am not even sure I am running the debugger correctly with the existing
version of python. I tried passing "-v -v" and "-d" to python after
reading the man page and that didn't get me any extra information.
Nothing useful-looking, at least. ("-v -v" produced a lot of output
beforehand but not around the point the error occurs.) Is that what you
meant or should I be looking at something else?
I am sorry but I don't know how to augment the source code with printf
and that is such a common term I'm not sure what to google to find
instructions for doing it. |
|
Date |
User |
Action |
Args |
2008-07-16 01:41:19 | cfr | set | spambayes_score: 1.84558e-08 -> 1.845581e-08 recipients:
+ cfr, loewis |
2008-07-16 01:41:19 | cfr | set | spambayes_score: 1.84558e-08 -> 1.84558e-08 messageid: <1216172479.37.0.736555274036.issue3362@psf.upfronthosting.co.za> |
2008-07-16 01:41:18 | cfr | link | issue3362 messages |
2008-07-16 01:41:16 | cfr | create | |
|