Problems compiling: array type has incomplete element type

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



 Hello.
 
 I successfully built Cyrus imapd and got everything working, but when 
 I tried installing on my production machine and immediately 
 got this error:
 
 mapopts.h:181: error: array type has incomplete element type
 make[1]: *** [libconfig.o] Error 1
 make[1]: Leaving directory `/home/tqis/src/cyrus-imapd-2.2.12/lib'
 make: *** [all] Error 1
 
 here is the offending line of code:
 
   extern struct imapopt_s imapopts[];
 
 From what I've learned, gcc 4.0 now explicitly forbids this declaration, 
 terseley:
 
   Arrays are of object types only.  Incomplete types are not object types.
 
 Is there an easy fix for this problem?  Does the explanation make sense 
 to  anyone else?
 
  -Jim

-- 

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

[Index of Archives]     [Cyrus SASL]     [Squirrel Mail]     [Asterisk PBX]     [Video For Linux]     [Photo]     [Yosemite News]     [gtk]     [KDE]     [Gimp on Windows]     [Steve's Art]

  Powered by Linux