Fedora 6
From Kolab wiki
Extracted from this mail: http://kolab.org/pipermail/kolab-users/2007-January/005806.html
Contents |
Problems when installing Kolab 2.1 beta3 on Fedora core 6
Invalid option --hash-style=gnu
gcc 4.1.1 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.1 there is no "spec" file to customize this option.
First workaround
This is a workaround to filter this option (another workaround is to install package compat-gcc-34, see below):
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"
Second workaround
You can install compat-gcc-34 and then run the commands
mv /usr/bin/gcc /usr/bin/gcc41 ln -sf /usr/bin/gcc34 /usr/bin/gcc
to set gcc-3.4 as the default one, before to start building kolab.
Don't forget to undo your modifications if you need the original configuration.
Compiling perl
A second problem might occur when compiling the perl library. It is necessary to disable selinux.
To disable selinux : edit /etc/sysconfig/selinux and set : SELINUX=disabled
Problems starting the imap server
Dec 12 19:33:34 fc6-eg.asxnet.loc <warning> ctl_cyrusdb[9290]: DBERROR db4: /kolab/var/imapd/mailboxes.db: unexpected file type or format Dec 12 19:33:34 fc6-eg.asxnet.loc <error> ctl_cyrusdb[9290]: DBERROR: opening /kolab/var/imapd/mailboxes.db: Invalid argument Dec 12 19:33:34 fc6-eg.asxnet.loc <error> ctl_cyrusdb[9290]: DBERROR: opening /kolab/var/imapd/mailboxes.db: cyrusdb error Dec 12 19:33:36 fc6-eg.asxnet.loc <notice> tls_prune[9296]: tls_prune: purged 0 out of 0 entries Dec 12 19:33:36 fc6-eg.asxnet.loc <notice> ctl_cyrusdb[9298]: checkpointing cyrus databases Dec 12 19:33:36 fc6-eg.asxnet.loc <warning> cyr_expire[9297]: DBERROR db4: /kolab/var/imapd/annotations.db: unexpected file type or format Dec 12 19:33:36 fc6-eg.asxnet.loc <error> cyr_expire[9297]: DBERROR: opening /kolab/var/imapd/annotations.db: Invalid argument Dec 12 19:33:36 fc6-eg.asxnet.loc <error> cyr_expire[9297]: DBERROR: opening /kolab/var/imapd/annotations.db: cyrusdb error
