]> diplodocus.org Git - nmh/blob - MACHINES
Explictly return the exit code, so we can portably guarantee that
[nmh] / MACHINES
1 #
2 # MACHINES -- operating system specific information
3 #
4
5 nmh is known to compile on the following platforms (save the
6 exceptions noted below), using an ANSI C compiler, such as gcc.
7
8 AIX 4.1.5.0.01
9 Cygwin (setup version 2.831, other versions may be fine)
10 FreeBSD
11 IRIX 6.5
12 Linux 2.2 to current (glibc 2.1 to current)
13 Mac OS X
14 NetBSD 1.4.2
15 OpenBSD
16 Solaris 7 and 8 (sparc,x86)
17 SunOS 4.1
18
19 Known Compilation problems:
20 --------------------------------------
21 Cygwin:
22
23 Be sure to install these Cygwin packages (or later versions):
24 libdb4.8
25 libdb4.8-devel
26 libgdbm-devel
27 libncurses-devel
28
29 Some versions of libncurses-devel do not install /usr/include/curses.h,
30 /usr/include/term.h, and /usr/include/termcap.h. If yours does not,
31 add /usr/include/ symlinks to those files in /usr/include/ncurses/.
32
33 The database packages are only used by slocal(1).
34
35 If configuring with --with-cyrus-sasl, install these Cygwin packages:
36 libsasl2
37 libsasl2-devel
38
39 If configuring with --with-tls, install this Cygwin package (or a
40 later version):
41 libgnutls28
42
43 When running the nmh test suite ("make check"), it helps to have
44 /usr/bin/ ahead of any Windows directories on your PATH.
45
46 Note that the -link switch to refile cannot be used on FAT32 and
47 similar filesystems.
48
49 --------------------------------------
50 HPUX:
51
52 Lots of problems have been reported with using HPUX `cc'. In particular,
53 problems with `scan' giving incorrect dates (everything is 01/00).
54 It is highly recommended that you use `gcc' instead.
55
56 Also, new versions of HPUX (10.20?) will core dump in `scan' because
57 of some workaround code in zotnet/tws/lexstring.c. This workaround is
58 needed for older versions of HPUX, but causes problems on newer versions.
59 The solution is the added line (minus our indentation):
60
61 #undef hpux
62
63 after line 15 of the file zotnet/tws/lexstring.c.
64
65 --------------------------------------
66 Irix (SGI):
67
68 Irix make is notoriously buggy. If you're using it, you should "touch
69 config.h.in" before configuring to prevent a problem where it tries to
70 rebuild targets that shouldn't be rebuilt. (Alternately, you can just
71 use GNU make instead of Irix make.)
72
73 --------------------------------------
74 Linux:
75
76 These packages are required at runtime:
77 ncurses-libs
78 libdb (only for slocal(1))
79 cyrus-sasl-lib (if configured with --with-cyrus-sasl)
80 gnutls (if configured with --with-tls)
81
82 For building, these packages are required:
83 ncurses-devel
84 libdb-devel (only for slocal(1))
85 gdbm-devel (only for slocal(1))
86
87 If configuring with --with-cyrus-sasl, install these packages:
88 cyrus-sasl-lib-devel
89
90 --------------------------------------
91 Solaris:
92
93 With --enable-debug you'll see a lot of warnings. This is even worse
94 when compiling using the Sun Workshop compiler since it issues a
95 warning for every instance of a problem instead of summarizing them.
96 The main one concerns arrays with an index of type char. This is ok.
97 The array itself is a hash of chars, so the array size and the type
98 match. There isn't another safe and portable way to do this at the
99 moment. An explicit cast would get rid of the warnings, but I think
100 it's better to leave it complaining for now until we come up with
101 a better solution. The whole thing is probablly going to be chucked
102 with UTF-8 support anyway.
103
104 Other than the warnings, it builds ok.
105
106 --------------------------------------
107 SunOS 4.1.1/4.1.3/4.1.4:
108
109 You can't use the C compiler that comes with SunOS 4 since
110 it isn't ANSI C. But nmh builds just fine with gcc. With
111 --enable-debug you will see a lot of warnings.
112
113 --------------------------------------
114
115 --
116 The nmh team
117 nmh-workers@nongnu.org