Installation (Version 20090515, Kolab Server 2.2.2) fails for fedora 11 (procmail)
Sasha Kacanski
skacanski at gmail.com
Wed Jul 22 14:09:10 CEST 2009
Hi,
I pulled complete repository of source rpm's from
http://files.kolab.org/server/release/kolab-server-2.2.2/sources/ and
executed according to 1st.README
# sh install-kolab.sh 2>&1 | tee /cube/kolab-install/kolab-install.log
Installation fails:
==========================================================================
+ /kolab/lib/openpkg/shtool subst -e
's;\(#define.*SENDMAIL[^"]*"\)[^"]*\(".*\);\1/kolab/sbin/sendmail\2;'
autoconf.h
+ /kolab/bin/make --no-print-directory
echo Housekeeping file >config.check
cd src; /kolab/bin/make ../new/procmail ../new/lockfile ../new/formail
../new/mailstat
/kolab/bin/cc -c -fPIC procmail.c
/kolab/bin/cc -c -fPIC cstdio.c
/kolab/bin/cc -c -fPIC common.c
/kolab/bin/cc -c -fPIC exopen.c
/kolab/bin/cc -c -fPIC goodies.c
/kolab/bin/cc -c -fPIC locking.c
/kolab/bin/cc -c -fPIC mailfold.c
/kolab/bin/cc -c -fPIC foldinfo.c
/kolab/bin/cc -c -fPIC misc.c
/kolab/bin/cc -c -fPIC pipes.c
/kolab/bin/cc -c -fPIC regexp.c
/kolab/bin/cc -c -fPIC robust.c
/kolab/bin/cc -c -fPIC sublib.c
/kolab/bin/cc -c -fPIC acommon.c
/kolab/bin/cc -c -fPIC mcommon.c
/kolab/bin/cc -c -fPIC lastdirsep.c
/kolab/bin/cc -c -DPROCMAIL -fPIC authenticate.c
/kolab/bin/cc -c -fPIC lmtp.c
/kolab/bin/cc -c -fPIC memblk.c
/kolab/bin/cc -c -fPIC variables.c
/kolab/bin/cc -c -fPIC from.c
/kolab/bin/cc -c -fPIC comsat.c
/kolab/bin/cc -fPIC procmail.o cstdio.o common.o exopen.o goodies.o
locking.o mailfold.o foldinfo.o misc.o pipes.o regexp.o robust.o
sublib.o acommon.o mcommon.o lastdirsep.o authenticate.o lmtp.o
memblk.o variables.o from.o comsat.o -o procmail -L/kolab/lib
-L/kolab/lib -lfsl -lnsl -lm -lnsl -ldl -lc
ln ../src/procmail ../new/procmail
/kolab/bin/cc -c -fPIC lockfile.c
/kolab/bin/cc -fPIC lockfile.o exopen.o sublib.o acommon.o mcommon.o
authenticate.o lastdirsep.o -o lockfile -L/kolab/lib -L/kolab/lib
-lfsl -lnsl -lm -lnsl -ldl -lc
ln ../src/lockfile ../new/lockfile
/kolab/bin/cc -c -fPIC formail.c
In file included from formail.c:25:
formisc.h:20: error: conflicting types for 'getline'
/usr/include/stdio.h:655: error: previous declaration of 'getline' was here
make[1]: *** [formail.o] Error 1
make: *** [bins] Error 2
error: Bad exit status from /kolab/RPM/TMP/rpm-tmp.59346 (%build)
RPM build errors:
Bad exit status from /kolab/RPM/TMP/rpm-tmp.59346 (%build)
I researched via google some of the issues with declaration of
getline, and suggestions range from upgrading procmail to
procmail-3.22-24.fc12 from existing procmail-3.22-23.fc11.src.rpm.
Regardless of upgrade of removal of exisitng instance of procmail I
still get error with existing source supplied with kolab.
According to one of more complete posts on thsi issue on getline call:
....It is not related to gcc in any way, just the default when you don't
select any feature test macros (see
info libc 'Feature Test Macros'
) changed in F11 from F10, now you get by default _POSIX_C_SOURCE 200809L
stuff, before you got _POSIX_C_SOURCE 200112L. POSIX 2008 newly contains
many GNU functions, like getline, fexecve, etc.
So, either fix up the packages to use different names of local functions
(preferrable), or use some Feature Test Macro to pick whatever the program
expects to be compiled with.
....
My question would be do I try to upgrade source src for procmail under
kolab with procmail package that has fix or I need to possibly install
different version of gcc to fix this issue.
I tried to bypass package installation with:
# sh install-kolab.sh -x procmail 2>&1 | tee
/cube/kolab-install/kolab-install.log
or
# sh install-kolab.sh -x procmail-3.22-20080101.src.rpm 2>&1 | tee
/cube/kolab-install/kolab-install.log
but both ways I could not skip procmail installation.
I am not big on fedora, and gentoo installation of kolab server 2.1
worked but that was not a smooth sailing either.
I would like to follow openpkg format for ease of future maintenance.
Many thanks --
--
Aleksandar Sasha Kacanski
More information about the users
mailing list