Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Bug#445611: conflicting types for 'mode_t'

15 views
Skip to first unread message

Kurt Roeckx

unread,
Oct 7, 2007, 5:50:11 AM10/7/07
to
Package: libc6-dev, linux-libc-dev
Severity: important

Hi,

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'
/usr/include/sys/types.h:72: error: previous declaration of 'mode_t' was here


Kurt


--
To UNSUBSCRIBE, email to debian-bugs-...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listm...@lists.debian.org

Bastian Blank

unread,
Oct 7, 2007, 6:20:10 AM10/7/07
to
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.

Bastian

--
We have phasers, I vote we blast 'em!
-- Bailey, "The Corbomite Maneuver", stardate 1514.2

Kurt Roeckx

unread,
Oct 7, 2007, 7:10:06 AM10/7/07
to
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.

0 new messages