installing Kolab on fedora core 6

Alain Spineux aspineux at gmail.com
Thu Jan 11 15:30:20 CET 2007


Hello

One month ago I tried to install Kolab 2.1 beta3 on an updated fedora core 6
!

I first tried using the gcc 4.1.1 but get an error message 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 their is no more "spec" file to customize this option, and I
didnt found a way to do it !

I wrote a workaround to filter this option (another workaroun is to install
package compat-gcc-34, see later )  :

First compile kolab and wait for the error.
Second apply my workaround

The trick is to replace ld by a python script that filter the unknown option
and then start the original ld

--- snip ---
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
chmod a+x /kolab/bin/ld
--- snip ---

and last restart the build using "obmtool kolab"

My second problem was an error when compiling perl library !
I got this error on my desktop, but not on my laptop !
The only difference was selinux, I desabled selinux on my desktop, rebooted
and then
get kolab working :-)

To disable selinux : edit /etc/sysconfig/selinux
and set : SELINUX=disabled

My other workaround with gcc is to install compat-gcc-34 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.

I also got imap not starting, a saw :
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

I thing I did (dont remember very well) :
I just removed the 2 files and recreated empty one :

rm -f /kolab/var/imapd/mailboxes.db /kolab/var/imapd/annotations.db
touch /kolab/var/imapd/mailboxes.db /kolab/var/imapd/annotations.db

Hope this help

Best regards


--
Alain Spineux
aspineux gmail com
May the sources be with you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.kolab.org/pipermail/users/attachments/20070111/307e4925/attachment.html>


More information about the users mailing list