Kolab 2.2.1 and 2.2.2 does not install

Liutauras Adomaitis liutauras.adomaitis at gmail.com
Wed May 20 15:00:19 CEST 2009


This is a post to summarize and make clear things posted by me in:

>from Liutauras Adomaitis <liutauras.adomaitis at gmail.com>
>to Kolab-users at kolab.org
>date Thu, May 14, 2009 at 11:49 PM
>subject Kolab installation problem with perl

and
>from Liutauras Adomaitis <liutauras.adomaitis at gmail.com>
>to kolab-users at kolab.org
>date Fri, May 15, 2009 at 10:00 AM
>subject Compiling Kolab 2.2.1 and php problem

The procedure i do:
1. #rsync -L -rtzvP
rsync://rsync.kolab.org/kolab/server/release/kolab-server-2.2.2/sources/
/usr/local/src/kolab-2.2.2
2. mount new partition to /kolab
3. run: #export TMPDIR=/tmp
4. run #sh install-kolab.sh 2>&1 | tee /root/kolab-install.log
after a while I get (pasting this to indicate that openpkg is installed):
______________________________________________
:::: /tmp/install-kolab.904.31271.10029.31393/openpkg-20071227-20071227_kolab1.src.rpm
::::
:::: /tmp/install-kolab.904.31271.10029.31393/openpkg-20071227-20071227_kolab1.src.rpm
= 0 ::::
:::: /tmp/install-kolab.904.31271.10029.31393/make-3.81-20080101.src.rpm
::::
Installing /tmp/install-kolab.904.31271.10029.31393/make-3.81-20080101.src.rpm
Executing(%prep): env -i /kolab/lib/openpkg/bash --norc --noprofile
--posix -e /kolab/RPM/TMP/rpm-tmp.10119
______________________________________________
.......
---- W A I T -----
.......
And get this
______________________________________________
opmini.c: In function 'Perl_fold_constants':
opmini.c:2340: warning: variable 'curop' might be clobbered by
'longjmp' or 'vfork'
/kolab/bin/gcc -L/kolab/lib -o miniperl \
           `echo   gv.o toke.o perly.o op.o pad.o regcomp.o dump.o
util.o mg.o reentr.o mro.o hv.o av.o perl.o run.o pp_hot.o sv.o pp.o
scope.o pp_ctl.o pp_sys.o doop.o doio.o regexec.o utf8.o taint.o deb.o
universal.o xsutils.o globals.o perlio.o perlapi.o numeric.o mathoms.o
locale.o pp_pack.o pp_sort.o  | sed 's/ op.o / /'` \
           miniperlmain.o opmini.o -lnsl -ldl -lm -lcrypt -lutil -lc
./miniperl -w -Ilib -MExporter -e '<?>' || /kolab/bin/make minitest
./miniperl -Ilib configpm
written lib/Config.pod
updated lib/Config.pm
updated lib/Config_heavy.pl
./miniperl -Ilib lib/lib_pm.PL
Extracting lib.pm (with variable substitutions)
       AutoSplitting perl library
./miniperl -Ilib -e 'use AutoSplit; \
               autosplit_lib_modules(@ARGV)' lib/*.pm
./miniperl -Ilib -e 'use AutoSplit; \
               autosplit_lib_modules(@ARGV)' lib/*/*.pm
/kolab/bin/make lib/re.pm
cp ext/re/re.pm lib/re.pm
./miniperl minimod.pl > lib/ExtUtils/Miniperl.pm
cd lib/unicore &&   ../../miniperl -I../../lib mktables -w
touch uni.data
`sh  cflags "optimize='-O2 -pipe'" perlmain.o`  perlmain.c
         CCCMD =  /kolab/bin/gcc -DPERL_CORE -c -fno-strict-aliasing
-pipe -I/kolab/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64
-std=c89 -O2 -pipe -Wall -ansi   -W -Wextra
-Wdeclaration-after-statement -Wendif-labels -Wc++-compat

       Making DynaLoader (static)
