Bug#445611: conflicting types for 'mode_t'
On Sun, Oct 07, 2007 at 12:09:51PM +0200, Bastian Blank wrote:
> On Sun, Oct 07, 2007 at 11:38:18AM +0200, Kurt Roeckx wrote:
> > When building proftpd-dfsg on amd64 I get the following error:
> > In file included from /usr/include/asm/types.h:5,
> > from /usr/include/asm-x86_64/sigcontext.h:4,
> > from /usr/include/asm/sigcontext.h:5,
> > from /usr/include/bits/sigcontext.h:28,
> > from /usr/include/signal.h:333,
> > from /usr/include/sys/wait.h:31,
> > from ../include/conf.h:95,
> > from pr_fnmatch.c:38:
> > /usr/include/asm-x86_64/types.h:6: error: conflicting types for 'mode_t'
>
> There is no mode_t defined in asm-x86_64/types.h.
Line 6 has umode_t on it:
typedef unsigned short umode_t;
While /usr/include/sys/types.h line 72 has:
typedef __mode_t mode_t;
proftpd's configure.in has:
AC_CHECK_TYPE(umode_t, mode_t)
And config.h.in has:
/* Define to `mode_t' if <sys/types.h> doesn't define. */
#undef umode_t
During configure we see:
checking for umode_t... no
The config.log contains:
configure:29869: checking for umode_t
configure:29894: gcc -c -O2 -Wall -I/usr/include/postgresql conftest.c
>&5
conftest.c:122: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'ac__type_new_'
conftest.c: In function 'main':
conftest.c:126: error: 'ac__type_new_' undeclared (first use in this function)
conftest.c:126: error: (Each undeclared identifier is reported only once
conftest.c:126: error: for each function it appears in.)
conftest.c:126: error: expected expression before ')' token
So it seems to me that proftpd's configure script is broken somehow.
Kurt
Reply to: