update on building Cyrus for OS X/Intel?

Joe Auty jauty at indiana.edu
Wed Jun 14 12:44:55 EDT 2006


On Jun 14, 2006, at 4:44 AM, Nigel Kersten wrote:

>
> On 14/06/2006, at 5:22 AM, Joe Auty wrote:
>
>> It looks like 2.2.12 doesn't support this architecture... do newer  
>> versions?
>>
>>
>>  $ ./configure
>> checking build system type... configure: error: cannot guess build  
>> type; you must specify one
>
> You need the newer config.guess and config.sub
>
> cp /usr/share/libtool/config.* to your build directory.
>
>


Progress! However, there appears to still be a problem.

Building with the following configure arguments:

configure.args  --mandir=${prefix}/share/man \
                 --sysconfdir=${prefix}/etc/cyrus \
                 --with-cyrus-prefix=${prefix} \
                 --with-pidfile=${prefix}/var/run/cyrus-master.pid \
                 --with-bdb-incdir=${prefix}/include/db4 \
                 --with-bdb-libdir=${prefix}/lib \
                 --with-perl=${prefix}/bin/perl \
                 --with-sasl=${prefix} \
                 --with-openssl=${prefix} \
                 --with-cyrus-user=cyrus \
                 --with-cyrus-group=mail \
                 --with-auth=unix \
                 --enable-listext \
                 --enable-cmulocal \
                 --enable-netscapehack


where ${prefix} is /opt/local produces the following problem:



--->  Building cyrus-imapd with target all
### Making all in /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_mail_cyrus-imapd/work/cyrus-imapd-2.2.12/man
make[1]: Nothing to be done for `all'.
### Making all in /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_mail_cyrus-imapd/work/cyrus-imapd-2.2.12/lib
gcc -c -I.. -I/opt/local/include/db4  -I/opt/local/include -I/opt/ 
local/include  -I/opt/local/include -DHAVE_CONFIG_H  -g -O2  \
libconfig.c
In file included from libconfig.h:47,
                  from libconfig.c:57:
imapopts.h:181: error: array type has incomplete element type
make[1]: *** [libconfig.o] Error 1
make: *** [all] Error 1
Error: Target com.apple.build returned: shell command "cd "/opt/local/ 
var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_mail_cyrus-imapd/work/cyrus-imapd-2.2.12" && make all" returned  
error 2
Command output: ### Making all in /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_mail_cyrus-imapd/work/cyrus-imapd-2.2.12/man
make[1]: Nothing to be done for `all'.
### Making all in /opt/local/var/db/dports/build/ 
_opt_local_var_db_dports_sources_rsync.rsync.darwinports.org_dpupdate_dp 
orts_mail_cyrus-imapd/work/cyrus-imapd-2.2.12/lib
gcc -c -I.. -I/opt/local/include/db4  -I/opt/local/include -I/opt/ 
local/include  -I/opt/local/include -DHAVE_CONFIG_H  -g -O2  \
libconfig.c
In file included from libconfig.h:47,
                  from libconfig.c:57:
imapopts.h:181: error: array type has incomplete element type
make[1]: *** [libconfig.o] Error 1
make: *** [all] Error 1

Warning: the following items did not execute (for cyrus-imapd):  
com.apple.activate com.apple.build com.apple.destroot  
com.apple.archive com.apple.install
Error: /opt/local/bin/port: Status 1 encountered during processing.


Any idea what is going on here? The paths here reflect using  
DarwinPorts to build the software, but the same problem occurs when I  
build by hand using the same arguments:

./configure --mandir=/opt/local/share/man \
                 --sysconfdir=/opt/local/etc/cyrus \
                 --with-cyrus-prefix=/opt/local \
                 --with-pidfile=/opt/local/var/run/cyrus-master.pid \
                 --with-bdb-incdir=/opt/local/include/db4 \
                 --with-bdb-libdir=/opt/local/lib \
                 --with-perl=/opt/local/bin/perl \
                 --with-sasl=/opt/local \
                 --with-openssl=/opt/local \
                 --with-cyrus-user=cyrus \
                 --with-cyrus-group=mail \
                 --with-auth=unix \
                 --enable-listext \
                 --enable-cmulocal \
                 --enable-netscapehack


$ make
### Making all in /Users/jauty/Desktop/cyrus-imapd-2.2.12/man
make[1]: Nothing to be done for `all'.
### Making all in /Users/jauty/Desktop/cyrus-imapd-2.2.12/lib
gcc -c -I.. -I/opt/local/include/db4  -I/opt/local/include -I/opt/ 
local/include  -I/opt/local/include -DHAVE_CONFIG_H  -g -O2  \
libconfig.c
In file included from libconfig.h:47,
                  from libconfig.c:57:
imapopts.h:181: error: array type has incomplete element type
make[1]: *** [libconfig.o] Error 1
make: *** [all] Error 1



THanks in advance!



-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.andrew.cmu.edu/pipermail/info-cyrus/attachments/20060614/1a429c88/PGP.bin


More information about the Info-cyrus mailing list