[Dovecot] Installation error on "make"
I am not sure what the problem is. I try ./configure as the intallation point out;however, when I try make I am getting the bellow error.
PS. I am running Solaris 10 X86, GNU gcc.
- [04:05:24][root@www:~/dovecot-1.0.alpha1]$ make
- make all-recursive
- Making all in src
- Making all in lib
- Making all in lib-sql
- Making all in lib-ntlm
- Making all in lib-settings
- Making all in lib-charset
- Making all in lib-mail
- Making all in lib-imap
- Making all in lib-index
- Making all in lib-storage
- Making all in index
- Making all in maildir
- Making all in mbox
- Making all in subscription-file
- Making all in register
- make all-am
- Making all in lib-auth
- Making all in auth
- if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/lib -I../../src/lib-sql -I../../src/lib-settings -I../../src/lib-ntlm -DAUTH_MODULE_DIR=\""/usr/local/lib/dovecot/auth"\" -DPKG_LIBEXECDIR=\""/usr/local/libexec/dovecot"\" -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/sfw/include -MT mycrypt.o -MD -MP -MF ".deps/mycrypt.Tpo" -c -o mycrypt.o mycrypt.c; \
- then mv -f ".deps/mycrypt.Tpo" ".deps/mycrypt.Po"; else rm -f ".deps/mycrypt.Tpo"; exit 1; fi
- In file included from /usr/include/unistd.h:18,
from mycrypt.c:5:
- /usr/include/sys/feature_tests.h:332:2: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications"
- *** Error code 1
- make: Fatal error: Command failed for target `mycrypt.o'
- Current working directory /root/dovecot-1.0.alpha1/src/auth
- *** Error code 1
- The following command caused the error:
- failcom='exit 1'; \
- for f in x $MAKEFLAGS; do \
- case $f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
- esac; \
- done; \
- dot_seen=no; \
- target=
echo all-recursive | sed s/-recursive//
; \ - list='lib lib-sql lib-ntlm lib-settings lib-charset lib-mail lib-imap lib-index lib-storage lib-auth auth master login-common imap-login imap pop3-login pop3 deliver util'; 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) \
- || eval $failcom; \
- 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 /root/dovecot-1.0.alpha1/src
- *** Error code 1
- The following command caused the error:
- failcom='exit 1'; \
- for f in x $MAKEFLAGS; do \
- case $f in \
*=* | --[!k]*);; \
*k*) failcom='fail=yes';; \
- esac; \
- done; \
- 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) \
- || eval $failcom; \
- 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 /root/dovecot-1.0.alpha1
- *** Error code 1
- make: Fatal error: Command failed for target `all'
- [04:05:28][root@www:~/dovecot-1.0.alpha1]$
Lisandro Grullon New York City College of Technology Division of Continuing Education Director of Network Operations Lisandro Office: 1718-552-1178 Lisandro E-mail: lgrullon@citytech.cuny.edu "The only reason for time is so that everything doesn't happen at once.". <Albert Einstein>
On Sun, 2005-08-21 at 04:34 -0400, Lisandro Grullon wrote:
PS. I am running Solaris 10 X86, GNU gcc. .. if gcc -DHAVE_CONFIG_H -I. -I. -I../.. -I../../src/lib -I../../src/lib-sql -I../../src/lib-settings -I../../src/lib-ntlm -DAUTH_MODULE_DIR=\""/usr/local/lib/dovecot/auth"\" -DPKG_LIBEXECDIR=\""/usr/local/libexec/dovecot"\" -std=gnu99 -g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/sfw/include -MT mycrypt.o -MD -MP -MF ".deps/mycrypt.Tpo" -c -o mycrypt.o mycrypt.c;
22. then mv -f ".deps/mycrypt.Tpo" ".deps/mycrypt.Po"; else rm -f ".deps/mycrypt.Tpo"; exit 1; fi 23. In file included from /usr/include/unistd.h:18, 24. from mycrypt.c:5: 25. /usr/include/sys/feature_tests.h:332:2: #error "Compiler or options invalid for pre-UNIX 03 X/Open applications and pre-2001 POSIX applications"
Some versions of Solaris 10 want "#define _XPG6" at the beginning of the mycrypt.c file, but most other versions give error if it's there. Do you have a final release of Solaris 10 or some pre-release? Maybe I should put this check to configure if it happens with non-prereleases too..
participants (2)
-
Lisandro Grullon
-
Timo Sirainen