[Dovecot] dovecot 1.1.8 compile error
I'm trying to compile 1.1.8 with dovecot-1-1-989789b2afd8 patches applied on Solaris 10 sparc using gcc 2.95.3 and also tried version 3.4.3. This is error I'm getting: gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib -I../../src/lib-auth -DPKG_RUNDIR=\/userM/mail-services/dovecot/var/run/dovecot\ -DSBINDIR=\/userM/mail-services/dovecot/sbin\-g -O2 -Wall -W -Wmissing-prototypes -Wmissing-declarations -Wpointer-arith -Wchar-subscripts -Wformat=2 -Wbad-function-cast -I/usr/sfw/include -c ssl-proxy-openssl.c In file included from ssl-proxy-openssl.c:21: /usr/sfw/include/openssl/ssl.h:172: warning: ignoring pragma: @(#)ssl.h 1.4 05/10/11 SMI In file included from /usr/sfw/include/openssl/ssl3.h:120, from /usr/sfw/include/openssl/ssl.h:951, from ssl-proxy-openssl.c:21: /usr/sfw/include/openssl/ssl.h:172: warning: ignoring pragma: @(#)ssl.h 1.4 05/10/11 SMI ssl-proxy-openssl.c: In function `ssl_params_corrupted': ssl-proxy-openssl.c:85: `PKG_STATEDIR' undeclared (first use in this function) ssl-proxy-openssl.c:85: (Each undeclared identifier is reported only once ssl-proxy-openssl.c:85: for each function it appears in.) ssl-proxy-openssl.c: In function `ssl_info_callback': ssl-proxy-openssl.c:658: warning: passing arg 1 of `SSL_get_ex_data' discards qualifiers from pointer target type *** Error code 1 make: Fatal error: Command failed for target `ssl-proxy-openssl.o' Current working directory /userM/src/dovecot-1.1.8/src/login-common *** 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-dict lib-sql lib-ntlm lib-otp 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 deliver tests 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) \ || 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 /userM/src/dovecot-1.1.8/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 /userM/src/dovecot-1.1.8 *** Error code 1 make: Fatal error: Command failed for target `all' Does anyone have work around for this on Solaris 10? -- C. J. Keist Email: cj.ke...@colostate.edu UNIX/Network ManagerPhone: 970-491-0630 Engineering Network ServicesFax: 970-491-5569 College of Engineering, CSU Ft. Collins, CO 80523-1301 All I want is a chance to prove 'Money can't buy happiness' smime.p7s Description: S/MIME Cryptographic Signature
Re: [Dovecot] dovecot 1.1.8 compile error
On Wed, 2009-01-21 at 09:55 -0700, CJ Keist wrote: I'm trying to compile 1.1.8 with dovecot-1-1-989789b2afd8 patches applied on Solaris 10 sparc using gcc 2.95.3 and also tried version 3.4.3. This is error I'm getting: .. ssl-proxy-openssl.c:85: `PKG_STATEDIR' undeclared (first use in this function) This was added to Makefile.am. You'll need to run autogen.sh and configure again to get Makefile regenerated from Makefile.am. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] dovecot 1.1.8 compile error
Thanks, Running autogen.sh I get: % ./autogen.sh configure.in:16: warning: macro `AM_ICONV' not found in library configure.in:15: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:16: error: possibly undefined macro: AM_ICONV autoreconf: /opt/csw/bin/autoconf failed with exit status: 1 Then configure fails with: checking for dlopen... yes ./configure: line 13370: syntax error near unexpected token `SSL,' ./configure: line 13370: `PKG_CHECK_MODULES(SSL, openssl)' Timo Sirainen wrote: On Wed, 2009-01-21 at 09:55 -0700, CJ Keist wrote: I'm trying to compile 1.1.8 with dovecot-1-1-989789b2afd8 patches applied on Solaris 10 sparc using gcc 2.95.3 and also tried version 3.4.3. This is error I'm getting: .. ssl-proxy-openssl.c:85: `PKG_STATEDIR' undeclared (first use in this function) This was added to Makefile.am. You'll need to run autogen.sh and configure again to get Makefile regenerated from Makefile.am. -- C. J. Keist Email: cj.ke...@colostate.edu UNIX/Network ManagerPhone: 970-491-0630 Engineering Network ServicesFax: 970-491-5569 College of Engineering, CSU Ft. Collins, CO 80523-1301 All I want is a chance to prove 'Money can't buy happiness' smime.p7s Description: S/MIME Cryptographic Signature
Re: [Dovecot] dovecot 1.1.8 compile error
On Wed, 2009-01-21 at 10:25 -0700, CJ Keist wrote: Thanks, Running autogen.sh I get: % ./autogen.sh configure.in:16: warning: macro `AM_ICONV' not found in library configure.in:15: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:16: error: possibly undefined macro: AM_ICONV autoreconf: /opt/csw/bin/autoconf failed with exit status: 1 Then configure fails with: checking for dlopen... yes ./configure: line 13370: syntax error near unexpected token `SSL,' ./configure: line 13370: `PKG_CHECK_MODULES(SSL, openssl)' You'll need pkg-config package installed to be able to run autogen.sh successfully. I suppose instead of running autogen.sh you could also just run: automake src/login-common/Makefile ./configure signature.asc Description: This is a digitally signed message part
Re: [Dovecot] dovecot 1.1.8 compile error
Thanks, Just got it to compile cleanly by adding --with-ssl=/opt/csw/ssl instead of using the Solaris GNU packages in /usr/sfw. Timo Sirainen wrote: On Wed, 2009-01-21 at 10:25 -0700, CJ Keist wrote: Thanks, Running autogen.sh I get: % ./autogen.sh configure.in:16: warning: macro `AM_ICONV' not found in library configure.in:15: error: possibly undefined macro: AC_PROG_LIBTOOL If this token and others are legitimate, please use m4_pattern_allow. See the Autoconf documentation. configure.in:16: error: possibly undefined macro: AM_ICONV autoreconf: /opt/csw/bin/autoconf failed with exit status: 1 Then configure fails with: checking for dlopen... yes ./configure: line 13370: syntax error near unexpected token `SSL,' ./configure: line 13370: `PKG_CHECK_MODULES(SSL, openssl)' You'll need pkg-config package installed to be able to run autogen.sh successfully. I suppose instead of running autogen.sh you could also just run: automake src/login-common/Makefile ./configure -- C. J. Keist Email: cj.ke...@colostate.edu UNIX/Network ManagerPhone: 970-491-0630 Engineering Network ServicesFax: 970-491-5569 College of Engineering, CSU Ft. Collins, CO 80523-1301 All I want is a chance to prove 'Money can't buy happiness' smime.p7s Description: S/MIME Cryptographic Signature