FreeBSD doesn't do SysV STREAM, and so doesn't have the XSI-related errno values in errno.h. This is easy to work around, because made-up values are OK, because it doesn't look as though ikarus needs them anyway, and they won't be generated by the system. So this patch (or something like it) is all that I needed to get ikarus to compile on my FreeBSD/amd64 system. Nice work! I haven't used it in anger yet, but it seems to start up, and runs the benchmarks (with some errors and odd output...)
This patch is against:
Ikarus Scheme version 0.0.4-rc1+, 64-bit (revision 1827, build 2009-07-12)
Copyright (c) 2006-2009 Abdulaziz Ghuloum
downloaded using bzr on Saturday 11th.
FreeBSD doesn't do SysV STREAM, and so doesn't have the XSI-related errno values in errno.h. This is easy to work around, because made-up values are OK, because it doesn't look as though ikarus needs them anyway, and they won't be generated by the system. So this patch (or something like it) is all that I needed to get ikarus to compile on my FreeBSD/amd64 system. Nice work! I haven't used it in anger yet, but it seems to start up, and runs the benchmarks (with some errors and odd output...)
This patch is against: Ikarus Scheme version 0.0.4-rc1+, 64-bit (revision 1827, build 2009-07-12) Copyright (c) 2006-2009 Abdulaziz Ghuloum downloaded using bzr on Saturday 11th.
Here's the patch:
--- ikarus.dev/src/ikarus-errno.c.orig 2009-07-12 13:37:04.000000000 +1000 +++ ikarus.dev/src/ikarus-errno.c 2009-07-12 13:43:26.000000000 +1000 @@ -31,6 +31,15 @@
define ECANCELED 140
endif
+#ifndef ENODATA +/* These errno names relate to STREAMs, which are optional in
Launchpad Details: #LP399080 Andrew Reilly - 2009-07-13 21:07:49 -0400