Installation on Centos 4.3
From Kolab wiki
Choose minimal install, yum update, then yum install gcc (needed for compiling kolab).
After that, things should go well if you follow Kolab2 Installation - Source
[edit]
Invalid option --hash-style=gnu
gcc 4.1.2 will yield an error message the from freshly compiled kolab linker ld trying to link the freshly compiled kolab gcc using option "--hash-style=gnu". This option is new and only supported by new gcc and binutils packages! With gcc 4.1.2 there is no "spec" file to customize this option.
[edit]
workaround
This is a workaround to filter this option
1) Compile kolab and wait for the error. 2) 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=gnu':
args.append(arg)
os.execv('/kolab/bin/ld.orig', args)
EOF
chown kolab:kolab /kolab/bin/ld chmod a+x /kolab/bin/ld
and last restart the build using "obmtool kolab"
