[Dovecot] failed dovecot 1.2rc2 build Solaris 8, gcc 2.95.3

Jernej Porenta jernej.porenta at arnes.si
Thu Apr 9 11:35:45 EEST 2009


Hello,

I trying to build dovecot 1.2rc2 on ancient Solaris 8 with gcc 2.95.3 
and it fails with:

gcc -DHAVE_CONFIG_H -I. -I../..  -I../../src/lib 
-I../../src/lib-settings  -DSYSCONFDIR=\""/opt/dovecot/etc"\" 
-DPKG_RUNDIR=\""/opt/dovecot/var/run/dovecot"\" 
-DPKG_STATEDIR=\""/opt/dovecot/var/lib/dovecot"\" 
-DPKG_LIBEXECDIR=\""/opt/dovecot/libexec/dovecot"\" 
-DMODULEDIR=\""/opt/dovecot/lib/dovecot"\" 
-DSSLDIR=\""/usr/local/ssl/certs\""  -I/usr/local/ssl/include 
-I/opt/kerberos-heimdal/include  -g -O2 -Wall -W -Wmissing-prototypes 
-Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 
-Wbad-function-cast -c login-process.c
In file included from ../../src/lib/lib.h:28,
                  from common.h:6,
                  from login-process.c:3:
../../src/lib/data-stack.h:73: warning: `pure' attribute directive ignored
In file included from ../../src/lib/lib.h:39,
                  from common.h:6,
                  from login-process.c:3:
../../src/lib/strfuncs.h:44: warning: `pure' attribute directive ignored
../../src/lib/strfuncs.h:54: warning: `pure' attribute directive ignored
../../src/lib/strfuncs.h:55: warning: `pure' attribute directive ignored
../../src/lib/strfuncs.h:56: warning: `pure' attribute directive ignored
../../src/lib/strfuncs.h:57: warning: `pure' attribute directive ignored
../../src/lib/strfuncs.h:58: warning: `pure' attribute directive ignored
../../src/lib/strfuncs.h:59: warning: `pure' attribute directive ignored
../../src/lib/strfuncs.h:77: warning: `pure' attribute directive ignored
In file included from master-settings.h:4,
                  from common.h:7,
                  from login-process.c:3:
../../src/lib/network.h:114: warning: `pure' attribute directive ignored
../../src/lib/network.h:115: warning: `pure' attribute directive ignored
../../src/lib/network.h:123: warning: `pure' attribute directive ignored
In file included from ../../src/lib/array.h:33,
                  from login-process.c:4:
../../src/lib/buffer.h:36: warning: `pure' attribute directive ignored
../../src/lib/buffer.h:88: warning: `pure' attribute directive ignored
../../src/lib/buffer.h:106: warning: `pure' attribute directive ignored
In file included from login-process.c:4:
../../src/lib/array.h:96: warning: `pure' attribute directive ignored
../../src/lib/array.h:161: warning: `pure' attribute directive ignored
../../src/lib/array.h:222: warning: `pure' attribute directive ignored
../../src/lib/array.h:229: warning: `pure' attribute directive ignored
In file included from login-process.c:6:
../../src/lib/hash.h:24: warning: `pure' attribute directive ignored
../../src/lib/hash.h:35: warning: `pure' attribute directive ignored
../../src/lib/hash.h:54: warning: `pure' attribute directive ignored
../../src/lib/hash.h:55: warning: `pure' attribute directive ignored
In file included from login-process.c:8:
../../src/lib/ostream.h:72: warning: `pure' attribute directive ignored
login-process.c:52: field `data' has incomplete type
*** Error code 1
make: Fatal error: Command failed for target `login-process.o'
Current working directory /opt/src/dovecot-1.2.rc2/src/master
*** Error code 1

configure looks like this:
CPPFLAGS='-I/usr/local/ssl/include -I/opt/kerberos-heimdal/include' 
LDFLAGS='-L/usr/local/ssl/lib -R/usr/local/ssl/lib 
-L/opt/kerberos-heimdal/lib -R/opt/kerberos-heimdal/lib' ./configure 
--prefix=/opt/dovecot --enable-ssl --with-ssldir=/usr/local/ssl/certs 
--with-ssl=openssl --without-passwd-file --with-passwd --with-shadow 
--without-bsdauth --without-static-userdb --without-prefetch-userdb 
--without-checkpassword --with-gssapi=yes --without-pgsql --without-sql 
--without-ldap --without-vpopmail --without-sia

The build goes fine with gcc 3.2.2.

Dovecot 1.1 builds fine with 2.95.3. Are there any requirements for GCC 
version?

regards, Jernej



More information about the dovecot mailing list