summaryrefslogtreecommitdiff
path: root/INSTALL-unix
blob: 6a4a5cc2c33b810b786362d28528bcf89de3e027 (plain)
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
See the file INSTALL for basic instructions.  A short explanation for
each non-standard configure option follows.

		System Notes
		------------

cygwin
------

We have a number of reports that the shared library fails to
build properly.  This may manifest itself as a failure to
build and run the test suite ("make check").

The workaround is to build a static library only.  Configure using

    ./configure --disable-shared

Then build normally.



DEC alpha with cxx V6.1-029 and RogueWave STL
---------------------------------------------

A user reports that you have to issue the command

    export DEC_CXX="-D__USE_STD_IOSTREAM -D__STD_MS"

in order to get ostream defined in namespace std.  Otherwise, the
build reports the following error.

    Cannot define CppUnit::OStringStream



If the compiler complains about 'exception', it may help to
re-run configure with

	CPPFLAGS='-U_OSF_SOURCE'

on the configure line.  Please let us know about your experiences
with this platform so that we can keep this information up-to-date.



IRIX 6 / MIPSpro compiler
-------------------------

The MIPSpro compiler requires the "-LANG:std" flag to enable the standard 
C++ library.  You must set the CC and CXX variable when you configure,
as follows
	./configure CC='CC -LANG:std' CXX='CC -LANG:std'

There is a bug in released versions of libtool prevents the -LANG flag
from being properly passed during the linking stage.  To check if you
have this bug, examine the output of "grep 'no.*irix' libtool".  If
you see a line like "no/*-*-irix*)" then you suffer from the bug.  [A
fixed version of libtool will look like "no/*-*-irix* | /*-*-irix*)".]

If your libtool script suffers from the bug, open it in an editor,
find the first line that contains "with_gcc", and change it to
read "with_gcc=no".

The MIPSpro version 7.30 is able to compile cppunit proper, but will
fail to compile the example testsuite.  I am assuming this is due
to known bugs in the compiler (7.30 is not the latest version). 
The library appears to function OK.  Please let us know if you find
it otherwise.


Solaris/Sun CC compiler
-----------------------

Use the following configure line:

./configure CXX=CC CXXFLAGS="-pta -instances=static -mt 
-xtarget=generic -g -features=no%transitions 
-xildoff" LD=CC LDFLAGS=-xildoff

In Forte C++ compiler for Solaris all the linking has to go via
CC and ar, ld should not be run directly. For archive use CC -xar and
for linking and generating the .so use  CC -G 

Notes: CC 5.5 don't need that much flag to compile correctly. Though, I'm not
sure what are the required one.


AIX
---

./configure --disable-shared

The autogen tools don't seem to generate correctly script to handle dynamic linking.
If anyone know how to get it working, please contact us.


HP-UX
-----
Use the following options with configure to 
enable the use of aCC and cc for the compilation of 
CppUnit: 
./configure --enable-hpuxshl CC=cc CXX=aCC CXXFLAGS="-AA"

AA sets all the necessary flags to enable namespaces, 
stl v2,....