MacPorts on Snow Leopard

I’ve started to build my development environment on my MacBook, with freshly installed Snow Leopard.

The MacPorts installer distributed as a package at that time (version 1.7.1) didn’t support 64bit platform (now it supports with 1.8.0, I think), so we had to checkout the latest version from svn repos, as described in MacPorts guide.

I’ve got following error message while building Python 2.6 (as a dependency of gnome-doc-utils) with MacPorts 1.8.99 on my MacBook (MacOS X 10.6.0).

ld: warning: in Python.framework/Versions/2.6/Python, file is not of required architecture
Undefined symbols:
"_PyMac_Error", referenced from:
"_Py_Main", referenced from:
_main in python.o
ld: symbol(s) not found
collect2: ld returned 1 exit status

And the Ticket 20284 on MacPorts discussion list helped me much… The patch is available there (But, this patch fails while staging Python into destroot.)

Another way is to build gnome-doc-utils with +python25 variant, if you aren’t interested in python 2.6. This enables to build gnome-doc-utils.

Things that I couldn’t build with MacPorts:
– screen
– osxutils (hmm, osxutils uses MacOSX10.4sdk ???)
– ncbi_tools
– gcc43

Things I could build successfully:
– coreutils, lv, lha
– ccache, boost, git, subversion
– ncftp, wget
– iverilog, gtkwave
– tgif, ImageMagick, ghostscript, gv, gqview
– a2ps, ptex
– gtk2, pidgin
– gnuplot, EMBOSS

Others:
– tuntaposx: see this entry.

コメントを残す