Vpopmail Error

Aki Tuomi aki.tuomi at dovecot.fi
Tue Apr 11 20:13:25 EEST 2017


diff --git a/src/auth/userdb-vpopmail.c b/src/auth/userdb-vpopmail.c
index 5042dcf..d344fcd 100644
--- a/src/auth/userdb-vpopmail.c
+++ b/src/auth/userdb-vpopmail.c
@@ -54,7 +54,7 @@ struct vqpasswd *vpopmail_lookup_vqp(struct auth_request *request,
 static const char *
 userdb_vpopmail_get_quota(const char *template, const char *vpop_str)
 {
-       const struct var_expand_table *tab;
+       struct var_expand_table *tab;
        string_t *quota;
 
        if (template == NULL || *vpop_str == '\0' ||

can you give this a go? It should repair the build. 

Aki

> On April 11, 2017 at 7:32 PM Bobber <bobber at kc0dxf.net> wrote:
> 
> 
> Still not working.  I'm now getting this error:
> 
> > userdb-vpopmail.c: In function ‘userdb_vpopmail_get_quota’:
> > userdb-vpopmail.c:65:13: error: assignment of member ‘key’ in 
> > read-only object
> >   tab[0].key = 'q';
> >              ^
> > userdb-vpopmail.c:66:15: error: assignment of member ‘value’ in 
> > read-only object
> >   tab[0].value = format_maildirquota(vpop_str);
> >                ^
> > Makefile:2048: recipe for target 'auth-userdb-vpopmail.o' failed
> > make[3]: *** [auth-userdb-vpopmail.o] Error 1
> > make[3]: Leaving directory '/usr/local/src/dovecot-2.2.29/src/auth'
> > Makefile:496: recipe for target 'all-recursive' failed
> > make[2]: *** [all-recursive] Error 1
> > make[2]: Leaving directory '/usr/local/src/dovecot-2.2.29/src'
> > Makefile:619: recipe for target 'all-recursive' failed
> > make[1]: *** [all-recursive] Error 1
> > make[1]: Leaving directory '/usr/local/src/dovecot-2.2.29'
> > Makefile:463: recipe for target 'all' failed
> > make: *** [all] Error 2
> 
> 
> -------- Original Message --------
> Subject: Re: Vpopmail Error
> From: Timo Sirainen <tss at iki.fi>
> To: Bobber <bobber at kc0dxf.net>
> Date: 04/11/2017 02:28 AM
> > On 10 Apr 2017, at 23.55, Bobber <bobber at kc0dxf.net 
> > <mailto:bobber at kc0dxf.net>> wrote:
> >>
> >> I'm trying to compile the latest Dovecot (v2.2.29) and when I run 
> >> make I get this error:
> >>
> >>> auth-userdb-vpopmail.o: In function `userdb_vpopmail_get_quota':
> >>> /usr/local/src/dovecot-2.2.29/src/auth/userdb-vpopmail.c:64: 
> >>> undefined reference to `var_expand_table_build'
> >>> collect2: error: ld returned 1 exit status
> >>> Makefile:932: recipe for target 'auth' failed
> >>> make[3]: *** [auth] Error 1
> >>> make[3]: Leaving directory '/usr/local/src/dovecot-2.2.29/src/auth'
> >>> Makefile:496: recipe for target 'all-recursive' failed
> >>> make[2]: *** [all-recursive] Error 1
> >>> make[2]: Leaving directory '/usr/local/src/dovecot-2.2.29/src'
> >>> Makefile:619: recipe for target 'all-recursive' failed
> >>> make[1]: *** [all-recursive] Error 1
> >>> make[1]: Leaving directory '/usr/local/src/dovecot-2.2.29'
> >>> Makefile:463: recipe for target 'all' failed
> >>> make: *** [all] Error 2
> >>
> >> I'm using Debian Jessie and it's up to date.  Just to make sure it 
> >> wasn't something in Jessie I went back into v2.2.28 (which I've been 
> >> using since it was released) and did a clean build successfully.
> >>
> >> I've never had any problems compiling dovecot up until now. Any ideas 
> >> on how to fix this?
> >
> > Fixed by 
> > https://github.com/dovecot/core/commit/892ba92f54b853dd7cf860eca771e441ca9632aa
> >
> 
> -- 
> *Bob Wooldridge*
> Blog: http://kc0dxf.net/blog/


More information about the dovecot mailing list