Compiling
Software Locations
-
Orca - http://www.orcaware.com/orca/pub/snapshots/ (writing of the snapshot-r531 was the latest)
-
RICHSe - http://puzzle.dl.sourceforge.net/sourceforge/setoolkit/RICHPse-3.4.1.pkg.gz
Setting up the build environment
- Make sure the following packages are installed to a Solaris 10 env
SUNWbtool,
SUNWsprot,
SUNWtoo,
SUNWcpp,
SUNWhea,
SUNWarc,
SUNWlibm,
SUNWlibms,
SUNWdfbh,
SUNWcg6h,
SUNWxwinc,
SUNWlibC,
SUNWzlib,
SUNWscpu,
SUNWperl584core,
SUNWperl584usr
-
On solaris 10 (or 9), grab SUNWspro CC compilers from developer toolkit, and put /opt/SUNWspro/bin on the path. Also make sure that /usr/perl5/bin is on the path.
-
which cc
should give ‘/opt/SUNWspro/bin/cc’which perl
should give the one in ‘/usr/bin’
-
which pod2man
should give ‘/usr/perl5/bin’ -
Note: which gcc must not find anything, otherwise it will be used erroneously instead!
-
export PATH=/sbin:/usr/bin:/usr/sbin:/usr/perl5/bin:/usr/bin:/usr/ccs/bin:/usr/X/bin:/usr/bin:/opt/SUNWspro/bin
Compiling options
- Install the software
export CC=cc ; export CXX=CC ; export CFLAGS="-g -O2"
./configure --prefix=/usr/local/orca --with-html-dir=/usr/local/orca/html
make
make install
Setup orca to use new SE Toolkit
cp -R /usr/local/orca/lib/SE/3.4/ /usr/local/orca/lib/SE/3.4.1/
cp -R /usr/local/orca/lib/SE/3.4/ /usr/local/orca/lib/SE/3.5/
If you see an error in nohub.out about errors in live_rules.se
root@t1000-orca:/usr/local/orca/bin> ./restart_orcallator
Writing data into /usr/local/orca/var/orca/orcallator/t1000-orca/
Starting logging
Sending output to nohup.out
root@t1000-orca:/usr/local/orca/bin> cat /nohup.out
"/usr/local/orca/lib/SE/3.4/live_rules.se", line 101: error: syntax error
"/usr/local/orca/lib/SE/3.4/live_rules.se", line 101: fatal: Errors detected. Exiting.
Move the orcallator.se file from /optr/RICHPse/orcallator/orcallator.se to /usr/local/orca/lib
Making Solaris package
- collect files you wish to package
find /usr/local/orca -print > /export/home/pcanham/pkgs/orca/files
- Make a Prototype
cat /export/home/pcanham/pkgs/orca/files | pkgproto > /export/home/pcanham/pkgs/orca/Prototype
- Make a pkginfo file to help people
PKG="SVNorca"
NAME="Orca"
VERSION="snapshot-r531"
ARCH="sparc"
SUNW_PKG_THISZONE="true"
CLASSES="none"
CATEGORY="application"
PSTAMP="Paul Canham"
EMAIL="paul@canham.io"
BASEDIR="/"
DESC="Orca snapshot-r531 compiled with: --prefix=/usr/local/orca --with-html-dir=/usr/local/orca/html"
- Make package
cd /export/home/pcanham/pkgs
pkgmk -b /export/home/pcanham/pkgs/orca/SVNorca -f Prototype -r /
5.Make nice *.pkg file.
pkgtrans /var/spool/pkg /export/home/pcanham/pkgs/orca/SVNorca.snapshot-r531.SPARC.pkg SVNorca