Fedora 4

From Kolab wiki

Jump to: navigation, search

There are some problems installing Kolab on Fedora 4 caused by the GCC compiler: openpkg 2.2 and 2.4 doesn't compile correctly with GCC 4.0, which is shipped with Fedora 4 (and other recent distributions). Fortunately the GCC version used under Fedora 3 (3.2.3) is also avaiable for Fedora 4 for compatibility: the needed packages are

  • compat-gcc-32-c++-3.2.3-47.fc4
  • compat-libstdc++-296-2.96-132.fc4
  • compat-gcc-32-3.2.3-47.fc4
  • compat-libstdc++-33-3.2.3-47.fc4

Some other tricks are needed: first of all the default compiler have to be changed, so

cd /usr/bin
mv gcc gcc40
mv g++ g++40
mv gcov gcov40
ln -s gcc32 gcc
ln -s g++32 g++
ln -s gcov32 gcov

This makes GCC 3.2.3 the default compiler.

After that there is still a problem with the libc.so file, so the file /usr/lib/libc.so have to be edited changing from

/* GNU ld script
  Use the shared library, but some functions are only in
  the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a  AS_NEEDED (
/lib/ld-linux.so.2 ) )

to

/* GNU ld script
  Use the shared library, but some functions are only in
  the static library, so try that secondarily.  */
OUTPUT_FORMAT(elf32-i386)
/* GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a  AS_NEEDED (
/lib/ld-linux.so.2 ) ) */
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a )

Now the Kolab installation should go flawlessy, after that the modifications have to be reverted. IMHO this "hack" should not introduce problems, because one of the first thing the Openpkg installation process does is to build a custom GCC for its own use.


---Addition: Get:

 openpkg-2.5.0-2.5.0.src.rpm
 openpkg-2.5.0-2.5.0.src.sh

From: ftp://ftp.openpkg.org/release/2.5/SRC/

Add them to your repository of source rpm's before installing. Open obmtools.conf and replace the line "@install ${loc}openpkg-2.4.3-2.4.3" with "@install ${loc}openpkg-2.5.0-2.5.0".

Personal tools