1HOW TO BUILD HERCULES FROM SVN UNDER SOLARIS
2
31. DOWNLOAD AND INSTALL THE GNU COMPILER AND TOOLS
4
5  (a) You can obtain all the required tools from
6      http://www.sunfreeware.com
7
8      To download the tools you will need wget which is
9      installed in /usr/sfw/bin on Solaris 9 and 10.
10
11      First add this directory to your path using the command:
12      PATH=${PATH}:/usr/sfw/bin
13
14  (b) Follow instructions on http://www.blastwave.org/pkg-get.php
15      to install the pkg-get package.
16      Choose /opt/csw as the package base directory.
17
18      Choose a local mirror site from the list at
19      http://www.blastwave.org/mirrors.html
20      and update /opt/csw/etc/pkg-get.conf to point to the /stable
21      directory at the mirror site, for example:
22      url=http://blastwave.informatik.uni-erlangen.de/csw/stable
23
24      Add /opt/csw/bin to your path using the command:
25      PATH=/opt/csw/bin:${PATH}
26
27  (c) Then install the GNU compiler and tools using these commands:
28
29      pkg-get install textutils
30      pkg-get install automake
31      pkg-get install autoconf
32      pkg-get install subversion
33      pkg-get install flex
34      pkg-get install gmake
35      pkg-get install ggrep
36      pkg-get install gcc3
37
38  (d) Check that all the required tools are installed:
39
40      pkg-get compare subversion autoconf automake flex gawk gcc3
41      pkg-get compare ggrep libiconv gm4 gmake perl gsed
42
43      which should produce output something like this:
44
45       software                    localrev                   remoterev
46     subversion        1.4.5,REV=2007.11.18                        SAME
47       autoconf         2.61,REV=2007.07.13                        SAME
48       automake                       1.9.6                        SAME
49           flex        2.5.4,REV=2005.10.03                        SAME
50           gawk                       3.1.5                        SAME
51           gcc3                       3.4.5                        SAME
52          ggrep          2.5,REV=2004.12.01                        SAME
53       libiconv                       1.9.2                        SAME
54            gm4        1.4.5,REV=2006.07.27                        SAME
55          gmake                        3.81                        SAME
56           perl        5.8.8,REV=2007.10.05                        SAME
57           gsed                       4.1.4                        SAME
58
59  (e) Finally, add symbolic links to allow certain GNU tools to be
60      invoked using standard Unix names:
61
62      cd /opt/csw/bin
63      ln -s /opt/csw/gcc3/bin/gcc gcc
64      ln -s /opt/csw/bin/ggrep grep
65      ln -s /opt/csw/bin/gm4 m4
66      ln -s /opt/csw/bin/gmake make
67      ln -s /opt/csw/bin/gsed sed
68
692. DOWNLOAD THE HERCULES SOURCE FROM SVN
70
71      Add the following line to your .profile file:
72      PATH=/opt/csw/bin:${PATH}
73
74      From your home directory issue this command:
75
76      svn checkout svn://svn.hercules-390.org/hercules/trunk hercules
77
78      Note: svn will fail if you do not have libuuid installed on your system
79      ld.so.1: svn: fatal: libuuid.so.1: open failed: No such file or directory
80
81      If you get this message, you will need to install a patch from Sun:
82      1. Go to sunsolve.sun.com and select "Patch Finder"
83      2. Scroll down to "Download Product Specific Patches" and select your
84         version of Solaris (for example, Solaris 2.9 SPARC)
85      3. Look for a patch which contains libuuid (for example, 114129-02)
86      4. Download the patch and unzip it into /var/spool/patch
87      5. patchadd /var/spool/patch/114129-02
88
893. CHECK THAT THE REQUIRED LEVELS OF TOOLS ARE INSTALLED
90
91      From your home directory issue these commands:
92
93      cd hercules
94      util/bldlvlck
95
96      which should produce output something like this:
97
98       OK      SVN (informational), found x.yy.zz
99       OK      autoconf requires 2.5, found 2.61
100       OK      automake requires 1.9, found 1.9.6
101       OK      flex requires 2.5, found 2.5.4
102       OK      gawk requires 3.0, found 3.1.5
103       OK      gcc requires 2.95, found 3.4.5
104       OK      grep requires 0, found 2.5
105       OK      libiconv requires 1.8, found 1.9
106       OK      m4 requires 0.0, found 1.4
107       OK      make requires 3.79, found 3.81
108       OK      perl requires 5.6, found 5.8.8
109       OK      sed requires 3.02, found 4.1.4
110
1114. BUILD HERCULES
112
113      In the hercules directory issue these commands:
114
115      sh ./autogen.sh
116      ./configure
117      make
118