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
Hi,
For some reason I've never been able to build x64 dovecot rpm package, no matter how I try, I'm still getting lib64 errors, first tried few years on centos 5, ok I know this is old distro, then few years tried with centos 6 (and wrote here also - CentOS x64 compilation fails), supported distro, no luck, now installed centos 7 and still no luck, so seems it's not about centos or rpm version.
So I'm using option "rpmbuild -ba --target=i686 dovecot2.3.spec" to build it, and it works but I'd still like to build x64 version. Why libtool tries to install libdcrypt_openssl.la only instead /usr/lib/dovecot into /usr/lib64/dovecot? . But as I can compile fine postfix etc other openssl used app rpm -s, then is this some dovecot bug or what am I missing?
Error:
/usr/bin/mkdir -p
'/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib/dovecot'
/bin/sh ../../libtool --mode=install /usr/bin/install -c
libssl_iostream_openssl.la
'/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib/dovecot'
libtool: install: /usr/bin/install -c .libs/libssl_iostream_openssl.so
/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib/dovecot/libssl_iostream_openssl.so
libtool: install: /usr/bin/install -c .libs/libssl_iostream_openssl.lai
/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib/dovecot/libssl_iostream_openssl.la
libtool: install: /usr/bin/install -c .libs/libssl_iostream_openssl.a
/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib/dovecot/libssl_iostream_openssl.a
libtool: install: chmod 644
/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib/dovecot/libssl_iostream_openssl.a
libtool: install: ranlib
/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib/dovecot/libssl_iostream_openssl.a
libtool: warning: remember to run 'libtool --finish /usr/lib/dovecot'
/usr/bin/mkdir -p
'/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/include/dovecot'
/usr/bin/install -c -m 644 iostream-openssl.h iostream-ssl.h
iostream-ssl-private.h iostream-ssl-test.h
'/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/include/dovecot'
make[3]: Leaving directory
/root/rpmbuild/BUILD/dovecot-2.3.9.2/src/lib-ssl-iostream' make[2]: Leaving directory
/root/rpmbuild/BUILD/dovecot-2.3.9.2/src/lib-ssl-iostream'
Making install in lib-dcrypt
make[2]: Entering directory
/root/rpmbuild/BUILD/dovecot-2.3.9.2/src/lib-dcrypt' make[3]: Entering directory
/root/rpmbuild/BUILD/dovecot-2.3.9.2/src/lib-dcrypt'
/usr/bin/mkdir -p
'/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib64/dovecot'
/bin/sh ../../libtool --mode=install /usr/bin/install -c
libdcrypt_openssl.la
'/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib64/dovecot'
libtool: error: error: cannot install 'libdcrypt_openssl.la' to a
directory not ending in /usr/lib/dovecot
make[3]: *** [install-pkglibLTLIBRARIES] Error 1
make[3]: Leaving directory
/root/rpmbuild/BUILD/dovecot-2.3.9.2/src/lib-dcrypt' make[2]: *** [install-am] Error 2 make[2]: Leaving directory
/root/rpmbuild/BUILD/dovecot-2.3.9.2/src/lib-dcrypt'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/root/rpmbuild/BUILD/dovecot-2.3.9.2/src'
make: *** [install-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.EVWbif (%install)
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-sia
--without-cassandra
--without-lucene
--without-solr
--without-textcat
--without-libcap
--without-stemmer
--disable-rpath
--disable-dependency-tracking
--disable-silent-rules
--without-gssapi
--without-cdb
-- Mart
Well, but not for centos 5 and also these rpm are including a lot stuff what I don't need. But I will check the src rpm -s from repo and diff these specs with my current ones.
Mart
Aki Tuomi wrote:
On 15 Dec 2019, at 15:19, Alexander Dalloz <ad+lists@uni-x.org> wrote:
And Centos 6 will be EOL in less than a year, so you probably shouldn’t move to it either.
-- "Are you pondering what I'm pondering?" "Um, I think so, Brain-2, but a show about two talking lab mice? Hoo! It'll never get on the air.”
Hi,
I asked how to build x64 rpm, so discussion about EOL operating systems is totally off topic. :( FYI, I'm still managing 4 production RedHat 6.2 (Zoot relased year 2000) based MTA servers and they are using latest self compiled and updated kernel, latest dovecot, postfix, openssl, openssh, bind etc, so they are in top shape and working well.
So official EOL is just for dummies. :)
Mart
@lbutlr wrote:
participants (5)
-
@lbutlr
-
Aki Tuomi
-
Alexander Dalloz
-
Benny Pedersen
-
Mart Pirita