bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Conflicting types for mblen on Solaris 2.6


From: Tom G. Christensen
Subject: Conflicting types for mblen on Solaris 2.6
Date: Thu, 1 Jan 2009 21:20:27 +0100
User-agent: Mutt/1.4.2.2i

The current daily snapshot is failing to build fprintftime:
depbase=`echo fprintftime.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
        gcc -std=gnu99 -DHAVE_CONFIG_H -DEXEEXT=\"\" -DEXEEXT=\"\" -DNO_XMALLOC 
-DEXEEXT=\"\" -I. -I..  -I../intl -I/usr/tgcware/include -D_REENTRANT  -g -O2 
-MT fprintftime.o -MD -MP -MF $depbase.Tpo -c -o fprintftime.o fprintftime.c &&\
        mv -f $depbase.Tpo $depbase.Po
In file included from ./stdint.h:482,
                 from ./stdlib.h:46,
                 from strftime.c:67,
                 from fprintftime.c:2:
./wchar.h:197: error: conflicting types for 'mblen'
/usr/tgcware/gcc-4.3.2/lib/gcc/sparc-sun-solaris2.6/4.3.2/include-fixed/stdlib.h:146:
 error: previous declaration of 'mblen' was here
make[4]: *** [fprintftime.o] Error 1

stdlib.h:146 is:
extern int mblen(const char *, size_t);

wchar.h:197 is:
extern size_t mbrlen (const char *s, size_t n, mbstate_t *ps);

The type conflict I guess is caused by strftime.c:58:
#  define mbrlen(s, n, ps) mblen (s, n)

-tgc




reply via email to

[Prev in Thread] Current Thread [Next in Thread]