#25230: xorg-libXext: in /opt/local/lib/libX11.dylib, file was built for unsupported file format which is not the architecture being linked (i386) --------------------------------+------------------------------------------- Reporter: kasper@… | Owner: jeremyhu@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 1.9.0 Keywords: | Port: xorg-libXext --------------------------------+------------------------------------------- Changes (by ryandesign@…): * cc: kasper@… (removed) * owner: macports-tickets@… => jeremyhu@… * port: => xorg-libXext Comment: Please fill in the port field, Cc the port maintainer, and note you do not need to Cc yourself. {{{ ... CFLAGS='-O2 -arch x86_64 -arch i386' ... MACOSX_DEPLOYMENT_TARGET='10.6' ... }}} Ok, I see you are on Snow Leopard, and are trying to build xorg-libXext universal for x86_64 and i386. {{{ :info:build ld: warning: in /opt/local/lib/libX11.dylib, file was built for unsupported file format which is not the architecture being linked (i386) :info:build ld: warning: in /opt/local/lib/libXau.dylib, file was built for unsupported file format which is not the architecture being linked (i386) :info:build ld: warning: in /opt/local/lib/libXdmcp.dylib, file was built for unsupported file format which is not the architecture being linked (i386) }}} For what architecture are each of those libraries built? ("lipo -info" can tell you) The ports that provide those libraries ("port provides" can tell you) need to be rebuilt with the universal variant, e.g.: {{{ $ port provides /opt/local/lib/libX11.dylib /opt/local/lib/libXau.dylib /opt/local/lib/libXdmcp.dylib /opt/local/lib/libX11.dylib is provided by: xorg-libX11 /opt/local/lib/libXau.dylib is provided by: xorg-libXau /opt/local/lib/libXdmcp.dylib is provided by: xorg-libXdmcp $ sudo port upgrade --enforce-variants xorg-libX11 +universal $ sudo port upgrade --enforce-variants xorg-libXau +universal $ sudo port upgrade --enforce-variants xorg-libXdmcp +universal }}} -- Ticket URL: <http://trac.macports.org/ticket/25230#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS