Ubuntu 7.04
From Kolab wiki
These are the steps I took to compile Kolab-2.1 on Ubuntu 7.04 (Feisty Fawn). Warning: I did not succeed yet, but the described steps are necessary anyway.
1)
# sudo apt-get install bison flex make automake build-essential g++
2) Follow the instructions on Kolab2_Installation_-_Source To call obmtool, use:
chmod +x obmtool ./obmtool kolab 2>&1 | tee kolab-build.log
This will fail after a few minutes (installation of gcc fails). The reason is 'ld' that doesn't know the option '--hash-style=both'
3) Apply the following workaround
The trick is to replace ld by a python script that filter the unknown option and then start the original ld
mv /kolab/bin/ld /kolab/bin/ld.orig
cat > /kolab/bin/ld <<EOF
#!/usr/bin/python
import sys, os
args=[]
for arg in sys.argv:
if arg!='--hash-style=both':
args.append(arg)
os.execv('/kolab/bin/ld.orig', args)
EOF
chmod a+x /kolab/bin/ld
4) Execute obmtool again:
./obmtool kolab 2>&1 | tee kolab-build.log
-> perl fails to install because of this error (from kolab-install.log)
make[1]: Leaving directory `/kolab/RPM/TMP/perl-5.8.7' ./makedepend: 1: Syntax error: Unterminated quoted string
This is a known problem with ubuntu - they use dash as /bin/sh.
mv /bin/sh /bin/sh.orig ln -s /bin/bash /bin/sh