Processing hints file hints/linux.pl
opendir(./../../../../../../..): Permission denied at
../../lib/File/Spec/Unix.pm line 478
opendir(./../../../../../../..): Permission denied at
../../lib/File/Spec/Unix.pm line 478
opendir(./../../../../../../..): Permission denied at
../../lib/File/Spec/Unix.pm line 478
Writing Makefile for DynaLoader
/bin/sh: /miniperl: No such file or directory
make[1]: *** [../../lib/.exists] Error 127
/kolab/bin/make config failed, continuing anyway...
/bin/sh: /miniperl: No such file or directory
make[1]: *** [../../lib/.exists] Error 127
make: *** [DynaLoader.o] Error 2
error: Bad exit status from /kolab/RPM/TMP/rpm-tmp.39639 (%build)


RPM build errors:
   Bad exit status from /kolab/RPM/TMP/rpm-tmp.39639 (%build)
Command exited with non-zero status 1
__________________________________________________

Thats is were I should stop. So here should Kolab Guru tell us where
is a problem.
I did a research myself, and got a patch:
___________________________________
[root at PBL-kolab kolab-2.2.2]# cat /root/cwd.diff
--- lib/Cwd.pm  Tue Dec 18 10:47:07 2007
+++ lib/Cwd.pm.cwd      Thu Jan 24 12:33:29 2008
@@ -501,6 +501,11 @@
sub _perl_abs_path
{
    my $start = @_ ? shift : '.';
+
+    # this just returns a path down from /, without attempting to
+    # resolve .. or symlinks. It *may* be sufficient to build perl.
+    return $start =~ m!^/! ? $start : cwd() . '/' . $start;
+
    my($dotdots, $cwd, @pst, @cst, $dir, @tst);

    unless (@cst = stat( $start ))
_______________________________________

so my next steps:
5. run the same command as in step 4:  #sh install-kolab.sh 2>&1 | tee
/root/kolab-install.log
6. Wait while above command extracts perl and starts building process.
On the other terminal I do:
#cd /kolab/RPM/TMP/perl-5.10.0
#patch -p0 < /root/cwd.diff
This step helps me out to pass errors which I get at first attempt to
build kolab. Now it goes much further, until it starts compiling
apache-php for kolab. I get this:
________________________________________
/bin/sh /kolab/RPM/TMP/php-5.2.8/libtool --silent --preserve-dup-deps
--mode=compile /kolab/bin/cc  -Imain/ -I/kolab/RPM/TMP/php-5.2.8/main/
-DPHP_ATOM_INC -I/kolab/RPM/TMP/php-5.2.8/include
-I/kolab/RPM/TMP/php-5.2.8/main -I/kolab/RPM/TMP/php-5.2.8
-I/kolab/include/libxml2 -I/kolab/include
-I/kolab/RPM/TMP/php-5.2.8/ext/date/lib -I/kolab/include/imap
-I/kolab/RPM/TMP/php-5.2.8/ext/mbstring/oniguruma
-I/kolab/RPM/TMP/php-5.2.8/ext/mbstring/libmbfl
-I/kolab/RPM/TMP/php-5.2.8/ext/mbstring/libmbfl/mbfl
-I/kolab/RPM/TMP/php-5.2.8/TSRM -I/kolab/RPM/TMP/php-5.2.8/Zend
-I/kolab/include  -I/kolab/include -O2 -pipe  -prefer-non-pic -c
/kolab/RPM/TMP/php-5.2.8/main/reentrancy.c -o main/reentrancy.lo
/kolab/RPM/TMP/php-5.2.8/main/reentrancy.c: In function 'php_readdir_r':
/kolab/RPM/TMP/php-5.2.8/main/reentrancy.c:139: error: too few
arguments to function 'readdir_r'
make: *** [main/reentrancy.lo] Error 1
error: Bad exit status from /kolab/RPM/TMP/rpm-tmp.44527 (%build)


RPM build errors:
    Bad exit status from /kolab/RPM/TMP/rpm-tmp.44527 (%build)
Command exited with non-zero status 1
________________________________________

Thats is it I'm here so far.
Any ideas?

My thoughts:
>From my googling I got impression that the error with readdir_r is
because of using or not using POSIX style readdir. But it is not clear
if it is Mandriva or OpenPKG to blame about that. I will vote for
OpenPKG. On the other hand error with perl and error with php
compiling are errors about reading and changing directories, so it
seems that this is related somehow. So maybe it is more global problem
with OpenPKG where one change to it should solve both of these errors.

Thanks for your time
Liutauras




More information about the users mailing list