CentOS x64 compilation fails.

Mart Pirita mart at e-positive.ee
Sun Oct 12 07:01:32 UTC 2014


Hello.


I have problems to compile Dovecot2.2.13 with rpmbuild using options:

./configure \
         --prefix=/usr \
         --with-ssl=openssl \
         --with-ssldir=/etc/ssl \
         --sysconfdir=/etc \
         --without-vpopmail \
         --with-pam \
         --without-bsdauth \
         --without-sql \
         --without-nss \
         --without-ldap \
         --without-pgsql \
         --without-mysql \
         --without-sqlite \
         --with-rundir=/var/run/dovecot \
         --without-deliver \
         --without-gssapi

make

Using CentOS 5.11, option - rpmbuild -ba dovecot2.2.spec fails with error:


  /bin/mkdir -p '/var/tmp/dovecot-2.2.13-mp-root/usr/lib64/dovecot'
  /bin/sh ../../libtool   --mode=install /usr/bin/install -c 
libdovecot-storage.la '/var/tmp/dovecot-2.2.13-mp-root/usr/lib64/dovecot'
libtool: install: error: cannot install `libdovecot-storage.la' to a 
directory not ending in /usr/lib/dovecot
make[4]: *** [install-pkglibLTLIBRARIES] Error 1
make[4]: Leaving directory 
`/usr/src/redhat/BUILD/dovecot-2.2.13/src/lib-storage'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory 
`/usr/src/redhat/BUILD/dovecot-2.2.13/src/lib-storage'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory 
`/usr/src/redhat/BUILD/dovecot-2.2.13/src/lib-storage'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/dovecot-2.2.13/src'
make: *** [install-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.14076 (%install)

RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.14076 (%install)

But using CentOS 5.11with option- rpmbuild --target=i686 -ba 
dovecot2.2.spec works fine.


However, using CentOS 6.5, with option - rpmbuild -ba dovecot2.2.spec 
fails with error:

  /bin/mkdir -p 
'/root/rpmbuild/BUILDROOT/dovecot-2.2.13-mp.x86_64/usr/lib64/dovecot'
  /bin/sh ../../libtool   --mode=install /usr/bin/install -c   
libdovecot-storage.la 
'/root/rpmbuild/BUILDROOT/dovecot-2.2.13-mp.x86_64/usr/lib64/dovecot'
libtool: install: error: cannot install `libdovecot-storage.la' to a 
directory not ending in /usr/lib/dovecot
make[4]: *** [install-pkglibLTLIBRARIES] Error 1
make[4]: Leaving directory 
`/root/rpmbuild/BUILD/dovecot-2.2.13/src/lib-storage'
make[3]: *** [install-am] Error 2
make[3]: Leaving directory 
`/root/rpmbuild/BUILD/dovecot-2.2.13/src/lib-storage'
make[2]: *** [install-recursive] Error 1
make[2]: Leaving directory 
`/root/rpmbuild/BUILD/dovecot-2.2.13/src/lib-storage'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/dovecot-2.2.13/src'
make: *** [install-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.HP3meN (%install)

RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.HP3meN (%install)


But when CentOS 5.11with option rpmbuild --target=i686 -ba 
dovecot2.2.spec suceeds,
CentOS 6.5still fails:

cpio: dovecot-2.2.13/src/lib-compression/abspath.c: Cannot stat: No such 
file or directory
cpio: dovecot-2.2.13/src/lib-compression/compat.h: Cannot stat: No such 
file or directory
cpio: dovecot-2.2.13/src/lib-compression/lib.h: Cannot stat: No such 
file or directory
18096 blocks
+ /usr/lib/rpm/check-buildroot
/root/rpmbuild/BUILDROOT/dovecot-2.2.13-mp.i386/usr/lib/dovecot/dovecot-config:LIBDOVECOT='-L/root/rpmbuild/BUILDROOT/dovecot-2.2.13-mp.i386/usr/lib/dovecot 
-ldovecot'
/root/rpmbuild/BUILDROOT/dovecot-2.2.13-mp.i386/usr/lib/dovecot/dovecot-config:LIBDOVECOT_INCLUDE=-I/root/rpmbuild/BUILDROOT/dovecot-2.2.13-mp.i386/usr/include/dovecot
Found '/root/rpmbuild/BUILDROOT/dovecot-2.2.13-mp.i386' in installed 
files; aborting
error: Bad exit status from /var/tmp/rpm-tmp.69mGY0 (%install)

RPM build errors:
     Bad exit status from /var/tmp/rpm-tmp.69mGY0 (%install)


How to fix these errors?

-- 
Mart



More information about the dovecot mailing list