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
Mart Pirita
2019-Dec-15 11:01 UTC
Cannot install 'libdcrypt_openssl.la' to a directory not ending in /usr/lib/dovecot
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
Aki Tuomi
2019-Dec-15 12:06 UTC
Cannot install 'libdcrypt_openssl.la' to a directory not ending in /usr/lib/dovecot
<!doctype html> <html> <head> <meta charset="UTF-8"> </head> <body> <div> We provide rpm packages for centos 6&7 at https://repo.dovecot.org if you want to try them? </div> <div> <br> </div> <div> Aki </div> <blockquote type="cite"> <div> On 15/12/2019 13:01 Mart Pirita < <a href="mailto:mart@e-positive.ee">mart@e-positive.ee</a>> wrote: </div> <div> <br> </div> <div> <br> </div> <div> Hi, </div> <div> <br> </div> <div> For some reason I've never been able to build x64 dovecot rpm package, </div> <div> no matter how I try, I'm still getting lib64 errors, first tried few </div> <div> years on centos 5, ok I know this is old distro, then few years tried </div> <div> with centos 6 (and wrote here also - CentOS x64 compilation fails), </div> <div> supported distro, no luck, now installed centos 7 and still no luck, so </div> <div> seems it's not about centos or rpm version. </div> <div> <br> </div> <div> So I'm using option "rpmbuild -ba --target=i686 dovecot2.3.spec" to </div> <div> build it, and it works but I'd still like to build x64 version. Why </div> <div> libtool tries to install libdcrypt_openssl.la only instead </div> <div> /usr/lib/dovecot into /usr/lib64/dovecot? . But as I can compile fine </div> <div> postfix etc other openssl used app rpm -s, then is this some dovecot bug </div> <div> or what am I missing? </div> <div> <br> </div> <div> Error: </div> <div> /usr/bin/mkdir -p </div> <div> '/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib/dovecot' </div> <div> /bin/sh ../../libtool --mode=install /usr/bin/install -c </div> <div> libssl_iostream_openssl.la </div> <div> '/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib/dovecot' </div> <div> libtool: install: /usr/bin/install -c .libs/libssl_iostream_openssl.so </div> <div> /root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib/dovecot/libssl_iostream_openssl.so </div> <div> libtool: install: /usr/bin/install -c .libs/libssl_iostream_openssl.lai </div> <div> /root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib/dovecot/libssl_iostream_openssl.la </div> <div> libtool: install: /usr/bin/install -c .libs/libssl_iostream_openssl.a </div> <div> /root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib/dovecot/libssl_iostream_openssl.a </div> <div> libtool: install: chmod 644 </div> <div> /root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib/dovecot/libssl_iostream_openssl.a </div> <div> libtool: install: ranlib </div> <div> /root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib/dovecot/libssl_iostream_openssl.a </div> <div> libtool: warning: remember to run 'libtool --finish /usr/lib/dovecot' </div> <div> /usr/bin/mkdir -p </div> <div> '/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/include/dovecot' </div> <div> /usr/bin/install -c -m 644 iostream-openssl.h iostream-ssl.h </div> <div> iostream-ssl-private.h iostream-ssl-test.h </div> <div> '/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/include/dovecot' </div> <div> make[3]: Leaving directory </div> <div> `/root/rpmbuild/BUILD/dovecot-2.3.9.2/src/lib-ssl-iostream' </div> <div> make[2]: Leaving directory </div> <div> `/root/rpmbuild/BUILD/dovecot-2.3.9.2/src/lib-ssl-iostream' </div> <div> Making install in lib-dcrypt </div> <div> make[2]: Entering directory </div> <div> `/root/rpmbuild/BUILD/dovecot-2.3.9.2/src/lib-dcrypt' </div> <div> make[3]: Entering directory </div> <div> `/root/rpmbuild/BUILD/dovecot-2.3.9.2/src/lib-dcrypt' </div> <div> /usr/bin/mkdir -p </div> <div> '/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib64/dovecot' </div> <div> /bin/sh ../../libtool --mode=install /usr/bin/install -c </div> <div> libdcrypt_openssl.la </div> <div> '/root/rpmbuild/BUILDROOT/dovecot-2.3.9.2-mp.x86_64/usr/lib64/dovecot' </div> <div> libtool: error: error: cannot install 'libdcrypt_openssl.la' to a </div> <div> directory not ending in /usr/lib/dovecot </div> <div> make[3]: *** [install-pkglibLTLIBRARIES] Error 1 </div> <div> make[3]: Leaving directory </div> <div> `/root/rpmbuild/BUILD/dovecot-2.3.9.2/src/lib-dcrypt' </div> <div> make[2]: *** [install-am] Error 2 </div> <div> make[2]: Leaving directory </div> <div> `/root/rpmbuild/BUILD/dovecot-2.3.9.2/src/lib-dcrypt' </div> <div> make[1]: *** [install-recursive] Error 1 </div> <div> make[1]: Leaving directory `/root/rpmbuild/BUILD/dovecot-2.3.9.2/src' </div> <div> make: *** [install-recursive] Error 1 </div> <div> error: Bad exit status from /var/tmp/rpm-tmp.EVWbif (%install) </div> <div> <br> </div> <div> <br> </div> <div> Options: </div> <div> ./configure \ </div> <div> --prefix=/usr \ </div> <div> --with-ssl=openssl \ </div> <div> --with-ssldir=/etc/ssl \ </div> <div> --sysconfdir=/etc \ </div> <div> --without-vpopmail \ </div> <div> --with-pam \ </div> <div> --without-bsdauth \ </div> <div> --without-sql \ </div> <div> --without-nss \ </div> <div> --without-ldap \ </div> <div> --without-pgsql \ </div> <div> --without-mysql \ </div> <div> --without-sqlite \ </div> <div> --with-rundir=/var/run/dovecot \ </div> <div> --without-sia \ </div> <div> --without-cassandra \ </div> <div> --without-lucene \ </div> <div> --without-solr \ </div> <div> --without-textcat \ </div> <div> --without-libcap \ </div> <div> --without-stemmer \ </div> <div> --disable-rpath \ </div> <div> --disable-dependency-tracking \ </div> <div> --disable-silent-rules \ </div> <div> --without-gssapi \ </div> <div> --without-cdb </div> <div> <br> </div> <div> -- </div> <div> Mart </div> </blockquote> <div> <br> </div> <div class="io-ox-signature"> <pre>--- Aki Tuomi</pre> </div> </body> </html>
Reasonably Related Threads
- Cannot install 'libdcrypt_openssl.la' to a directory not ending in /usr/lib/dovecot
- Cannot install 'libdcrypt_openssl.la' to a directory not ending in /usr/lib/dovecot
- Cannot install 'libdcrypt_openssl.la' to a directory not ending in /usr/lib/dovecot
- Dovecot 2.2.25 fails on SSL
- Can anyone compile mtr source RPM on CentOS 6.7?