Opened 13 years ago

Closed 13 years ago

#32402 closed defect (fixed)

mono fails configure

Reported by: gotyaoi@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: leopard Cc:
Port: mono

Description

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.

Attachments (2)

main.log (60.4 KB) - added by gotyaoi@… 13 years ago.
config.log (17.1 KB) - added by gotyaoi@… 13 years ago.

Download all attachments as: .zip

Change History (6)

Changed 13 years ago by gotyaoi@…

Attachment: main.log added

Changed 13 years ago by gotyaoi@…

Attachment: config.log added

comment:1 Changed 13 years ago 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'.

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Keywords: leopard added

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.

comment:3 Changed 13 years ago 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.

comment:4 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: fixed
Status: newclosed

We'll assume it's ok. Made the change in r87794.

Note: See TracTickets for help on using tickets.