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 speakeasy.net
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:
      Platform:
        osname=darwin, osvers=8.1.0, archname=darwin-thread-multi-2level
        uname='darwin devbox.internal.testdomain.com 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 \
    --with-com_err=/usr

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/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  \
    libconfig.c
    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)
 
http://asg.web.cmu.edu/archive/message.php?mailbox=archive.cyrus-devel&msg=655

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

any ideas/suggestions?

thx,

richard


---
Cyrus Home Page: http://asg.web.cmu.edu/cyrus
Cyrus Wiki/FAQ: http://cyruswiki.andrew.cmu.edu
List Archives/Info: http://asg.web.cmu.edu/cyrus/mailing-list.html




More information about the Info-cyrus mailing list