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


----- original Nachricht --------

Betreff: Re: compile error with cyrus-imapd-2.3.16-autocreate Patch
Gesendet: Do, 06. Mai 2010
Von: Aristotelis

> Mike Mildner wrote:
> > Hi,
> >=20
> > i have a strange compile error, when i try to compile the
> cyrus-imap-server with your patch.
> >=20
> > my configure options for 32bit:
> > --sysconfdir=3D/etc/cyrus --with-sasl=3D/usr/lib --with-perl
> --with-cyrus-user=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 --without-ucdsnmp --with-cyrus-prefix=3D/pkg/usr/cy=
rus"
> >=20
> > my compiler flags:
> > export CC=3D"gcc -m32"
> > export CXX=3D"g++ -m32"
> > configure runs normaly and then short after make:
> >=20
> > ...
> > config.status: WARNING: 'Makefile.in' seems to ignore the --datarootdi=
r
> setting
> > config.status: creating config.h
> >=20
> > ### 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 <
> ./imapoptions
> > 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
> >=20
> > it has to do with the CC/CXX flags, why? when i unsetting this flags th=
e
> build runs fine?
> >=20
> > Hope there is a solution.
> > thanks and greetings from (undergoing) europe/germany ;-)
> >=20
>=20
>=20
> Hello, thanks for using our patch.
>=20
> Have you tried compiling the vanilla cyrus tree without out patch and=20
> compiles ok with these flags?? Just asking before i try to check if=20
> there is something strange in our patch.
>=20
> Best regards,
> Aristotelis
>=20
Yes, of course. I'm running at the moment on the actual verison auf cyrus-i=
map-2.3.16. And now, i would add your autopatch.
the vanilla version is o.k. my test case:

tar xf cyrus-imap...
cd cyrus-imap..
./configure && make <--all fine, and then:
cd ..
rm -rf cyrus-imap...
tar xf cyrus-imap...
cd cyrus-imap..
patch -p1 <../yourPatch
export CC=3D"gcc -m32"
./configure && make <-- the error from above
make distclean
unset CC
./configure && make <-- all fine
make distclean
export CC=3D"gcc -m32"
./configure && make <-- the error from above
and so on.

thanks=20
--- original Nachricht Ende ----