compiling 2.3.16 on debian 64bit

Patrick Boutilier boutilpj at ednet.ns.ca
Wed Jan 20 08:37:13 EST 2010


On 01/20/2010 09:19 AM, Rudy Gevaert wrote:
> Hi!
>
> A new year brings new resolutions!  One of our resolutions is
> upgrading our cyrus infrastructure from 32bit to 64bit, moving to a
> new storage backend,  upgrading from etch to lenny and on top of that
> rewriting our backend scripts.
>
> But before getting to all that, I need to be able to get cyrus
> compiled.  I have one problem, and one question:
>
> 1) I also ran into the -fpic problem and can fix that when I'm running
> make.  However makedepend can't handle 'pic' very well.
>
> This is how I do it:
>
> cyrus_version=cyrus-2.3.16
> dest_dir=/tmp/cyrus-2.3.16
>
> rm -fr $dest_dir
> mkdir $dest_dir
>
> make clean
> ./configure CFLAGS="-O2 -g -fpic  -Wall -pipe" \
>           --prefix=/usr/${cyrus_version}  \
>           --with-cyrus-prefix=/usr/${cyrus_version} \
>           --with-bdb-libdir=/usr/lib/  \
>           --with-openssl=/usr  \
>           --with-com_err=/usr  \
>           --with-bdb-incdir=/usr/include  \
> 	--with-seen-db=skiplist --with-mboxlist-db=skiplist \
> 	--enable-murder --enable-idled --enable-replication
>
> make depend || exit
> make all || exit
> make -C sieve test || exit
> echo make install DESTDIR=${dest_dir}
> make install DESTDIR=${dest_dir}
>
> And the relevant output:
>
>
> ### Making depend in /home/cyrus/debs/cyrus-imapd-2.3.16/lib
> make[1]: Entering directory `/home/cyrus/debs/cyrus-imapd-2.3.16/lib'
> makedepend -I.. -I/usr/include  -I/usr/include -I/usr/include
> -I/usr/include/et  -DHAVE_CONFIG_H  -I. -O2 -g -fpic  -Wall -pipe *.c
> ./*.c 1>makedepend.log 2>&1
> make[1]: *** [depend] Error 1
> make[1]: Leaving directory `/home/cyrus/debs/cyrus-imapd-2.3.16/lib'
> make: *** [depend] Error 1
> puptest:/home/cyrus/debs/cyrus-imapd-2.3.16# cat makedepend.log
> cat: makedepend.log: No such file or directory
> puptest:/home/cyrus/debs/cyrus-imapd-2.3.16# cat lib/makedepend.log
> makedepend: warning:  ignoring option -Wall
> makedepend: error:  cannot open "pic"
>
> I can just not do the make depend, but I dnon't know what the impact is...


Try removing the CLAGS from configure and add them to the make all.

eg.

make depend
make all CFLAGS="-O2 -g -fPIC  -Wall -pipe"

>
>
> 2) My other question is about some things that have been removed.
> ./configure --help isn't that verbose as it was in the older versions.
>    Also, some options seem to have been removed??
>
> configure:22514: WARNING: unrecognized options: --with-seen-db,
> --with-mboxlist-db
>
> What has happend here?


They are now specified in imapd.conf


seenstate_db: skiplist
             The cyrusdb backend to use for the seen state.

             Allowed values: flat, berkeley, berkeley-hash, skiplist


mboxlist_db: skiplist
             The cyrusdb backend to use for the mailbox list.

             Allowed values: flat, berkeley, berkeley-hash, skiplist


>
> Thanks!!
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: boutilpj.vcf
Type: text/x-vcard
Size: 286 bytes
Desc: not available
Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20100120/28701063/attachment.vcf 


More information about the Info-cyrus mailing list