[Kroupware] Cyrus-Imapd compile error

Wim Bakker w.a.bakker at planet.nl
Wed Jul 16 21:42:06 CEST 2003


On Wednesday 16 July 2003 20:20, Dennis Leist wrote:
> Hi Folks,
>
> While trying to compile cyrus-imapd (imapd-2.1.14-20030707_kolab.src.rpm)
> I get the following error:
>
> Any ideas?
>
> Executing(%build): env -i /kolab/lib/openpkg/bash --norc --noprofile
> --posix -e /kolab/RPM/TMP/rpm-tmp.88481
> + cd /kolab/RPM/TMP
> + cd cyrus-imapd-2.1.14
> + cflags=-I/kolab/include
> + ldflags=-L/kolab/lib %{l_fsl_ldflags}
> + CC=/kolab/bin/cc
> + CPPFLAGS=-I/kolab/include
> + CFLAGS=-O2 -pipe -I/kolab/include
> + LDFLAGS=-L/kolab/lib %{l_fsl_ldflags}
> + LIBS=%{l_fsl_libs}
> + ./configure --cache-file=./cache.config --prefix=/kolab
> --with-openssl=/kolab --with-dbdir=/kolab --with-sasl=/kolab
> --with-statedir=/kolab/var/imapd --with-auth=unix --without-libwrap
> --without-perl --without-ucdsnmp --with-cyrus-prefix=/kolab
> --with-cyrus-user=kolab-r --with-cyrus-group=kolab-r
> creating cache ./cache.config
> checking host system type... i586-pc-linux-gnu
> checking for makedepend...
> /kolab/RPM/TMP/cyrus-imapd-2.1.14/tools/not-mkdep configure: warning:
> Makedepend is not installed on this system.  You should compile and install
> the version from the makedepend subdirectory. checking for gcc...
> /kolab/bin/cc
> checking whether the C compiler (/kolab/bin/cc -O2 -pipe
> -I/kolab/include -L/kolab/lib %{l_fsl_ldflags}) works... no
> configure: error: installation or configuration problem: C compiler
> cannot create executables.
> error: Bad exit status from /kolab/RPM/TMP/rpm-tmp.88481 (%build)
>
>
> RPM build errors:
>     Bad exit status from /kolab/RPM/TMP/rpm-tmp.88481 (%build)
>
> ccD

Hai ,

this what I get when I do:
/kolab/bin/rpm -bb /kolab/RPM/SRC/imapd/imapd.spec --define 
'with_groupfile_hack yes' --define 'with_vhost_hack yes'
-----------------------------------
root at koolraap:/kolab/RPM/SRC# /kolab/bin/rpm -bb /kolab/RPM/SRC/imapd/imapd.
spec --define 'with_groupfile_hack yes' --define 'with_vhost_hack yes'
Executing(%prep): env -i /kolab/lib/openpkg/bash --norc --noprofile --posix -
e /kolab/RPM/TMP/rpm-tmp.56576
+ cd /kolab/RPM/TMP
+ cd /kolab/RPM/TMP
+ rm -rf cyrus-imapd-2.1.13
+ /kolab/lib/openpkg/gzip -dc /kolab/RPM/SRC/imapd/cyrus-imapd-2.1.13.tar.gz
+ /kolab/lib/openpkg/tar -xf -
+ STATUS=0
+ '[' 0 -ne 0 ']'
+ cd cyrus-imapd-2.1.13
++ id -u
+ '[' 0 = 0 ']'
+ chown -Rhf root .
++ id -u
+ '[' 0 = 0 ']'
+ chgrp -Rhf root .
+ chmod -Rf a+rX,g-w,o-w .
+ echo 'Patch #2 (groupfile.patch):'
Patch #2 (groupfile.patch):
+ /kolab/lib/openpkg/patch -p0 -s
+ /kolab/lib/openpkg/shtool subst -e 's;db-4.1;db;g' configure
+ /kolab/lib/openpkg/shtool subst -e 's;^\( *.LIBS..*\)\(\"\],.*\)$;\1 -ldb
\2;'
perl/imap/Makefile.PL
+ /kolab/lib/openpkg/shtool subst -e 's;^\(.) exec\) \(perl .*\)$;\1 /kolab/
bin/
\2;' perl/imap/cyradm.sh
+ /kolab/lib/openpkg/shtool subst -e 's;"/usr/sieve";"/kolab/var/imapd/sieve";
g'
 imap/lmtpd.c imap/mbdump.c imap/user.c man/imapd.conf.5 timsieved/actions.c
