[Dovecot] compile with dietlibc
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hi all,
I'm used to test the software which I use with dietlibc, just to see if it could run without the bloat of glibc.
While compiling dovecot 0.99.10 I got these errors:
In file included from lib.h:20,
from alarm-hup.c:26:
compat.h:30: conflicting types for uint_fast32_t' /opt/diet/include/stdint.h:25: previous declaration of
uint_fast32_t'
I've solved this in a dirty way, but is this something which could be fixed in the future?
Thanks in advance, Jens Gutzeit -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/L/etLPHiyaqJLscRAuNGAJ9jlOQzx86T+NS9h7FfjoDi86R4ygCgs6gb 1XyNB93ybwiG4gFatz797qo= =WZod -----END PGP SIGNATURE-----
On Tue, 2003-08-05 at 21:29, Jens Gutzeit wrote:
compat.h:30: conflicting types for `uint_fast32_t' /opt/diet/include/stdint.h:25: previous declaration of `uint_fast32_t'
I've solved this in a dirty way, but is this something which could be fixed in the future?
Try this patch:
Index: configure.in
===================================================================
RCS file: /home/cvs/dovecot/configure.in,v
retrieving revision 1.142
diff -u -r1.142 configure.in
--- configure.in 2 Aug 2003 17:38:15 -0000 1.142
+++ configure.in 5 Aug 2003 19:43:05 -0000
@@ -478,13 +478,19 @@
AC_MSG_RESULT($i_cv_type_$1)
])
-AC_CHECKTYPE2(uintmax_t, [#include
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tuesday 05 August 2003 21:44, Timo Sirainen wrote:
Try this patch:
Thanks you, it works now.
Jens -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE/MBOeLPHiyaqJLscRAtFoAJ9qNB2LWKgltsnwowioR1rtqOrUCgCfepHU CcwtFhm6AYx33gtq6OhtlF8= =+4BE -----END PGP SIGNATURE-----
Timo Sirainen tss@iki.fi writes:
-AC_CHECKTYPE2(uintmax_t, [#include
]) +dnl some systems don't have stdint.h, but still have some of the types +dnl defined elsewhere +AC_CHECK_HEADER(stdint.h, [
- stdint_include="#include
" +]) - +AC_CHECKTYPE2(uintmax_t, [$stdint_include])
inttypes.h is supposed to pull in stdint.h if the latter is present according to IEEE Std 1003.1-2001, so an application will not need to use stdint.h explicitly.
-- Matthias Andree
participants (3)
-
Jens Gutzeit
-
Matthias Andree
-
Timo Sirainen