imapd 2.2.12 on OSX 10.4.1 w/ perl 587: "imapopts.h:191: error: array type has incomplete element type"

OpenMacNews OpenMacNews at
Wed Jun 15 01:06:54 EDT 2005

hi all,

cyrus-imapd-2.2.12 had been building ok for me on OSX 10.4.1 w/ an ext build of 
perl v586 ...

after an update to perl v587:

    perl -V
    Summary of my perl5 (revision 5 version 8 subversion 7) configuration:
        osname=darwin, osvers=8.1.0, archname=darwin-thread-multi-2level
        uname='darwin 8.1.0 darwin kernel
        version 8.1.0: tue may 10 18:16:08 pdt 2005;
        root:xnu-792.1.5.obj~4release_ppc power macintosh powerpc '

ad a successful 'configure' w/ :

    ./configure \
      --with-cyrus-prefix=/usr/local/cyrus-imap/bin \
      --with-service-path=/usr/local/cyrus-imap/libexec \
      --with-sasl=/usr/local/cyrus-sasl \
      --with-bdb \
      --with-bdb-libdir=/usr/local/berkeley-db/lib \
      --with-bdb-incdir=/usr/local/berkeley-db/include \
    --with-openssl=/usr/local/ssl \
    --with-perl=/usr/bin/perl \
    --with-libwrap \
    --with-auth=unix \
    --disable-gssapi --without-gss_impl \
    --without-krb --without-krbimpl --without-krbdes \
    --enable-listext \
    --enable-server \
    --enable-cyradm \
    --with-syslogfacility=LOCAL6 \
    --without-snmp \
    --enable-sieve \

and 'make depend', a subsequent 'make all' fails with:

    ### Making all in /usr/ports/cyrus/cyrus-imapd-2.2.12/man
    creating imapd.conf.5
    ./../tools/config2man ./../lib/imapoptions > ./imapd.conf.5
    ### Making all in /usr/ports/cyrus/cyrus-imapd-2.2.12/lib
    ./../tools/config2header CC=gcc ./imapopts.c ./imapopts.h < ./imapoptions
    gcc -c -I.. -I/usr/local/berkeley-db/include
    -I/Library/Frameworks/SASL2.framework/Headers -I/usr/local/ssl/include
    -I/usr/include -I/usr/local/cyrus-sasl/include -DHAVE_CONFIG_H
    -g -O2  \
    In file included from libconfig.h:47,
                     from libconfig.c:57:
    imapopts.h:191: error: array type has incomplete element type
    make[1]: *** [libconfig.o] Error 1
    make: *** [all] Error 1

from this thread:

    "Portability fixes for 2.2.6" (auth: Albert Chin)

and looking at tools/config2header wherein perl is 'thick', my first guess is 
that the problem is "config2header vs perl" related ...

any ideas/suggestions?



Cyrus Home Page:
Cyrus Wiki/FAQ:
List Archives/Info:

More information about the Info-cyrus mailing list