Re: dovecot-mysql broken on my system

2014-10-28 Thread Giovanni Bechis
On 10/27/14 20:25, Stuart Henderson wrote: > On 2014/10/27 18:59, Giovanni Bechis wrote: >> DISTNAME= courier-authlib-0.66.1 >> +REVISION= 1 >> PKGNAME-main= ${DISTNAME} >> PKGNAME-ldap= ${DISTNAME:S/lib-/lib-ldap-/} >> PKGNAME-mysql=

Re: dovecot-mysql broken on my system

2014-10-27 Thread Brad Smith
On 27/10/14 4:45 PM, Stuart Henderson wrote: On 2014/10/27 16:30, Brad Smith wrote: On 27/10/14 8:00 AM, Stuart Henderson wrote: Diff is done this way for expediency, to go upstream it would at least want the patch moving to configure.ac and checking the OS. A nasty hack like this is not goin

Re: dovecot-mysql broken on my system

2014-10-27 Thread Stuart Henderson
On 2014/10/27 16:30, Brad Smith wrote: > On 27/10/14 8:00 AM, Stuart Henderson wrote: > >Diff is done this way for expediency, to go upstream it would at > >least want the patch moving to configure.ac and checking the OS. > > A nasty hack like this is not going upstream. It's nasty, but I don't b

Re: dovecot-mysql broken on my system

2014-10-27 Thread Brad Smith
On 27/10/14 8:00 AM, Stuart Henderson wrote: Diff is done this way for expediency, to go upstream it would at least want the patch moving to configure.ac and checking the OS. A nasty hack like this is not going upstream. -- This message has been scanned for viruses and dangerous content by Mai

Re: dovecot-mysql broken on my system

2014-10-27 Thread Stuart Henderson
On 2014/10/27 18:59, Giovanni Bechis wrote: > DISTNAME=courier-authlib-0.66.1 > +REVISION=1 > PKGNAME-main=${DISTNAME} > PKGNAME-ldap=${DISTNAME:S/lib-/lib-ldap-/} > PKGNAME-mysql= ${DISTNAME:S/lib-/lib-mysql-/} > PKGNAME-pg

Re: dovecot-mysql broken on my system

2014-10-27 Thread Giovanni Bechis
On 10/27/14 14:44, Giovanni Bechis wrote: > On 10/27/14 13:00, Stuart Henderson wrote: >> Try this diff. >> >> Untested but if my theory as to why it's breaking is correct, it >> should work. >> >> Only the dlopen()'d libdriver_mysql.so modules are linked with >> -lpthread. This isn't enough on Ope

Re: dovecot-mysql broken on my system

2014-10-27 Thread Antti Harri
Works here too as I'm able to connect with my mail client again. ;-) -- Antti Harri

Re: dovecot-mysql broken on my system

2014-10-27 Thread Giovanni Bechis
On 10/27/14 13:00, Stuart Henderson wrote: > Try this diff. > > Untested but if my theory as to why it's breaking is correct, it > should work. > > Only the dlopen()'d libdriver_mysql.so modules are linked with > -lpthread. This isn't enough on OpenBSD, the programs calling them > also need linki

Re: dovecot-mysql broken on my system

2014-10-27 Thread David Coppa
On Mon, Oct 27, 2014 at 1:28 PM, johnw wrote: > On 2014年10月27日 星期一 08:00 下午, Stuart Henderson wrote: >> >> Try this diff. >> >> > Yeah, it work. > > Thank you. > ok with me. Ciao, David -- "If you try a few times and give up, you'll never get there. But if you keep at it... There's a lot of pro

Re: dovecot-mysql broken on my system

2014-10-27 Thread johnw
On 2014年10月27日 星期一 08:00 下午, Stuart Henderson wrote: Try this diff. Yeah, it work. Thank you.

Re: dovecot-mysql broken on my system

2014-10-27 Thread Stuart Henderson
Try this diff. Untested but if my theory as to why it's breaking is correct, it should work. Only the dlopen()'d libdriver_mysql.so modules are linked with -lpthread. This isn't enough on OpenBSD, the programs calling them also need linking that way. LD_PRELOAD didn't work because Dovecot cleans

Re: dovecot-mysql broken on my system

2014-10-21 Thread johnw
hmm. I don't see anything indicating a problem with those 2, but then neither do I see it trying to load the mysql plugin. at what point do you normally see the error? at startup or when you connect? if it's when you connect, re-run and try to connect. The error is when I connect it, not star

Re: dovecot-mysql broken on my system

2014-10-21 Thread Stuart Henderson
On 2014/10/21 21:40, johnw wrote: > On 2014年10月21日 星期二 08:58 下午, Stuart Henderson wrote: > > > >Can you try these two (as root) and send full output please (it will be about > >400 lines for each so it might be easier to run them under 'script'). > > > >LD_DEBUG=1 dovecot -F > > > >LD_DEBUG=1 LD_PR

Re: dovecot-mysql broken on my system

2014-10-21 Thread Stuart Henderson
On 2014/10/21 19:25, johnw wrote: > Hi, Luis Coronado > > I already tried this (LD_PRELOAD=libpthread.so dovecot), but still not work. > > The error message same as before. > (dovecot: auth: Error: > dlopen(/usr/local/lib/dovecot/auth/libdriver_mysql.so) failed: Cannot load > specified object) >

Re: dovecot-mysql broken on my system

2014-10-21 Thread johnw
Hi, Luis Coronado I already tried this (LD_PRELOAD=libpthread.so dovecot), but still not work. The error message same as before. (dovecot: auth: Error: dlopen(/usr/local/lib/dovecot/auth/libdriver_mysql.so) failed: Cannot load specified object) Thank you.

Re: dovecot-mysql broken on my system

2014-10-20 Thread Luis Coronado
Can you try starting Dovecot by hand with 'LD_PRELOAD=libpthread.so dovecot" and see if this fixes things please? this also 'fixes' the problem with courier-authlib-mysql on a amd64/current box (19/10/2014) without LD_PRELOAD: /usr/local/libexec/courier-authlib/authdaemond INFO: modules="authsq

Re: dovecot-mysql broken on my system

2014-10-20 Thread John Wong
On 2014年09月21日 星期日 08:03 上午, johnw wrote: On 2014年09月21日 星期日 04:35 上午, Stuart Henderson wrote: Can you try starting Dovecot by hand with 'LD_PRELOAD=libpthread.so dovecot" and see if this fixes things please? I tried it now, but still not working, the error messages same as before. Thank y

Re: dovecot-mysql broken on my system

2014-09-20 Thread johnw
On 2014年09月21日 星期日 04:35 上午, Stuart Henderson wrote: Can you try starting Dovecot by hand with 'LD_PRELOAD=libpthread.so dovecot" and see if this fixes things please? I tried it now, but still not working, the error messages same as before. Thank you.

Re: dovecot-mysql broken on my system

2014-09-20 Thread Stuart Henderson
On 2014/09/20 19:02, johnw wrote: > Hi, I noticed my dovecot server stop working, after upgrade to current > package(19-9-2014). > (at the same time, also upgrade mysql-client/server to > mariadb-client/server) > and find some error messages in /var/log/mailing like this: > > dovecot: auth: Error:

dovecot-mysql broken on my system

2014-09-20 Thread johnw
Hi, I noticed my dovecot server stop working, after upgrade to current package(19-9-2014). (at the same time, also upgrade mysql-client/server to mariadb-client/server) and find some error messages in /var/log/mailing like this: dovecot: auth: Error: dlopen(/usr/local/lib/dovecot/auth/libdrive