+ /kolab/lib/openpkg/shtool install -c -m 644 -e 's;@l_prefix@;/kolab/RPM/TMP/
im
apd-2.1.13-root/kolab;g' -e 's;@l_rusr@;kolab-r;g' /kolab/RPM/SRC/imapd/imapd.
co
nf imapd.conf-mkimap
+ /kolab/lib/openpkg/shtool subst -e 's;^exec perl ;exec /kolab/bin/perl ;' -e 
'
s;/etc/imapd.conf;/kolab/etc/imapd/imapd.conf;' -e 's;^\($sievedir = \).*$;\1 
sh
ift || "/kolab/var/imapd/sieve"\;;' tools/mkimap
+ /kolab/lib/openpkg/shtool subst -e '/config_init/s;"deliver";"cyrdeliver";' 
im
ap/deliver.c
+ /kolab/bin/patch -p0
patching file imap/lmtpengine.c
Hunk #1 succeeded at 536 (offset 96 lines).
Hunk #2 succeeded at 557 (offset 96 lines).
Hunk #3 succeeded at 1150 (offset 208 lines).
+ exit 0
Executing(%build): env -i /kolab/lib/openpkg/bash --norc --noprofile --posix -
e/kolab/RPM/TMP/rpm-tmp.34913
+ cd /kolab/RPM/TMP
+ cd cyrus-imapd-2.1.13
+ cflags=-I/kolab/include -D HAVE_STDARG_H
++ /kolab/bin/fsl-config --all --ldflags
+ ldflags=-L/kolab/lib -L/kolab/lib
+ CC=/kolab/bin/cc
+ CPPFLAGS=-I/kolab/include -D HAVE_STDARG_H
+ CFLAGS=-O2 -pipe -I/kolab/include -D HAVE_STDARG_H
+ LDFLAGS=-L/kolab/lib -L/kolab/lib
++ /kolab/bin/fsl-config --all --libs
+ LIBS=-lfsl -lnsl
+ ./configure --cache-file=./cache.config --prefix=/kolab --with-openssl=/
kolab --with-dbdir=/kolab --with-sasl=/kolab --with-statedir=/kolab/var/imapd 
--with-auth=unix --without-libwrap --without-perl --without-ucdsnmp --with-
cyrus-prefix=/kolab --with-cyrus-user=kolab-r --with-cyrus-group=kolab-r
creating cache ./cache.config
checking host system type... i686-pc-linux-gnu
checking for makedepend... /kolab/RPM/TMP/cyrus-imapd-2.1.13/tools/not-mkdep
configure: warning: Makedepend is not installed on this system.  You should 
compile and install the version from the makedepend subdirectory.
checking for gcc... /kolab/bin/cc
checking whether the C compiler (/kolab/bin/cc -O2 -pipe -I/kolab/include -D 
HAVE_STDARG_H -L/kolab/lib -L/kolab/lib) works... yes
checking whether the C compiler (/kolab/bin/cc -O2 -pipe -I/kolab/include -D 
HAVE_STDARG_H -L/kolab/lib -L/kolab/lib) is a cross-compiler... no
checking whether we are using GNU C... yes
checking whether /kolab/bin/cc accepts -g... yes
checking for ranlib... ranlib
---------------------------------------------------------------

I encountered the same problem as you, can't remember what I did
anymore though to resolve it , maybe set PATH="/kolab/bin:/kolab/sbin:$PATH" ?

WB


More information about the Kroupware mailing list