Summary: | lang/mono (mono 3.12.1) does not build on i386 | ||||||
---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | wolfgang | ||||
Component: | Individual Port(s) | Assignee: | freebsd-mono (Nobody) <mono> | ||||
Status: | Closed FIXED | ||||||
Severity: | Affects Some People | CC: | kib, romain | ||||
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(mono) |
||||
Version: | Latest | ||||||
Hardware: | Any | ||||||
OS: | Any | ||||||
Attachments: |
|
Description
wolfgang
2015-03-07 23:25:54 UTC
Created attachment 154012 [details]
Add prerequisite headers for netinet/tcp.h and for ucontext_t.
The patch I attached is required and was tested on i386 stable/8. Konstantin, why did you had to add <sys/types.h> to mono/metadata/socket-io.c ? I can compile mono in a jail with only the mono/mini/exceptions-x86.c fix. Thanks! A commit references this bug: Author: romain Date: Mon Mar 9 14:11:02 UTC 2015 New revision: 380848 URL: https://svnweb.freebsd.org/changeset/ports/380848 Log: Fix build on i386. PR: ports/198404 Submitted by: wolfgang@lyxys.ka.sub.org Obtained from: kib Changes: head/lang/mono/files/patch-mono_mini_exceptions-x86.c Fix committed (to mono/mini/exceptions-x86.c only since I did not needed the other patch to build on an i386 jail). Please reopen if the other patch is also required. Without the socket-io.c chunk, I get the following (on stable/8, this is probably important): CC libmonoruntime_la-opcodes.lo CC libmonoruntime_la-socket-io.lo In file included from socket-io.c:29: /usr/include/netinet/tcp.h:40:9: error: unknown type name 'u_int32_t' typedef u_int32_t tcp_seq; ^ /usr/include/netinet/tcp.h:50:2: error: unknown type name 'u_short' u_short th_sport; /* source port */ ^ /usr/include/netinet/tcp.h:51:2: error: unknown type name 'u_short' u_short th_dport; /* destination port */ ^ /usr/include/netinet/tcp.h:55:2: error: unknown type name 'u_int' u_int th_x2:4, /* (unused) */ ^ /usr/include/netinet/tcp.h:62:2: error: unknown type name 'u_char' u_char th_flags; <lot more whining stripped> Good catch! Committed, thanks! A commit references this bug: Author: romain Date: Mon Mar 9 15:12:27 UTC 2015 New revision: 380857 URL: https://svnweb.freebsd.org/changeset/ports/380857 Log: Fix build on FreeBSD 8. PR: ports/198404 Reported by: kib Changes: head/lang/mono/files/patch-mono_metadata_socket-io.c I can confirm that the port now builds ok on 10.1-STABLE / i386 |