Fedora 7
From Kolab wiki
Extracted from this mail: http://www.kolab.org/pipermail/kolab-users/2007-June/006468.html
Problems when installing Kolab 2.1 on Fedora core 7
Kolab-2.1.0 can be successfully installed on Fedora 7.
You should use gcc-4.1.2 and SELinux needs to be permissive.
The process will initially fail when compiling the build-in gcc you can use the same trick that is valid for Fedora 6: the ld wrapper using a python script.
So you need to start the installation for a first time that will fail when compiling gcc. After this installation you should have :
# openpkg rpm -qa openpkg-2.5.4-2.5.4 binutils-2.16.1-2.5.1 openpkg-tools-0.8.47-2.5.0 kolab-webadmin-2.1.0-20070510 gpg-pubkey-63c4cb9f-3c591eda make-3.80-2.5.0 config-20051002-2.5.0 kolabd-2.1.0-20070510
Definitely not all required packages. So what was the first package to fail ?
# find /kolab* -iname "config.log" -ls 551661 12 -rw-r--r-- 1 kolab kolab 5743 Jun 19 23:13 /kolab/RPM/TMP/readline-5.0/config.log 529717 12 -rw-r--r-- 1 kolab kolab 5422 Jun 19 23:12 /kolab/RPM/TMP/fsl-1.7.0/config.log 553155 12 -rw-r--r-- 1 kolab kolab 4805 Jun 19 23:16 /kolab/RPM/TMP/m4-1.4.3/config.log 583985 12 -rw-r--r-- 1 kolab kolab 7161 Jun 19 23:21 /kolab/RPM/TMP/pkg-config-0.19/config.log 551963 12 -rw-r--r-- 1 kolab kolab 6843 Jun 19 23:13 /kolab/RPM/TMP/sharutils-4.5.1/config.log 552345 12 -rw-r--r-- 1 kolab kolab 5794 Jun 19 23:14 /kolab/RPM/TMP/gzip-1.3.5/config.log 551549 12 -rw-r--r-- 1 kolab kolab 6488 Jun 19 23:13 /kolab/RPM/TMP/lzo-2.01/config.log 529516 8 -rw-r--r-- 1 kolab kolab 782 Jun 19 23:12 /kolab/RPM/TMP/gcc-4.0.2/obj/config.log 552207 12 -rw-r--r-- 1 kolab kolab 5671 Jun 19 23:13 /kolab/RPM/TMP/pcre-6.4/config.log 584039 12 -rw-r--r-- 1 kolab kolab 4989 Jun 19 23:21 /kolab/RPM/TMP/perl-kolab-5.8.7/config.log 551115 12 -rw-r--r-- 1 kolab kolab 5049 Jun 19 23:12 /kolab/RPM/TMP/mm-1.4.0/config.log 583734 12 -rw-r--r-- 1 kolab kolab 4848 Jun 19 23:19 /kolab/RPM/TMP/patch-2.5.9/config.log 553992 12 -rw-r--r-- 1 kolab kolab 7150 Jun 19 23:18 /kolab/RPM/TMP/libiconv-1.10/config.log
It seems to be gcc at 23:12
# cat /kolab/RPM/TMP/gcc-4.0.2/obj/config.log
This file contains any messages produced by compilers while running configure and aids in debugging if configure runs into an error:
configure:595: checking host system type
configure:616: checking target system type
configure:634: checking build system type
configure:689: checking for a BSD compatible install
configure:742: checking whether ln works
configure:766: checking whether ln -s works
configure:1808: checking for gcc
configure:1921: checking whether the C compiler (cc ) works
configure:1937: cc -o conftest conftest.c 1>&5
/kolab/bin/ld: unrecognized option '--hash-style=gnu'
/kolab/bin/ld: use the --help option for usage information
collect2: ld returned 1 exit status
configure: failed program was:
#line 1932 "configure"
#include "confdefs.h"
main(){return(0);}
This calls for the Fedora 6 workaround:
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
Now you should be able to complete the installation on the second run:
# sh obmtool kolab 2>&1 | tee kolab-update-2.log
Good luck!
