[prev in list] [next in list] [prev in thread] [next in thread] 

List:       info-cyrus
Subject:    Re: "imapopts.h:191: error: array type has incomplete element
From:       Ondrej Sury <ondrej () sury ! org>
Date:       2005-06-23 19:45:48
Message-ID: 1119555948.7650.0.camel () localhost ! localdomain
[Download RAW message or body]

Try attached patch.

O.

On Fri, 2005-06-17 at 21:40 -0700, OpenMacNews wrote:
> hi,
> 
> building cyrus-imapd-2.2.12 on a 'fresh' OSX 10.4.1 dev box ...
> 
> after config, 'make all' dies with:
> 
> % make all
>     ### 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
> 
> any suggestions?
> 
> 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
-- 
Ondrej Sury <ondrej@sury.org>

["50-FTBFS-gcc-4.0-fix.dpatch" (50-FTBFS-gcc-4.0-fix.dpatch)]

#! /bin/sh /usr/share/dpatch/dpatch-run
## 50-FTBFS-gcc-4.0-fix.dpatch by Ondřej Surý <ondrej@sury.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fix FTBFS when compiling with gcc-4.0, there is imapopts is used before declared

@DPATCH@
diff -urN cyrus22-imapd-2.2.12~/tools/config2header cyrus22-imapd-2.2.12/tools/config2header
--- cyrus22-imapd-2.2.12~/tools/config2header	2004-06-22 21:02:31.000000000 +0200
+++ cyrus22-imapd-2.2.12/tools/config2header	2005-06-22 07:56:17.180293688 +0200
@@ -214,7 +214,6 @@
 print HFILE <<EOF
   IMAPOPT_LAST
 };
-extern struct imapopt_s imapopts[];
 
 enum enum_value {
   IMAP_ENUM_ZERO = 0,
@@ -260,6 +259,8 @@
 
 print HFILE <<EOF
 };
+extern struct imapopt_s imapopts[];
+
 #endif /* INCLUDED_IMAPOPTIONS_H */
 EOF
     ;

---
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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic