Re : Re: [Dovecot] a problem in building dovecot @ opensolaris

Jean-Eudes ONFRAY je.onfray at mediation-telecom.com
Sat Dec 31 01:11:30 EET 2005


--- Message d'origine ---
> De : Timo Sirainen <tss at iki.fi>
> À : Sergey Ivanov <seriv at parkheights.dyndns.org>
> Cc : dovecot at dovecot.org
> Sujet : Re: [Dovecot] a problem in building dovecot @ opensolaris
> Date : ven 30 déc 2005 21:12:30 CET
> 
> On Thu, 2005-12-15 at 19:34 -0500, Sergey Ivanov wrote:
> > In file included from quota-fs.h:22,
> >                  from quota.c:6:
> > /usr/include/sys/mnttab.h:81: error: parse error before '*' token
> > /usr/include/sys/mnttab.h:82: error: parse error before '*' token
> > /usr/include/sys/mnttab.h:83: error: parse error before '*' token
> > /usr/include/sys/mnttab.h:84: error: parse error before '*' token
> 
> What is in this file in lines 70-90? (or just send the whole file to me
> privately)
> 
> 

Hi,

I had the same problem to compile with Sun Solaris 9
FILE is not defined prior to including sys/mnttab.h
Solaris require to include stdio.h before including sys/mnttab.h

--- src/plugins/quota/quota-fs.h.orig   Sat Dec 31 00:08:42 2005
+++ src/plugins/quota/quota-fs.h        Sat Dec 31 00:08:57 2005
@@ -22,6 +22,7 @@
 #elif defined(HAVE_MNTENT_H)
 #  include <mntent.h> /* Linux */
 #elif defined(HAVE_SYS_MNTTAB_H)
+#  include <stdio.h> /* Solaris require this to define FILE */
 #  include <sys/mnttab.h> /* Solaris */
 #else
 #  undef HAVE_FS_QUOTA

With this small change it compiled successfully.

Regards
Jean-Eudes



More information about the dovecot mailing list