Blame INSTALL-unix

Packit 8c9aa0
See the file INSTALL for basic instructions.  A short explanation for
Packit 8c9aa0
each non-standard configure option follows.
Packit 8c9aa0
Packit 8c9aa0
		System Notes
Packit 8c9aa0
		------------
Packit 8c9aa0
Packit 8c9aa0
cygwin
Packit 8c9aa0
------
Packit 8c9aa0
Packit 8c9aa0
We have a number of reports that the shared library fails to
Packit 8c9aa0
build properly.  This may manifest itself as a failure to
Packit 8c9aa0
build and run the test suite ("make check").
Packit 8c9aa0
Packit 8c9aa0
The workaround is to build a static library only.  Configure using
Packit 8c9aa0
Packit 8c9aa0
    ./configure --disable-shared
Packit 8c9aa0
Packit 8c9aa0
Then build normally.
Packit 8c9aa0
Packit 8c9aa0
Packit 8c9aa0
Packit 8c9aa0
DEC alpha with cxx V6.1-029 and RogueWave STL
Packit 8c9aa0
---------------------------------------------
Packit 8c9aa0
Packit 8c9aa0
A user reports that you have to issue the command
Packit 8c9aa0
Packit 8c9aa0
    export DEC_CXX="-D__USE_STD_IOSTREAM -D__STD_MS"
Packit 8c9aa0
Packit 8c9aa0
in order to get ostream defined in namespace std.  Otherwise, the
Packit 8c9aa0
build reports the following error.
Packit 8c9aa0
Packit 8c9aa0
    Cannot define CppUnit::OStringStream
Packit 8c9aa0
Packit 8c9aa0
Packit 8c9aa0
Packit 8c9aa0
If the compiler complains about 'exception', it may help to
Packit 8c9aa0
re-run configure with
Packit 8c9aa0
Packit 8c9aa0
	CPPFLAGS='-U_OSF_SOURCE'
Packit 8c9aa0
Packit 8c9aa0
on the configure line.  Please let us know about your experiences
Packit 8c9aa0
with this platform so that we can keep this information up-to-date.
Packit 8c9aa0
Packit 8c9aa0
Packit 8c9aa0
Packit 8c9aa0
IRIX 6 / MIPSpro compiler
Packit 8c9aa0
-------------------------
Packit 8c9aa0
Packit 8c9aa0
The MIPSpro compiler requires the "-LANG:std" flag to enable the standard 
Packit 8c9aa0
C++ library.  You must set the CC and CXX variable when you configure,
Packit 8c9aa0
as follows
Packit 8c9aa0
	./configure CC='CC -LANG:std' CXX='CC -LANG:std'
Packit 8c9aa0
Packit 8c9aa0
There is a bug in released versions of libtool prevents the -LANG flag
Packit 8c9aa0
from being properly passed during the linking stage.  To check if you
Packit 8c9aa0
have this bug, examine the output of "grep 'no.*irix' libtool".  If
Packit 8c9aa0
you see a line like "no/*-*-irix*)" then you suffer from the bug.  [A
Packit 8c9aa0
fixed version of libtool will look like "no/*-*-irix* | /*-*-irix*)".]
Packit 8c9aa0
Packit 8c9aa0
If your libtool script suffers from the bug, open it in an editor,
Packit 8c9aa0
find the first line that contains "with_gcc", and change it to
Packit 8c9aa0
read "with_gcc=no".
Packit 8c9aa0
Packit 8c9aa0
The MIPSpro version 7.30 is able to compile cppunit proper, but will
Packit 8c9aa0
fail to compile the example testsuite.  I am assuming this is due
Packit 8c9aa0
to known bugs in the compiler (7.30 is not the latest version). 
Packit 8c9aa0
The library appears to function OK.  Please let us know if you find
Packit 8c9aa0
it otherwise.
Packit 8c9aa0
Packit 8c9aa0
Packit 8c9aa0
Solaris/Sun CC compiler
Packit 8c9aa0
-----------------------
Packit 8c9aa0
Packit 8c9aa0
Use the following configure line:
Packit 8c9aa0
Packit 8c9aa0
./configure CXX=CC CXXFLAGS="-pta -instances=static -mt 
Packit 8c9aa0
-xtarget=generic -g -features=no%transitions 
Packit 8c9aa0
-xildoff" LD=CC LDFLAGS=-xildoff
Packit 8c9aa0
Packit 8c9aa0
In Forte C++ compiler for Solaris all the linking has to go via
Packit 8c9aa0
CC and ar, ld should not be run directly. For archive use CC -xar and
Packit 8c9aa0
for linking and generating the .so use  CC -G 
Packit 8c9aa0
Packit 8c9aa0
Notes: CC 5.5 don't need that much flag to compile correctly. Though, I'm not
Packit 8c9aa0
sure what are the required one.
Packit 8c9aa0
Packit 8c9aa0
Packit 8c9aa0
AIX
Packit 8c9aa0
---
Packit 8c9aa0
Packit 8c9aa0
./configure --disable-shared
Packit 8c9aa0
Packit 8c9aa0
The autogen tools don't seem to generate correctly script to handle dynamic linking.
Packit 8c9aa0
If anyone know how to get it working, please contact us.
Packit 8c9aa0
Packit 8c9aa0
Packit 8c9aa0
HP-UX
Packit 8c9aa0
-----
Packit 8c9aa0
Use the following options with configure to 
Packit 8c9aa0
enable the use of aCC and cc for the compilation of 
Packit 8c9aa0
CppUnit: 
Packit 8c9aa0
./configure --enable-hpuxshl CC=cc CXX=aCC CXXFLAGS="-AA"
Packit 8c9aa0
Packit 8c9aa0
AA sets all the necessary flags to enable namespaces, 
Packit 8c9aa0
stl v2,.... 
Packit 8c9aa0