macports 1.8 upgrade from scratch: python build failed

Jeremy Huddleston jeremyhu at macports.org
Tue Sep 1 12:42:47 PDT 2009


What you want to know is located on this page:
http://trac.macports.org/wiki/snc/snowleopard

http://trac.macports.org/ticket/20284

On Sep 1, 2009, at 12:23, Peter Koellner wrote:

> Hi!
>
> After installing Mac OS X 10.6, I had to upgrade Xcode to 3,2 and  
> macPorts 1.6 to
> 1.8. Unfortunately, nothing short of uninstalling all packages worked,
> and I am in the process of reinstalling everything.
> So while installing the prerequisites of gimp, the following error
> shows up. Any idea how to fix this?
>
>
> --->  Attempting to fetch Python-2.6.2.tar.bz2 from
>      http://www.python.org//ftp/python/2.6.2/
> --->  Verifying checksum(s) for python26
> --->  Extracting python26
> --->  Applying patches to python26
> --->  Configuring python26
> --->  Building python26
> Error: Target org.macports.build returned: shell command " cd
>      "/opt/local/var/macports/build/ 
> _opt_local_var_macports_sources_rsync 
> .macports.org_release_ports_lang_python26/work/Python-2.6.2"
>      && /usr/bin/make all MAKE="/usr/bin/make CC=/usr/bin/gcc-4.2" "
>      returned error 2
> Command output: if test ""; then \
> 		/usr/bin/gcc-4.2 -o
>      Python.framework/Versions/2.6/Python  -dynamiclib \
>      					    		-isysroot "" \
> 								     -all_load
>      libpython2.6.a -Wl,-single_module \
>      		     			-install_name
>      /opt/local/Library/Frameworks/Python.framework/Versions/2.6/ 
> Python
>      \
> 		-compatibility_version 2.6 \
> 				       	   -current_version 2.6; \
>        else \
> 	     /usr/bin/libtool -o Python.framework/Versions/2.6/Python
>      -dynamic  libpython2.6.a \
>      			        -lSystem -lSystemStubs -arch_only i386
>      -install_name
>      /opt/local/Library/Frameworks/Python.framework/Versions/2.6/ 
> Python
>      -compatibility_version 2.6 -current_version 2.6 ;\
>      fi
> /usr/bin/install -c -d -m 755  \
> 		    Python.framework/Versions/2.6/Resources/English.lproj
> /usr/bin/install -c -m 644 Mac/Resources/framework/Info.plist \
> 		    Python.framework/Versions/2.6/Resources/Info.plist
> ln -fsn 2.6 Python.framework/Versions/Current
> ln -fsn Versions/Current/Python Python.framework/Python
> ln -fsn Versions/Current/Headers Python.framework/Headers
> ln -fsn Versions/Current/Resources Python.framework/Resources
> /usr/bin/gcc-4.2 -L/opt/local/lib -u _PyMac_Error
>      Python.framework/Versions/2.6/Python -o python.exe \
>      					      Modules/python.o \
> 								 -ldl 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
> make: *** [python.exe] Error 1
>
> Error: The following dependencies failed to build: gimp-app gimp2 gegl
> babl librsvg libgsf gnome-vfs gconf gtk2 atk gtk-doc gnome-doc-utils
> py26-libxml2 python26 rarian getopt intltool gnome-common
> p5-getopt-long p5-pathtools p5-scalar-list-utils cairo libpixman
> libpng jasper jpeg pango shared-mime-info tiff xorg-libXcomposite
> xorg-compositeproto xorg-libXfixes xorg-fixesproto xorg-libXcursor
> xorg-libXdamage xorg-damageproto xorg-libXi xorg-libXinerama
> xorg-xineramaproto xorg-libXrandr xorg-randrproto orbit2 libidl
> policykit gnome-mime-data libbonobo w3m boehmgc ffmpeg XviD dirac
> cppunit faac mp4v2 faad2 gmake lame libogg libsdl-devel libtheora
> libvorbis schroedinger liboil x264 graphviz gd2 xpm urw-fonts
> xorg-libXaw xorg-libXmu xorg-libXt xorg-libsm xorg-libice libopenraw
> boost boost-jam libsdl libspiro lua openexr ilmbase lcms libexif
> libgnomeui gnome-icon-theme hicolor-icon-theme icon-naming-utils
> p5-xml-simple p5-xml-namespacesupport p5-xml-sax gnome-keyring
> libgcrypt libgpg-error libtasn1 libbonoboui libglade2 libgnome esound
> audiofile libgnomecanvas libmng libwmf poppler openjpeg poppler-data
> py25-gtk py25-cairo py25-numpy fftw-3 py25-nose py25-setuptools
> python25 py25-gobject gimp-jp2 gimp-lqr-plugin liblqr
> gtk-nodoka-engine coreutils gmp gutenprint icns-gimp macclipboard-gimp
> macfile-gimp ufraw exiv2 gtkimageview xsane sane-backends
> libusb-compat libusb
> Error: Status 1 encountered during processing.
>
>
>
> -- 
> peter koellner <peter at asgalon.net>
> _______________________________________________
> macports-users mailing list
> macports-users at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macports-users



More information about the macports-users mailing list