bug-libunistring
[Top][All Lists]
Advanced

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

Re: [bug-libunistring] unicase/u-is-invariant.h", line 19: error: identi


From: Bruno Haible
Subject: Re: [bug-libunistring] unicase/u-is-invariant.h", line 19: error: identifier redeclared: u16_is_invariant
Date: Mon, 21 Nov 2016 03:10:50 +0100
User-agent: KMail/4.8.5 (Linux/3.8.0-44-generic; KDE/4.8.5; x86_64; ; )

Dennis Clarke wrote on 20.11.2016:
> 
> Dear libunistring folks :
> 
>      While doing a compile with strict c99 compliance on a really strict 
> Solaris 10 server using the pedantic Oracle Studio 12.4 compiler tools 
> and you can see where this is going :-)
> 
> Here is the error :
> 
> /opt/solarisstudio12.4/bin/c99 -DHAVE_CONFIG_H -DNO_XMALLOC -I. -I.. 
> -I. -I. -I.. -I.. -DIN_LIBUNISTRING -DDEPENDS_ON_LIBICONV=1 -D_TS_ERRNO 
> -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE -D_REENTRANT 
> -I/usr/local/include  -m64 -xtarget=ultra2 -xarch=sparcvis -xchip=ultra2 
> -xcache=generic -errwarn=%none -errhdr=%user -erroff=%none -errtags=yes 
> -errfmt=error -errshort=full -xstrconst -xildoff -xmemalign=8s 
> -xnolibmil -Xc -xcode=pic32 -xregs=no%appl -xlibmieee -mc -g -xs 
> -ftrap=%none -Qy -xbuiltin=%none -xdebugformat=dwarf -xunroll=1 
> -D_TS_ERRNO -D_POSIX_PTHREAD_SEMANTICS -D_LARGEFILE64_SOURCE 
> -D_XOPEN_SOURCE=600 -c unicase/u16-is-invariant.c
> "unicase/u-is-invariant.h", line 19: error: identifier redeclared: 
> u16_is_invariant
>          current : function(pointer to const unsigned short, unsigned 
> long, pointer to function(..) returning pointer to unsigned short, 
> pointer to const char, pointer to signed char) returning int
>          previous: function(pointer to const unsigned short, unsigned 
> long, pointer to function(..) returning pointer to unsigned short, 
> pointer to const char, pointer to _Bool) returning int : 
> "./unicase/invariant.h", line 33
> c99: acomp failed for unicase/u16-is-invariant.c
> gmake[2]: *** [config.h] Error 1
> gmake[2]: Leaving directory 
> `/usr/local/build/libunistring-0.9.6_SunOS5.10_sparcv9.001/lib'
> gmake[1]: *** [all-recursive] Error 1
> gmake[1]: Leaving directory 
> `/usr/local/build/libunistring-0.9.6_SunOS5.10_sparcv9.001'
> gmake: *** [all] Error 2
> mimas_$

Can you please run this compilation command with -E instead of -c
and pipe its output to a file, then look in this file how the
declaration and the definition of the function u16_is_invariant
looks like?

If they are identical, you have found a compiler bug.
If they are different, please send us this file (compressed), so that
we can analyze where 'bool' got redefined.

> checking for stdbool.h that conforms to C99... yes

So gnulib did not generate an stdbool.h override.

Bruno




reply via email to

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