1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234
|
Porting People
--------------
The following people have helped ensure that CSSC has worked on
these platforms (at some stage):
James Youngman <jay@gnu.org> Red Hat Linux (x86)
4.1,4.2,5.0,5.1,5.2,5.9,
6.0, 6.2, 7.0, 7.1, 7.1.93
James Youngman <jay@gnu.org> Debian GNU/Linux versions
2.2 (SPARC64, Alpha),
3.0 (x86), 3.1 (x86),
5.0 (x86_64),
squeeze (x86_64).
James Youngman <jay@gnu.org> HPUX 9 (PA-RISC)
James Youngman <jay@gnu.org> Solaris 2.6 (SPARC),
Solaris 2.8 (SPARC)
Lars Hecking <lhecking@nmrc.ucc.ie> Solaris-2.5.1
Malcolm Boff <Malcolm_Boff@compuserve.com> Solaris-2.5.1
Lars Hecking <lhecking@nmrc.ucc.ie> IRIX 6.3 (GCC 2.7.x
configured for IRIX 5.3)
Lars Hecking <lhecking@nmrc.ucc.ie> IRIX 6.3 (GCC 2.8.0)
Richard Polton <rap@maths.soton.ac.uk> IRIX 5.3
Dave Bodenstab <imdave@mcs.net> FreeBSD-2.0.5-950622-SNAP
Andy Sharp <andy@accrue.com> FreeBSD-2.2.2-RELEASE
James Youngman <jay@gnu.org> FreeBSD 4.3-RELEASE (x86)
Lars Hecking <lhecking@nmrc.ucc.ie> [*] SunOS 4
Mark Reynolds <mark@aoainc.com> SunOS 4.1.3
Lars Hecking <lhecking@nmrc.ucc.ie> [*] AmigaOS (ixemul)
Andrew Bardsley <bardslea@cs.man.ac.uk> [*] GNU Hurd
James Youngman <jay@gnu.org> Dynix/ptx 4.2
Mark Reynolds <mark@aoainc.com> Ultrix 4.2 [SEE BELOW!]
Brad Crittenden <bac@spoetzl.net> Mac OS X [SEE BELOW]
Clement T. Cole <clemc@ccc.com> MS Services for Unix /
Interix 3.0 SP-7.0.1701.1
[*] These entries denote that CSSC compiled successfully but the test
suite was not run.
Some of the platforms mentioned above are far from current. While
CSSC has worked on them at some point, quite a lot of changes to the
code have been made, so it's likely that at least some of these
platforms no longer work. This is not a policy decision, it's just
that I lack access to most of these systems.
Because GNU CSSC uses GNU "autoconf" to generate configuration
scripts, it's reasonable to expect CSSC to work on almost any version
of Unix with little or no modification. If modification is required,
it is best to modify "configure.ac" appropriately and let "configure"
determine what needs to be done. However, if you do not have GNU
Autoconf installed you will not be able to regenerate "configure" from
"configure.ac". In any case, please let <bug-cssc@gnu.org> know about
these required modifications (see the README file in the distribution
directory). Don't forget also to explain clearly *why* these
modifications are required, and on what systems.
The Makefile generated by the configure script appears to work with
GNU make but not always with the "make" utility that comes with all
platforms; if the "include" line makes your "make" utility fall over,
try GNU make.
If you wish to install GNU Autoconf, you can obtain it from the GNU
Project's FTP site, ftp.gnu.org. You will probably also find GNU
Automake useful.
CSSC has not, as far as I know, been widely tested with C++ compilers
other than GCC:-
Sun CC 5.5 Compiles, test suite unreported
EPC C++ Compiles, test suite passes
IRIX CC Fails to compile (see below)
Older versions of CSSC have been built and tested with most of the
versions of GCC between 2.7 and 3.4, including EGCS. At the time, the
code built correctly and the test suite passes. This does not mean
that if you try to compile the code with GCC 2.7 now, everything will
be fine. However, you should not have too many problems, even so.
Notes for specific platforms
============================
GNU/Linux
---------
The code should build without problems as-is. There is a workaround
for a bug in a few versions of glibc. See "GNU libc" below for more
details.
Solaris
-------
You need to build CSSC using GNU make because of the way that the
dependencies are used in the Makefile.
HPUX
----
To compile on HPUX 9 you have to use GNU make and /bin/posix/sh:
$ SHELL=/bin/posix/sh $SHELL ./configure
$ gmake SHELL=/bin/posix/sh
IRIX
----
To compile on IRIX it appears that GNU make is required. CSSC also
does not compile with IRIX's native cc, "CC". The IRIX compiler seems
not to support static template instantiation. (Thanks to Achim
Hoffmann <hoffmann@tebis.de> for this information).
Ultrix 4.2
----------
Mark Reynolds has run the test suite on this platform (at CSSC version
0.11 alpha.pl2). All the tests except one pass. In the failing test,
we get a coredump:-
> All tests pass, except that anything involving get -r ANYTHING -p
> ... or get -r ANYTHING -s core dump. Again, when I have isolated the
> problem I will send a more detailed report along with (hopefully)
> patches.
To run the tests on this platform, one must use Bash :-
> Because this OS is so ancient, it is not possible to run "make
> check" out of the box. Both "sh" and "sh5" (the Sys V version of sh)
> give syntax errors loading the defs in common. However "make
> SHELL=bash check" does run (I'm using bash 2.03).
NetBSD
------
The Texinfo feature @env{} is not supported by version 1.68 of
Makeinfo which comes with some versions of NetBSD. To work around
this problem, you could apply the following sed command to
"cssc.texi":-
sed -e 's/@env{\([^]]*\)}/@code{\1}/'
FreeBSD
-------
You will need to build with GNU make.
GNU libc
--------
GNU libc 2.2.3 has a bug in it which means that if you use GCC 2.97 or
later, classes cannot have member functions called "printf". The
configure script works around this problem (by turning off
optimisation). The glibc bug is fixed in glibc 2.2.4. CSSC compiles
successfully under GCC version 3.01, with this workaround in place.
Windows NT / Cygwin
-------------------
See also "Microsoft Services for Unix", below.
CSSC's history files and working files must be stored and used on a
Cygwin file system mounted in 'binary mode' not 'text mode'.
CSSC compiles under the CYGWIN environment for Windows NT. CSSC
support under the Cygwin environment is nearly up to the standard of
Unix implementations, but there are three significant areas in which
it falls short :-
1. Files are often created with the wrong mode, but for the most part
the relevant program changes the mode of the output file to the
correct value immediately after closing the file.
2. The "Atomic" NFS locking support is done on Unix with the use of
link(2) and requires the ability to use link(2) on an open file; this
is a feature which is not supported under the Cygwin environment.
For this reason, it is unsafe to use the Cygwin version of CSSC on
SCCS files which are mounted via an NT NFS client. If, on the other hand,
the files are mounted via Samba, this should be safe (but has not been
tested).
3. Set-user-id execution will not work properly. Because of the
insecure nature of the current code base, this mode of operation
is not currently supported anyway, but this is liable to be
especially poor under Windows NT due to the significant differences in
the security models of Unix and Windows NT. The Cygwin environment
does provide tools for resolving this problem, but this has not been done.
A small number of the test cases for the "sccs.exe" binary fail under
CYGWIN; this is because, although they do the right thing, the output
messages are in the wrong order. The reason behind this is that under
Unix when you use "sccs unedit" the output of "get" appears before the
output of the "unget()" function, even though the unget() happens
first. This is because the output of the unget() function is buffered
and hence is only flushed to the output file when the parent process
exits. The stdio buffering arrangements for CYGWIN seem to be
slightly different, and this changes the ordering. For this reason,
test "h1" currently fails, and is skipped for CYGWIN.
Microsoft Services for Unix / Interix 3.0
-----------------------------------------
The following arguments were used for "configure":
./configure CFLAGS=-D_ALL_SOURCE CXXFLAGS=-D_ALL_SOURCE \
--build=i386 --host=i386-pc-interix --disable-nls \
--enable-binary --prefix=/usr/local \
--libexecdir=/usr/local/bin
gmake csscutildir=/usr/local/bin
Clement T. Cole reports that the above works with GNU GCC 2.93.x, but
not with the default SFU compiler (2.72).
Mac OS X
--------
According to Brad Crittenden <bac@spoetzl.net>, CSSC fails to compile
under Mac OS X with the default compiler (GCC 3.1). However, it does
work with the alternate compiler, GCC 2.95. To switch compilers,
execute the command "sudo gcc_select 2". To switch back, issue the
command "sudo gcc_select 3". You may also find it helpful to read the
Porting Guide at
<http://developer.apple.com/techpubs/macosx/Darwin/GettingStarted/PortingUNIX/intro/index.html>.
If you attempt to compile with GCC 3.1. you may see the following error :-
g++ -DHAVE_CONFIG_H -I. -I. -I. -g -O2 -c file.cc
filelock.h:50: storage size of `_ZTI9file_lock' isn't known
I don't know how to fix this error in any other way than to use GCC
version 2.95 instead, as described above. CSSC is know to work on
other systems with GCC 4.4, but I have no more up-to-date information
about the situaion on Mac OS X.
|