Hello
I'm attempting to configure Dovecot with mysql support so I'm able to have a single database of users and point both postfix and dovecot to this db.
I currently have an rpm src that I have download and placed in my RPMBUILDROOT of my linux box.
Next I configured the .spec file and attempted to run a rpmbuild -bb
Near the end of the install phase I receive an error which has me stumped.
I ran rpmbuild again and used the -bi --short-circuit options and logged the output for you to see.
Any help would be greatly appreciated.....
rpmbuild -bi --short-circuit dovecot-fc5.spec
Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.44599 Making install in src
make[1]: Entering directory /usr/src/redhat/BUILD/dovecot-1.0.beta7/src' Making install in lib make[2]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib'
make[3]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib' make[3]: Nothing to be done for
install-exec-am'.
make[3]: Nothing to be done for install-data-am'. make[3]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib'
make[2]: Leaving directory /usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib' Making install in lib-dict make[2]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-dict'
make[3]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-dict' make[3]: Nothing to be done for
install-exec-am'.
make[3]: Nothing to be done for install-data-am'. make[3]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-dict'
make[2]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-dict' Making install in lib-sql make[2]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-sql'
make[3]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-sql' make[3]: Nothing to be done for
install-exec-am'.
make[3]: Nothing to be done for install-data-am'. make[3]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-sql'
make[2]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-sql' Making install in lib-ntlm make[2]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-ntlm'
make[3]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-ntlm' make[3]: Nothing to be done for
install-exec-am'.
make[3]: Nothing to be done for install-data-am'. make[3]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-ntlm'
make[2]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-ntlm' Making install in lib-settings make[2]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-settings'
make[3]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-settings' make[3]: Nothing to be done for
install-exec-am'.
make[3]: Nothing to be done for install-data-am'. make[3]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-settings'
make[2]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-settings' Making install in lib-charset make[2]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-charset'
make[3]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-charset' make[3]: Nothing to be done for
install-exec-am'.
make[3]: Nothing to be done for install-data-am'. make[3]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-charset'
make[2]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-charset' Making install in lib-mail make[2]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-mail'
make[3]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-mail' make[3]: Nothing to be done for
install-exec-am'.
make[3]: Nothing to be done for install-data-am'. make[3]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-mail'
make[2]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-mail' Making install in lib-imap make[2]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-imap'
make[3]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-imap' make[3]: Nothing to be done for
install-exec-am'.
make[3]: Nothing to be done for install-data-am'. make[3]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-imap'
make[2]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-imap' Making install in lib-index make[2]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-index'
make[3]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-index' make[3]: Nothing to be done for
install-exec-am'.
make[3]: Nothing to be done for install-data-am'. make[3]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-index'
make[2]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-index' Making install in lib-storage make[2]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage'
Making install in index
make[3]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index' Making install in maildir make[4]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index/maildir'
make[5]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index/maildir' make[5]: Nothing to be done for
install-exec-am'.
make[5]: Nothing to be done for install-data-am'. make[5]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index/maildir'
make[4]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index/maildir' Making install in mbox make[4]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index/mbox'
make[5]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index/mbox' make[5]: Nothing to be done for
install-exec-am'.
make[5]: Nothing to be done for install-data-am'. make[5]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index/mbox'
make[4]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index/mbox' Making install in dbox make[4]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index/dbox'
make[5]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index/dbox' make[5]: Nothing to be done for
install-exec-am'.
make[5]: Nothing to be done for install-data-am'. make[5]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index/dbox'
make[4]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index/dbox' make[4]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index'
make[5]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index' make[5]: Nothing to be done for
install-exec-am'.
make[5]: Nothing to be done for install-data-am'. make[5]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index'
make[4]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index' make[3]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/index'
Making install in subscription-file
make[3]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/subscription-file' make[4]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/subscription-file'
make[4]: Nothing to be done for install-exec-am'. make[4]: Nothing to be done for
install-data-am'.
make[4]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/subscription-file' make[3]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/subscription-file'
Making install in register
make[3]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/register' make install-am make[4]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/register'
make[5]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/register' make[5]: Nothing to be done for
install-exec-am'.
make[5]: Nothing to be done for install-data-am'. make[5]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/register'
make[4]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/register' make[3]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage/register'
make[3]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage' make[4]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage'
make[4]: Nothing to be done for install-exec-am'. make[4]: Nothing to be done for
install-data-am'.
make[4]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage' make[3]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage'
make[2]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-storage' Making install in lib-auth make[2]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-auth'
make[3]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-auth' make[3]: Nothing to be done for
install-exec-am'.
make[3]: Nothing to be done for install-data-am'. make[3]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-auth'
make[2]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/lib-auth' Making install in auth make[2]: Entering directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/auth'
/bin/sh ../../libtool --mode=link --tag=CC gcc -std=gnu99 -O2 -g
-march=i386 -mcpu=i686 -Wall -W -Wmissing-prototypes -Wmissing-declarations
-Wpointer-arith -Wchar-subscripts -Wformat=2
-Wbad-function-cast -I/usr/kerberos/include -o dovecot-auth auth.o
auth-cache.o auth-client-connection.o auth-master-connection.o
auth-master-listener.o auth-module.o auth-request.o auth-request-handler.o
auth-stream.o auth-worker-client.o auth-worker-server.o db-ldap.o db-sql.o
db-passwd-file.o main.o mech.o mech-anonymous.o mech-plain.o mech-login.o
mech-cram-md5.o mech-digest-md5.o mech-ntlm.o mech-gssapi.o mech-rpa.o
mech-apop.o passdb.o passdb-blocking.o passdb-bsdauth.o passdb-cache.o
passdb-ldap.o passdb-passwd.o passdb-passwd-file.o passdb-pam.o
passdb-checkpassword.o passdb-shadow.o passdb-vpopmail.o passdb-sql.o
userdb.o userdb-blocking.o userdb-ldap.o userdb-passwd.o
userdb-passwd-file.o userdb-prefetch.o userdb-static.o userdb-vpopmail.o
userdb-sql.o libpassword.a ../lib-settings/libsettings.a
../lib-ntlm/libntlm.a ../lib-sql/libsql.a ../lib/liblib.a -lcrypt -lpam
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lresolv -lldap -L/usr/lib/mysql
-lmysqlclient -lz -lm -export-dynamic -ldl gcc -std=gnu99 -O2 -g
-march=i386 -mcpu=i686 -Wall -W -Wmissing-prototypes -Wmissing-declarations
-Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast
-I/usr/kerberos/include -o dovecot-auth auth.o auth-cache.o
auth-client-connection.o auth-master-connection.o auth-master-listener.o
auth-module.o auth-request.o auth-request-handler.o auth-stream.o
auth-worker-client.o auth-worker-server.o db-ldap.o db-sql.o
db-passwd-file.o main.o mech.o mech-anonymous.o mech-plain.o mech-login.o
mech-cram-md5.o mech-digest-md5.o mech-ntlm.o mech-gssapi.o mech-rpa.o
mech-apop.o passdb.o passdb-blocking.o passdb-bsdauth.o passdb-cache.o
passdb-ldap.o passdb-passwd.o passdb-passwd-file.o passdb-pam.o
passdb-checkpassword.o passdb-shadow.o passdb-vpopmail.o passdb-sql.o
userdb.o userdb-blocking.o userdb-ldap.o userdb-passwd.o
userdb-passwd-file.o userdb-prefetch.o userdb-static.o userdb-vpopmail.o
userdb-sql.o -Wl,--export-dynamic
libpassword.a../lib-settings/libsettings.a ../lib-ntlm/libntlm.a
../lib-sql/libsql.a
../lib/liblib.a -lpam
-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lldap -L/usr/lib/mysql
/usr/lib/mysql/libmysqlclient.a -lcrypt -lnsl -lc -lnss_files -lnss_dns
-lresolv -lz -lm -ldl
make[2]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src/auth' make[1]: Leaving directory
/usr/src/redhat/BUILD/dovecot-1.0.beta7/src'
RPM build errors: /BUILD/dovecot-1.0.beta7/src/lib/sha1.c:233: first defined here /usr/bin/ld: Warning: size of symbol `sha1_result' changed from 190 in ../lib/liblib.a(sha1.o) to 126 in /usr/lib/mysql/libmysqlclient.a(sha1.o) collect2: ld returned 1 exit status make[2]: *** [dovecot-auth] Error 1 make[1]: *** [install-recursive] Error 1 make: *** [install-recursive] Error 1 error: Bad exit status from /var/tmp/rpm-tmp.44599 (%install) Bad exit status from /var/tmp/rpm-tmp.44599 (%install)
Thanks,
-m3