Compiling Orca in Solaris 10

Compiling

Software Locations

Setting up the build environment

  1. 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
  1. 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.

    1. which cc should give ‘/opt/SUNWspro/bin/cc’

      1. which perl should give the one in ‘/usr/bin’
    2. which pod2man should give ‘/usr/perl5/bin’

    3. 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

  1. 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

  1. collect files you wish to package
    find /usr/local/orca -print > /export/home/pcanham/pkgs/orca/files
  1. Make a Prototype
    cat /export/home/pcanham/pkgs/orca/files | pkgproto > /export/home/pcanham/pkgs/orca/Prototype
  1. 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"
  1. 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
Share