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

Bug#977763: gettext: FTBFS on ppc64el: error: redefinition of ‘union gl_long_double_union’



Source: gettext
Version: 0.21-2
Severity: serious
Tags: ftbfs
Justification: fails to build from source (but built successfully in the past)
Control: block 967026 by -1
X-Debbugs-Cc: debian-powerpc@lists.debian.org

https://buildd.debian.org/status/fetch.php?pkg=gettext&arch=ppc64el&ver=0.21-2&stamp=1608466549&raw=0:
> In file included from /usr/include/unicode/utypes.h:41,
>                  from /usr/include/unicode/ucnv_err.h:88,
>                  from /usr/include/unicode/ucnv.h:52,
>                  from ///usr/include/libxml2/libxml/encoding.h:31,
>                  from ///usr/include/libxml2/libxml/parser.h:810,
>                  from format-kde-kuit.c:43:
> ../gnulib-lib/float.h:150:7: error: redefinition of ‘union gl_long_double_union’
>   150 | union gl_long_double_union
>       |       ^~~~~~~~~~~~~~~~~~~~
> In file included from ../gnulib-lib/float.h:27,
>                  from /usr/include/unicode/utypes.h:41,
>                  from /usr/include/unicode/ucnv_err.h:88,
>                  from /usr/include/unicode/ucnv.h:52,
>                  from ///usr/include/libxml2/libxml/encoding.h:31,
>                  from ///usr/include/libxml2/libxml/parser.h:810,
>                  from format-kde-kuit.c:43:
> ../libgettextpo/float.h:150:7: note: originally defined here
>   150 | union gl_long_double_union
>       |       ^~~~~~~~~~~~~~~~~~~~
> In file included from /usr/include/unicode/utypes.h:41,
>                  from /usr/include/unicode/ucnv_err.h:88,
>                  from /usr/include/unicode/ucnv.h:52,
>                  from ///usr/include/libxml2/libxml/encoding.h:31,
>                  from ///usr/include/libxml2/libxml/parser.h:810,
>                  from format-kde-kuit.c:43:
> ../gnulib-lib/float.h:155:41: error: conflicting types for ‘gl_LDBL_MAX’
>   155 | extern const union gl_long_double_union gl_LDBL_MAX;
>       |                                         ^~~~~~~~~~~
> In file included from ../gnulib-lib/float.h:27,
>                  from /usr/include/unicode/utypes.h:41,
>                  from /usr/include/unicode/ucnv_err.h:88,
>                  from /usr/include/unicode/ucnv.h:52,
>                  from ///usr/include/libxml2/libxml/encoding.h:31,
>                  from ///usr/include/libxml2/libxml/parser.h:810,
>                  from format-kde-kuit.c:43:
> ../libgettextpo/float.h:155:41: note: previous declaration of ‘gl_LDBL_MAX’ was here
>   155 | extern const union gl_long_double_union gl_LDBL_MAX;
>       |                                         ^~~~~~~~~~~
> make[7]: *** [Makefile:3311: libgettextsrc_la-format-kde-kuit.lo] Error 1

Sorry, I don't know what's special about ppc64el here. It looks as though
the build system has decided to build gnulib <float.h> on ppc64el, but not
on other architectures. This seems like something that shouldn't be
necessary on a system with GNU libc and GNU compilers.

    smcv


Reply to: