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 update wiki now. > Hello all. > I try to compile Autocreate plugin for 1.1 in FreeBSD 7.0-p6. > gcc version: > # gcc -v > Using built-in specs. > Target: i386-undermydesk-freebsd > Configured with: FreeBSD/i386 system compiler > Thread model: posix > gcc version 4.2.1 20070719 [FreeBSD] > But it gives me a: > mx# sh -x patch.sh > + export DOVECOT=/usr/ports/mail/dovecot/work/dovecot-1.1.7 > + gcc -fPIC -shared -g -Wall > -I/usr/ports/mail/dovecot/work/dovecot-1.1.7 > -I/usr/ports/mail/dovecot/work/dovecot-1.1.7/src/lib > -I/usr/ports/mail/dovecot/work/dovecot-1.1.7/src/lib-storage > -I/usr/ports/mail/dovecot/work/dovecot-1.1.7/src/lib-mail > -I/usr/ports/mail/dovecot/work/dovecot-1.1.7/src/lib-imap > -DHAVE_CONFIG_H autocreate-plugin.c -o autocreate_plugin.so > In file included from > /usr/ports/mail/dovecot/work/dovecot-1.1.7/src/lib/lib.h:24, > from autocreate-plugin.c:22: > /usr/ports/mail/dovecot/work/dovecot-1.1.7/src/lib/compat.h:55:29: > error: sys/sysmacros.h: No such file or directory > + cp autocreate_plugin.so > /usr/local/lib/dovecot/imap/autocreate_plugin.so > cp: autocreate_plugin.so: No such file or directory > mx# > I try do this at Debian Etch and all work well. > gcc version: > # gcc -v > Using built-in specs. > Target: i486-linux-gnu > Configured with: ../src/configure -v > --enable-languages=c,c++,fortran,objc,obj-c++,treelang --prefix=/usr > --enable-shared --with-system-zlib --libexecdir=/usr/lib > --without-included-gettext --enable-threads=posix --enable-nls > --program-suffix=-4.1 --enable-__cxa_atexit --enable-clocale=gnu > --enable-libstdcxx-debug --enable-mpfr --with-tune=i686 > --enable-checking=release i486-linux-gnu > Thread model: posix > gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) > How can I compile it on FreeBSD? autocreate_plugin.so from Debian not > working at FreeBSD. -- С уважением, Проскурин Кирилл. Группа компаний "Форекс Клуб" 115093, Москва, ул. Щипок, 18 +7(495)727-06-26 доб. 1070 www.forexclub.ru