[Dovecot] Autocreate plugin for 1.1 - not compile in FreeBSD (gcc problem?) [SOLVED]

Proskurin Kirill k.proskurin at fxclub.org
Sat Dec 13 12:54:56 EET 2008


Hello, Timo.

> On Sat, 2008-12-13 at 13:08 +0300, Proskurin Kirill wrote:
>> Heh - I solve it.
>> To make it compile in FreeBSD you need to:
>> 
>> cd /usr/ports/mail/dovecot
>> make extract
>> mkdir work/dovecot-1.1.*/sys
>> locate sysmacros.h
>> cp /your/path/to/sysmacros.h  work/dovecot-1.1.*/sys/
>> patch it as sayd at wiki.
>> 
>> And then all work well.

> I don't really understand why that would be necessary. The sysmacros.h
> isn't required. In that case Dovecot's config.h shouldn't have
> HAVE_SYS_SYSMACROS_H defined, but you do for some reason. Why is the
> port doing that?

> I'd rather say this is a bug in the FreeBSD ports. If you compiled
> Dovecot directly from sources you wouldn't have had this problem.

Well may be. But:
newmail# grep -R -i sysmacros work/dovecot-1.1.7/
work/dovecot-1.1.7/configure.in:  sys/uio.h sys/sysmacros.h sys/resource.h sys/select.h libgen.h \
work/dovecot-1.1.7/config.h:/* Define to 1 if you have the <sys/sysmacros.h> header file. */
work/dovecot-1.1.7/config.h:#define HAVE_SYS_SYSMACROS_H 1
work/dovecot-1.1.7/config.h.in:/* Define to 1 if you have the <sys/sysmacros.h> header file. */
work/dovecot-1.1.7/config.h.in:#undef HAVE_SYS_SYSMACROS_H
work/dovecot-1.1.7/configure:  sys/uio.h sys/sysmacros.h sys/resource.h sys/select.h libgen.h \
work/dovecot-1.1.7/ChangeLog:   And the missing sys/sysmacros.h include..
work/dovecot-1.1.7/src/lib/compat.h:#ifdef HAVE_SYS_SYSMACROS_H
work/dovecot-1.1.7/src/lib/compat.h:#  include <sys/sysmacros.h>
work/dovecot-1.1.7/src/lib/fd-close-on-exec.c:#ifdef HAVE_SYS_SYSMACROS_H
newmail#

md5 of sources from your site and from ports is same.
I not a programmer at all and can`t help here.

-- 
Best regards,
Proskurin Kirill



More information about the dovecot mailing list