[Dovecot] Compiling from Mercurial
Feeling greatly daring, I just tried compiling from the Mercurial source. Steps included:
- download bz2 file from mercurial site
- unpack
- ./autogen.sh
- ./configure --with-bzlib --with-zlib --with-ldap --enable-maintainer-mode
- ./make
I receive the error:
Making all in master
make[3]: Entering directory `/opt/dovecot-2-0-7a839a028dfa/src/master'
gcc -DHAVE_CONFIG_H -I. -I../.. -I../../src/lib
-I../../src/lib-settings -I../../src/lib-master
-DPKG_RUNDIR=\""/usr/local/var/run/dovecot"\"
-DPKG_STATEDIR=\""/usr/local/var/lib/dovecot"\"
-DPKG_LIBEXECDIR=\""/usr/local/libexec/dovecot"\"
-DBINDIR=\""/usr/local/bin"\" -std=gnu99 -g -O2 -Wall -W
-Wmissing-prototypes -Wmissing-declarations -Wpointer-arith
-Wchar-subscripts -Wformat=2 -Wbad-function-cast -Wstrict-aliasing=2
-MT main.o -MD -MP -MF .deps/main.Tpo -c -o main.o main.c
main.c:130: error: format string argument not a string type
make[3]: *** [main.o] Error 1
-- Daniel
On Fri, 2010-10-15 at 11:31 -0700, Daniel L. Miller wrote:
main.c:130: error: format string argument not a string type
Whops. Wonder why my gcc doesn't even warn about this. Update and try again? :) Also since your gcc apparently is better, could you also check if it logs any warnings anywhere?
On 10/15/2010 11:40 AM, Timo Sirainen wrote:
On Fri, 2010-10-15 at 11:31 -0700, Daniel L. Miller wrote:
main.c:130: error: format string argument not a string type Whops. Wonder why my gcc doesn't even warn about this. Update and try again? :) Also since your gcc apparently is better, could you also check if it logs any warnings anywhere?
Didn't mention it previously - autogen.sh yields:
libtoolize: putting auxiliary files in .'. libtoolize: copying file
./config.guess'
libtoolize: copying file ./config.sub' libtoolize: copying file
./install-sh'
libtoolize: copying file ./ltmain.sh' libtoolize: Consider adding
AC_CONFIG_MACRO_DIR([m4])' to configure.in and
libtoolize: rerunning libtoolize, to keep the correct libtool macros
in-tree.
libtoolize: Consider adding -I m4' to ACLOCAL_AMFLAGS in Makefile.am. configure.in:5: installing
./missing'
src/anvil/Makefile.am: installing `./depcomp'
and the results of the configure...good... results of the make...didn't see any warnings. No errors this time through.
Thanks!
Daniel
participants (2)
-
Daniel L. Miller
-
Timo Sirainen