Cannot install 'libdcrypt_openssl.la' to a directory not ending in /usr/lib/dovecot

Mart Pirita mart at e-positive.ee
Sun Dec 15 13:01:22 EET 2019


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


More information about the dovecot mailing list