Hi, I'm building dovecot.src.rpm with vpopmail support and I get this error: if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/lib -I../../src/lib-sql -I../../src/lib-settings -I../../src/lib-ntlm -DAUTH_MODULE_DIR=\""/usr/lib/dovecot/auth"\" -DPKG_LIBEXECDIR=\""/usr/libexec/dovecot"\" -I/home/vpopmail/include -std=gnu99 -O2 -g -march=i686 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/kerberos/include -std=gnu99 -O2 -g -march=i686 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/kerberos/include -MT userdb-vpopmail.o -MD -MP -MF ".deps/userdb-vpopmail.Tpo" -c -o userdb-vpopmail.o userdb-vpopmail.c; \ then mv -f ".deps/userdb-vpopmail.Tpo" ".deps/userdb-vpopmail.Po"; else rm -f ".deps/userdb-vpopmail.Tpo"; exit 1; fi userdb-vpopmail.c: In function `vpopmail_lookup_vqp': userdb-vpopmail.c:30: error: `auth_request' undeclared (first use in this function) userdb-vpopmail.c:30: error: (Each undeclared identifier is reported only once userdb-vpopmail.c:30: error: for each function it appears in.) make[3]: *** [userdb-vpopmail.o] Error 1 make[3]: Leaving directory `/usr/src/redhat/BUILD/dovecot-1.0.rc27/src/auth' make[2]: *** [all-recursive] Error 1 make[2]: Leaving directory `/usr/src/redhat/BUILD/dovecot-1.0.rc27/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/usr/src/redhat/BUILD/dovecot-1.0.rc27' make: *** [all] Error 2 error: Bad exit status from /var/tmp/rpm-tmp.73126 (%build) I'm using: - vpopmail from: http://www.qmailtoaster.com/download/stable/vpopmail-toaster-5.4.13-1.3.3.src.rpm - centos 4.4 - dovecot rpm from: http://dl.atrpms.net/all/dovecot-1.0-3_50.rc27.at.src.rpm - rpmbuild command: rpmbuild --rebuild --without inotify --with pam_stack --with forcequota2 --with vpopmail --target=i686 dovecot-1.0-3_50.rc27.at.src.rpm Also, I don't if vpopmail support is official, in that case, this info should go to the devel version of dovecot HTH Oliver -- Oliver Schulze L. | Get my e-mail after a captcha in: Asuncion - Paraguay | http://tinymailto.com/oliver
Hi, On Thu, Mar 22, 2007 at 12:23:04PM -0400, Oliver Schulze L. wrote:> I'm building dovecot.src.rpm with vpopmail support and I get this error:> - dovecot rpm from: > http://dl.atrpms.net/all/dovecot-1.0-3_50.rc27.at.src.rpm > - rpmbuild command: > rpmbuild --rebuild --without inotify --with pam_stack --with > forcequota2 --with vpopmail --target=i686 dovecot-1.0-3_50.rc27.at.src.rpmthere is no "--with vpopmail" switch in the src.rpm you used. -- Axel.Thimm at ATrpms.net -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: not available URL: <http://dovecot.org/pipermail/dovecot/attachments/20070322/d820eda8/attachment.bin>
It is solved in rc29, this patch was necesary: # diff -Naur src/auth/userdb-vpopmail.c.ori src/auth/userdb-vpopmail.c --- src/auth/userdb-vpopmail.c.ori 2007-04-03 15:43:10.000000000 -0400 +++ src/auth/userdb-vpopmail.c 2007-04-03 15:43:16.000000000 -0400 @@ -27,7 +27,7 @@ return NULL; } - auth_request_log_debug(auth_request, "vpopmail", + auth_request_log_debug(request, "vpopmail", "lookup user=%s domain=%s", vpop_user, vpop_domain); Oliver Axel Thimm wrote:> Hi, > > On Thu, Mar 22, 2007 at 12:23:04PM -0400, Oliver Schulze L. wrote: > >> I'm building dovecot.src.rpm with vpopmail support and I get this error: >> > > >> - dovecot rpm from: >> http://dl.atrpms.net/all/dovecot-1.0-3_50.rc27.at.src.rpm >> - rpmbuild command: >> rpmbuild --rebuild --without inotify --with pam_stack --with >> forcequota2 --with vpopmail --target=i686 dovecot-1.0-3_50.rc27.at.src.rpm >> > > there is no "--with vpopmail" switch in the src.rpm you used. >-- Oliver Schulze L. | Get my e-mail after a captcha in: Asuncion - Paraguay | http://tinymailto.com/oliver
Hi Axel, thanks, I try building by editing the .spec and it worked. Also, it seems that dovecot detect and build vpopmail even if you don't use the --with-vpopmail Oliver Axel Thimm wrote:> there is no "--with vpopmail" switch in the src.rpm you used. >-- Oliver Schulze L. | Get my e-mail after a captcha in: Asuncion - Paraguay | http://tinymailto.com/oliver