compile error with cyrus-imapd-2.3.16-autocreate Patch
by: Mike Mildner <m.mildner.NOSP@MMER.kleiderschrank51.de>, @ Wed, 05 May 2010 23:50:20 +0300

Hi,

i have a strange compile error, when i try to compile the cyrus-imap-server=
with your patch.

my configure options for 32bit:
--sysconfdir=3D/etc/cyrus --with-sasl=3D/usr/lib --with-perl --with-cyrus-u=
ser=3Dcyrus --with-cyrus-group=3Dmail --with-dbdir=3D/usr --with-bdb-libdir=
=3D/usr/lib --with-bdb-incdir=3D/usr/include --with-openssl=3D/usr --withou=
t-ucdsnmp --with-cyrus-prefix=3D/pkg/usr/cyrus"

my compiler flags:
export CC=3D"gcc -m32"
export CXX=3D"g++ -m32"
configure runs normaly and then short after make:

...
config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdir se=
tting
config.status: creating config.h

### Making all in /usr/src/cyrus-imapd-2.3.16/man
make[1]: Entering directory `/usr/src/cyrus-imapd-2.3.16/man'
creating imapd.conf.5
./../tools/config2man ./../lib/imapoptions > ./imapd.conf.5
make[1]: Leaving directory `/usr/src/cyrus-imapd-2.3.16/man'
### Making all in /usr/src/cyrus-imapd-2.3.16/lib
make[1]: Entering directory `/usr/src/cyrus-imapd-2.3.16/lib'
./../tools/config2header CC=3D"gcc -m32" ./imapopts.c ./imapopts.h < ./imap=
options
wrong number of arguments at (eval 1) line 41, line 258.
make[1]: *** [imapopts.c] error 9
make[1]: Leaving directory `/usr/src/cyrus-imapd-2.3.16/lib'
make: *** [all] error 1

it has to do with the CC/CXX flags, why? when i unsetting this flags the bu=
ild runs fine?

Hope there is a solution.
thanks and greetings from (undergoing) europe/germany ;-)