[MacPorts] #20894: Mono fails to build on Snow Leopard x86_64

MacPorts noreply at macports.org
Wed Dec 2 04:01:31 PST 2009


#20894: Mono fails to build on Snow Leopard x86_64
----------------------------------+-----------------------------------------
 Reporter:  matt@…                |       Owner:  mww@…           
     Type:  defect                |      Status:  new             
 Priority:  Normal                |   Milestone:                  
Component:  ports                 |     Version:  1.8.0           
 Keywords:  snowleopard           |        Port:  mono            
----------------------------------+-----------------------------------------

Comment(by rob@…):

 The build of mono fails on x86_64 because it can't find the 32bit dynamic
 librares

 if you look at the debug output you will get messages similar to

 ld: warning: in /opt/local/lib/libgthread-2.0.dylib, file is not of
 required architecture
 ld: warning: in /opt/local/lib/libglib-2.0.dylib, file is not of required
 architecture
 ld: warning: in /opt/local/lib/libintl.dylib, file is not of required
 architecture
 ld: warning: in /opt/local/lib/libiconv.dylib, file is not of required
 architecture

 If you get the output

 /opt/local/lib/libiconv.dylib: Mach-O 64-bit dynamically linked shared
 library x86_64

 Then you will need to uninstall glib2, gettext and libiconv and reinstall
 using the universal variant

 # port -f uninstall glib2
 # port -f uninstall gettext
 # port -f uninstall libiconv

 # port install glib2 +universal
 # port install zlib +universal


 # file -L /opt/local/lib/libglib-2.0.dylib

 /opt/local/lib/libglib-2.0.dylib: Mach-O universal binary with 2
 architectures
 /opt/local/lib/libglib-2.0.dylib (for architecture x86_64):     Mach-O
 64-bit dynamically linked shared library x86_64
 /opt/local/lib/libglib-2.0.dylib (for architecture i386):       Mach-O
 dynamically linked shared library i386

 This shows that the libraries are universal

 Then mono should build and install


 Rob

-- 
Ticket URL: <http://trac.macports.org/ticket/20894#comment:32>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list