Alex Low (e-wise)
2004-Aug-10  08:00 UTC
FW: [Dovecot] dovecot-auth: Aug 04 10:48:29 Fatal: Unknown userdb type'mysql'
After better looking in the config.log, 
 
We found this, mysql wasn't compiled because of this; 
 
/usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0xd8): In function
`my_compress_alloc':
: undefined reference to `compress'
/usr/lib/mysql/libmysqlclient.a(my_compress.o)(.text+0x171): In function
`my_uncompress':
: undefined reference to `uncompress'
 
I am using Fedora Core 2, using own compiled mysql 4.x rpm's.
 
Timo Sirainen wrote:
It looks like it's needed to be linked with zlib. Hmm. I haven't heard
this
to be necessary before. It seems to be statically linked in my mysql
library.
 
I think it'd work with:
 
LDFLAGS=-lz ./configure --with-mysql
 
 
And indeed adding -lz  to LDFLAGS= in the spec file helped. 
Anyways I have dovecot rpm for Fedora Core 2 compiled with mysql 4. So if
anybody want it, mail away.
 
Greets,
Alex 
 
  _____  
From: dovecot-bounces at dovecot.org [mailto:dovecot-bounces at dovecot.org] On
Behalf Of Alex Low (e-wise)
Sent: woensdag 4 augustus 2004 11:15
To: dovecot at dovecot.org
Subject: [Dovecot] dovecot-auth: Aug 04 10:48:29 Fatal: Unknown userdb
type'mysql'
 
Hi,
 
I am trying this way(mailinglist), as I cant find good
'support'/howto/tutorials on the website.
 
I am running Fedora Core II, using postfix with mysql, and I want to use
dovecot as imap server.
Now I installed Dovecot using dag wieers SRPM, I compiled it with mysql,
pgsql;
 
%configure \
        --with-ssl="openssl" \
        --with-ssldir="%{_datadir}/ssl" \
        --with-ldap \
        --with-pgsql \
        --with-mysql \
        --with-cyrus-sasl2 \
        --with-rawlog
%{__make} %{?_smp_mflags}
 
 
After compiling it, I installed the rpm. No problem at all.
 
I configure the dovecot.conf like this;
 
#auth = plain digest-md5
#auth_methods = plain digest-md5
auth_userdb = mysql /etc/dovecot-mysql.conf
auth_passdb = mysql /etc/dovecot-mysql.conf
default_mail_env = maildir:/home/mail/virtual/%d/%n
 
# Use this logfile instead of syslog(). /dev/stderr can be used if you want
to
# use stderr for logging (ONLY /dev/stderr - otherwise it is closed).
log_path = /tmp/dovecot/log1
 
# For informational messages, use this logfile instead of the default
info_log_path = /tmp/dovecot/log2
 
 
Then I try run it:
 
 
[root at octa SPECS]# cat /tmp/dovecot/log1
dovecot-auth: Aug 04 10:48:29 Fatal: Unknown userdb type 'mysql'
dovecot: Aug 04 10:48:29 Error: Auth process died too early - shutting down
dovecot: Aug 04 10:48:29 Error: child 2118 (auth) returned error 89
imap-login: Aug 04 10:48:29 Fatal: fd_send(-1) failed: Broken pipe
dovecot-auth: Aug 04 11:04:39 Fatal: Unknown userdb type 'mysql'
dovecot: Aug 04 11:04:39 Error: Auth process died too early - shutting down
dovecot: Aug 04 11:04:39 Error: child 11137 (auth) returned error 89
imap-login: Aug 04 11:04:39 Fatal: fd_send(-1) failed: Broken pipe
imap-login: Aug 04 11:04:39 Fatal: fd_send(-1) failed: Broken pipe
 
[root at octalys SPECS]# cat /tmp/dovecot/log2
dovecot: Aug 04 10:48:28 Info: Dovecot starting up
dovecot: Aug 04 11:04:38 Info: Dovecot starting up
[root at octalys SPECS]#
 
 
 
Can anyone tell me whats wrong please ? 
 
Thank you in advance,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://dovecot.org/pipermail/dovecot/attachments/20040810/443879ba/attachment-0002.html>
