[Dovecot] Error compiling on Solaris 10
Hi,
I'm trying to compile dovecot 1.0rc1 on a V250, Solaris 10 installed.
-- configure: CPPFLAGS=-I/usr/local/ssl/include LDFLAGS='-L/usr/local/ssl/lib -R/usr/local/ssl/lib' ./configure --with-ssl=openssl --with-file-offset-size=32
gcc Version 3.3.2 from Sunfreeware
Error Message:
# make
make all-recursive
Making all in src
Making all in lib
if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I/usr/local/ssl/include
-std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations
-Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -MT
file-dotlock.o -MD -MP -MF ".deps/file-dotlock.Tpo" -c -o file-dotlock.o
file-dotlock.c;
then mv -f ".deps/file-dotlock.Tpo" ".deps/file-dotlock.Po"; else rm -f
".deps/file-dotlock.Tpo"; exit 1; fi
In file included from /usr/include/sys/signal.h:34,
from /usr/include/signal.h:26,
from file-dotlock.c:13:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for __proc' /usr/include/sys/siginfo.h:261: error: previous declaration of
__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for __fault' /usr/include/sys/siginfo.h:267: error: previous declaration of
__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for __file' /usr/include/sys/siginfo.h:273: error: previous declaration of
__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for __prof' /usr/include/sys/siginfo.h:287: error: previous declaration of
__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for __rctl' /usr/include/sys/siginfo.h:291: error: previous declaration of
__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
from file-dotlock.c:13:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from file-dotlock.c:13:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
*** Error code 1
make: Fatal error: Command failed for target file-dotlock.o' Current working directory /tmp/dovecot-1.0.beta8/src/lib *** Error code 1 The following command caused the error: set fnord $MAKEFLAGS; amf=$2; \ dot_seen=no; \ target=
echo all-recursive | sed s/-recursive//; \ list='lib lib-dict lib-sql lib-ntlm lib-settings lib-charset lib-mail lib-imap lib-index lib-storage lib-auth auth dict master login-common imap-login imap pop3-login pop3 util plugins'; for subdir in $list; do \ echo "Making $target in $subdir"; \ if test "$subdir" = "."; then \ dot_seen=yes; \ local_target="$target-am"; \ else \ local_target="$target"; \ fi; \ (cd $subdir && make $local_target) \ || case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac; \ done; \ if test "$dot_seen" = "no"; then \ make "$target-am" || exit 1; \ fi; test -z "$fail" make: Fatal error: Command failed for target
all-recursive'
Current working directory /tmp/dovecot-1.0.beta8/src
*** Error code 1
The following command caused the error:
set fnord $MAKEFLAGS; amf=$2;
dot_seen=no;
target=echo all-recursive | sed s/-recursive//
;
list='src doc'; for subdir in $list; do
echo "Making $target in $subdir";
if test "$subdir" = "."; then
dot_seen=yes;
local_target="$target-am";
else
local_target="$target";
fi;
(cd $subdir && make $local_target)
|| case "$amf" in *=*) exit 1;; *k*) fail=yes;; *) exit 1;; esac;
done;
if test "$dot_seen" = "no"; then
make "$target-am" || exit 1;
fi; test -z "$fail"
make: Fatal error: Command failed for target all-recursive' Current working directory /tmp/dovecot-1.0.beta8 *** Error code 1 make: Fatal error: Command failed for target
all'
--
Can anybody halp, please?
TIA dirk
On Sun, 2006-07-02 at 14:54 +0200, Dirk Essl wrote:
Hi,
I'm trying to compile dovecot 1.0rc1 on a V250, Solaris 10 installed.
-- configure: CPPFLAGS=-I/usr/local/ssl/include LDFLAGS='-L/usr/local/ssl/lib -R/usr/local/ssl/lib' ./configure --with-ssl=openssl --with-file-offset-size=32 .. In file included from /usr/include/sys/signal.h:34, from /usr/include/signal.h:26, from file-dotlock.c:13: /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
This looks more like something's broken in your system. I'm using Dovecot with Solaris 10 all the time just fine. What does this say:
grep ctid_t /usr/include/sys/types.h
If it find it, then it's not being included for some reason. I'd try compiling a simple test program to see if it breaks also (gcc test.c -o test):
#include <sys/types.h> #include <signal.h>
int main(void) { return 0; }
Timo Sirainen wrote:
On Sun, 2006-07-02 at 14:54 +0200, Dirk Essl wrote:
Hi,
I'm trying to compile dovecot 1.0rc1 on a V250, Solaris 10 installed.
-- configure: CPPFLAGS=-I/usr/local/ssl/include LDFLAGS='-L/usr/local/ssl/lib -R/usr/local/ssl/lib' ./configure --with-ssl=openssl --with-file-offset-size=32 .. In file included from /usr/include/sys/signal.h:34, from /usr/include/signal.h:26, from file-dotlock.c:13: /usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
This looks more like something's broken in your system. I'm using Dovecot with Solaris 10 all the time just fine. What does this say:
grep ctid_t /usr/include/sys/types.h
fiction:/tmp# grep ctid_t /usr/include/sys/types.h typedef id_t ctid_t; fiction:/tmp#
If it find it, then it's not being included for some reason. I'd try compiling a simple test program to see if it breaks also (gcc test.c -o test):
#include <sys/types.h> #include <signal.h>
int main(void) { return 0; }
fiction:/tmp# gcc test.c -o test
In file included from /usr/include/sys/signal.h:34,
from /usr/include/signal.h:26,
from test.c:2:
/usr/include/sys/siginfo.h:259: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:292: error: parse error before '}' token
/usr/include/sys/siginfo.h:294: error: parse error before '}' token
/usr/include/sys/siginfo.h:390: error: parse error before "ctid_t"
/usr/include/sys/siginfo.h:392: error: conflicting types for __proc' /usr/include/sys/siginfo.h:261: error: previous declaration of
__proc'
/usr/include/sys/siginfo.h:398: error: conflicting types for __fault' /usr/include/sys/siginfo.h:267: error: previous declaration of
__fault'
/usr/include/sys/siginfo.h:404: error: conflicting types for __file' /usr/include/sys/siginfo.h:273: error: previous declaration of
__file'
/usr/include/sys/siginfo.h:420: error: conflicting types for __prof' /usr/include/sys/siginfo.h:287: error: previous declaration of
__prof'
/usr/include/sys/siginfo.h:424: error: conflicting types for __rctl' /usr/include/sys/siginfo.h:291: error: previous declaration of
__rctl'
/usr/include/sys/siginfo.h:426: error: parse error before '}' token
/usr/include/sys/siginfo.h:428: error: parse error before '}' token
/usr/include/sys/siginfo.h:432: error: parse error before "k_siginfo_t"
/usr/include/sys/siginfo.h:437: error: parse error before '}' token
In file included from /usr/include/signal.h:26,
from test.c:2:
/usr/include/sys/signal.h:85: error: parse error before "siginfo_t"
In file included from test.c:2:
/usr/include/signal.h:111: error: parse error before "siginfo_t"
/usr/include/signal.h:113: error: parse error before "siginfo_t"
fiction:/tmp#
:-(
The System is a fresh installed Solaris 10 fiction:/tmp# uname -ar SunOS fiction 5.10 Generic_118833-17 sun4u sparc SUNW,Sun-Fire-V250
maybe I'm missing some patches?
-- TIA dirk
On Sun, 02 Jul 2006 14:54:01 +0200 Dirk Essl <de@floydworld.de> wrote:
Hi,
I'm trying to compile dovecot 1.0rc1 on a V250, Solaris 10 installed.
-- configure: CPPFLAGS=-I/usr/local/ssl/include LDFLAGS='-L/usr/local/ssl/lib -R/usr/local/ssl/lib' ./configure --with-ssl=openssl --with-file-offset-size=32
gcc Version 3.3.2 from Sunfreeware
Make sure that 'make' is from /usr/ccs/bin. I use gmake and gcc3 from www.blastwave.org
Alex
participants (3)
-
Alex Moore
-
Dirk Essl
-
Timo Sirainen