[MacPorts] #32402: mono fails configure
#32402: mono fails configure ---------------------------------+------------------------------------------ Reporter: gotyaoi@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: mono ---------------------------------+------------------------------------------ attempting to install mono with {{{ sudo port install mono }}} and it failed during the configure phase. I'm trying this on 10.5.8. Attaching main.log and config.log. -- Ticket URL: <https://trac.macports.org/ticket/32402> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32402: mono fails configure ---------------------------------+------------------------------------------ Reporter: gotyaoi@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: | Port: mono ---------------------------------+------------------------------------------ Comment(by gotyaoi@…): As best as I can tell, which is not much, here's where it fails in config.log {{{ configure:4721: checking whether we are cross compiling configure:4729: /usr/bin/gcc-4.0 -I/opt/local/var/macports/build/_opt_local_var_ macports_sources_rsync.macports.org_release_ports_devel_mono/mono/work/mono-2.10 .6/libgc/include -o conftest -O2 -D_NONSTD_SOURCE -arch i386 -arch i386 -D_XOPEN _SOURCE -mmacosx-version-min=10.5 -I/opt/local/include -no-cpp-precomp -D_THREAD _SAFE -DGC_MACOSX_THREADS -DPLATFORM_MACOSX -DUSE_MMAP -DUSE_MUNMAP -DGetCurrent Process=MonoGetCurrentProcess -DGetCurrentThread=MonoGetCurrentThread -DCreateEv ent=MonoCreateEvent -arch i386 -D_XOPEN_SOURCE -mmacosx-version-min=10.5 -lintl -lintl -lcharset -arch i386 -lpthread conftest.c >&5 In file included from /usr/include/sys/_types.h:32, from /usr/include/_types.h:27, from /usr/include/stdio.h:64, from conftest.c:14: /usr/include/sys/cdefs.h:275:8: error: #error "Can't define both _NONSTD_SOURCE and any of _DARWIN_C_SOURCE, _XOPEN_SOURCE, _POSIX_C_SOURCE, or __LP64__" configure:4733: $? = 1 configure:4740: ./conftest ./configure: line 4742: ./conftest: No such file or directory configure:4744: $? = 127 configure:4751: error: in `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_mono/mono/work/mono-2.10.6': configure:4753: error: cannot run C compiled programs. If you meant to cross compile, use `--host'. }}} -- Ticket URL: <https://trac.macports.org/ticket/32402#comment:1> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32402: mono fails configure ---------------------------------+------------------------------------------ Reporter: gotyaoi@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: leopard | Port: mono ---------------------------------+------------------------------------------ Changes (by ryandesign@…): * keywords: => leopard Comment: Looks similar to #28803. Probably a Leopard-specific issue. Note the mono Portfile contains this section: {{{ platform darwin 9 { # is this still valid for 2.6.3+ ? configure.cflags-append -D_NONSTD_SOURCE configure.cxxflags-append -D_NONSTD_SOURCE patchfiles-append patch-interp.h.diff patch-sys-mman.c.diff } }}} Try removing those cflags/cxxflags lines from the Portfile and let us know if that helps. -- Ticket URL: <https://trac.macports.org/ticket/32402#comment:2> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32402: mono fails configure ---------------------------------+------------------------------------------ Reporter: gotyaoi@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Keywords: leopard | Port: mono ---------------------------------+------------------------------------------ Comment(by gotyaoi@…): Thank you for the advice. With those two lines removed, mono built and installed successfully. So far, the programs that I needed it for ''appear'' to be working correctly, so here's to hoping that that was all it took. -- Ticket URL: <https://trac.macports.org/ticket/32402#comment:3> MacPorts <http://www.macports.org/> Ports system for Mac OS
#32402: mono fails configure ----------------------------------+----------------------------------------- Reporter: gotyaoi@… | Owner: macports-tickets@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.0.3 Resolution: fixed | Keywords: leopard Port: mono | ----------------------------------+----------------------------------------- Changes (by ryandesign@…): * status: new => closed * resolution: => fixed Comment: We'll assume it's ok. Made the change in r87794. -- Ticket URL: <https://trac.macports.org/ticket/32402#comment:4> MacPorts <http://www.macports.org/> Ports system for Mac OS
participants (1)
-
MacPorts