swarm-support
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Compiling on Solaris 8


From: Gary Polhill
Subject: Re: Compiling on Solaris 8
Date: Tue, 19 Mar 2002 12:36:54 +0000

This problem reminds me of one that was fixed by installing GNU sed -- the 
Solaris sed garbles up some of the files created during Swarm compilation. (See 
http://www.santafe.edu/projects/swarm/archive/list-archive.0108/0061.html)

I have attached a document summarizing the steps I took in compiling 
swarm-2001-12-18 on a Solaris 8 system. The result is not quite perfect 
(there's some problem displaying the axes on EZGraphs), but it does work...

Gary

>>> Marcus G. Daniels <address@hidden> 18/03/02 15:00:07 >>>
>>>>> "GH" == gert  <address@hidden> writes:

GH> included from collections.m:12: collections.xm:6: `id' redeclared
GH> as different kind of symbol 

What is in collections.xm?

                  ==================================
   Swarm-Support is for discussion of the technical details of the day
   to day usage of Swarm.  For list administration needs (esp.
   [un]subscribing), please send a message to <address@hidden>
   with "help" in the body of the message.


Attachment: EZGraph.png
Description: PNG image

Steps taken to compile Swarm 2001-12-18 on Solaris 8:

Summary of needed software:

Compilation of needed software:

The following outlines the steps taken to compile the needed software on a sparc/Solaris 8 platform. The full ./configure options I used have not always been fully specified (e.g. --prefix) where these apply only to the particular installation I was trying to do.

GNU sed/binutils/fileutils/gperf:

  1. For each package: ./configure, make, make install
  2. Make sure your PATH picks up the bin directories of the installed package

gcc-3.0.2

  1. Unpack gcc-3.0.2.tar.gz into a temporary directory (say /var/tmp/gcc)
  2. Obtain the patch to gcc as listed in Marcus Daniel's message of 19 December to Swarm Support, and save it to /var/tmp/objc.diffs
  3. cd /var/tmp/gcc/gcc-3.0.2
  4. patch -p1 < /var/tmp/objc.diffs (When prompted, enter gcc/objc/objc-act.c as the file to patch.)
  5. ./configure --with-gnu-as --with-gnu-ld --with-as=/path/to/gnu/as --with-ld=/path/to/gnu/ld
  6. make bootstrap
  7. make install
  8. Add gcc-3.0.2 to your PATH.

make-3.79.1

  1. ./configure, make, ./make check, make install
  2. Add make-3.79.1 to your PATH.

tcl/tk8.2.3 and BLT2.4o

  1. Unpack tcl8.2.3.tar.gz, tk8.2.3.tar.gz and BLT2.4o.tar.gz into a temporary directory (say /var/tmp/tcltkblt)
  2. cd /var/tmp/tcltkblt/tcl8.2.3/unix
  3. ./configure --enable-gcc --enable-shared
  4. make
  5. make test
  6. make install
  7. cd ../../tk8.2.3/unix
  8. ./configure --enable-gcc --enable-shared
  9. make
  10. make test
  11. make install
  12. cd ../../blt2.4o
  13. ./configure --with-cc=gcc --with-gnu-ld --with-tcl=/path/to/tcl/installation --with-tk=/path/to/tk/installation

    N.B. If you use --prefix to install BLT in a non-default location (e.g. your home dir), then you need to specify that directory using both --prefix and --exec-prefix)

  14. make
  15. make install

xpm-3.4k

I compiled this using Sun's C compiler in the SUNWspro package, and /usr/ccs/bin/make

  1. Unpack xpm-3.4k.tar.gz into a temporary directory (say /var/tmp/xpm)
  2. cd /var/tmp/xpm/xpm-3.4k
  3. xmkmf -a
  4. make CC=/path/to/SUNWspro/bin/cc
  5. make install
  6. make install.man

    As I recall, the installation did not go entirely smoothly, and I ended up doing a manual install:

    1. (assuming csh) set xpm=/path/to/desired/xpm/installation
    2. mkdir -p $xpm/lib $xpm/include/X11 $xpm/bin $xpm/man/mann
    3. cp lib/libXpm.so.4.11 $xpm/lib
    4. (cd $xpm/lib; ln -s libXpm.so.4.11 libXpm.so)
    5. cp lib/xpm.h $xpm/include/X11
    6. cp sxpm/sxpm $xpm/bin
    7. cp sxpm/sxpm.man $xpm/man/mann/sxpm.n

zlib-1.1.3/png-1.0.5

  1. zlib: ./configure, make test, make install

    N.B. If installing zlib in a non-default directory, do ./configure, make test, mkdir $prefix, make install prefix=$prefix

  2. Unpack libpng-1.0.5.tar.gz into a temporary directory (say /var/tmp/png)
  3. cd /var/tmp/png/libpng-1.0.5
  4. cp scripts/makefile.solaris makefile
  5. Edit the makefile to specify the libpng installation prefix and pick up the zlib installation (ZLIBLIB should point to /path/to/zlib/lib and ZLIBINC should point to /path/to/zlib/include)
  6. make test
  7. Create the libpng installation prefix directory, if required
  8. make install

hdf5-1.4.2

  1. This has to be compiled with the make, ar and ln in /usr/ccs/bin and the SUNWspro C compiler not the GNU equivalents. (Or at least, I was unable to compile HDF5 using the GNU utilies.)
  2. ./configure --enable-production --with-zlib=/path/to/zlib/include,/path/to/zlib/lib
  3. make, make check, make install

emacs-20.6

  1. Extract emacs-20.6.tar.gz and leim-20.6.tar.gz into the same temporary directory (say, /var/tmp/emacs)
  2. cd /var/tmp/emacs/emacs-20.6
  3. ./configure --with-x-toolkit=motif
  4. make, make install

Compilation of Swarm

Environment variable settings needed to compile Swarm:


set gcc=/path/to/gcc-3.0.2
set make=/path/to/make-3.79.1
set butl=/path/to/GNU-binutils-2.11.2
set futl=/path/to/GNU-fileutils-4.1
set sed=/path/to/GNU-sed-3.02
set gperf=/path/to/gperf-2.7.2
set blt=/path/to/blt2.4o
set hdf5=/path/to/hdf5-1.4.2
set jdk=/path/to/j2sdk1.3.1_01/j2se
set png=/path/to/libpng-1.0.5
set tcl=/path/to/tcl-8.2.3
set tk=/path/to/tk-8.2.3
set xpm=/path/to/xpm-3.4k
set zlib=/path/to/zlib-1.1.3
set emacs=/path/to/emacs-20.6

setenv EMACS $emacs/bin/emacs
setenv PATH $gcc/bin:$make/bin:$butl/bin:$futl/bin:$sed/bin:$gperf/bin:$PATH
setenv LD_LIBRARY_PATH $gcc/lib:$LD_LIBRARY_PATH

Swarm

  1. Unpack swarm-2001-12-18.tar.gz into the directory where you want to keep the source (say $HOME/swarm)
  2. cd $HOME/swarm
  3. mv swarm-2001-12-18 src-2001-12-18
  4. mkdir build-2001-12-18
  5. cd build-2001-12-18
  6. ../src-2001-12-18/configure --with-tcldir=$tcl --with-tkdir=$tk --with-bltdir=$blt --with-zlibdir=$zlib --with-pngdir=$png --with-jdkdir=$jdk --with-xpmdir=$xpm --with-hdf5dir=$hdf5 --with-gnu-ld --enable-shared --srcdir=../src-2001-12-18 --prefix=$HOME/swarm/swarm-2001-12-18
  7. make
  8. mkdir -p $HOME/swarm/swarm-2001-12-18/include (Install falls over if you don't do this -- or it did for 2001-12-18 anyway)
  9. make install

Java heatbugs

  1. Extract jheatbugs-2001-03-28.tar.gz somewhere
  2. setenv SWARMHOME $HOME/swarm/swarm-2001-12-18
  3. setenv PATH $SWARMHOME/bin:$PATH
  4. cd jheatbugs-2001-03-28
  5. make
  6. javaswarm StartHeatbugs

On my installation of Swarm, for some reason the numbers on the axes of the EZGraphs are not displayed properly, see below for an example. I'd be interested to hear of any other Solaris users who don't have this problem.

EZGraph image with garbled axes displayed


reply via email to

[Prev in Thread] Current Thread [Next in Thread]