Skip to content

Cannot build 1.18.0 with uClibc #313

@fperrad

Description

@fperrad

On Buildroot, we detect build failures when using uClibc-ng, see http://autobuild.buildroot.org/?reason=libtomcrypt-1.18.0.
The build.log shows a conflict with wchar_t

In file included from ./src/headers/tomcrypt.h:88:0,
                 from src/ciphers/anubis.c:16:
./src/headers/tomcrypt_pk.h:678:17: error: conflicting types for 'wchar_t'
 typedef ulong32 wchar_t;
                 ^~~~~~~
In file included from ./src/headers/tomcrypt.h:16:0,
                 from src/ciphers/anubis.c:16:
/usr/lfs/v0/rc-buildroot-test/scripts/instance-2/output/host/opt/ext-toolchain/lib/gcc/arm-buildroot-linux-uclibcgnueabi/6.3.0/include/stddef.h:328:24: note: previous declaration of 'wchar_t' was here
 typedef __WCHAR_TYPE__ wchar_t;
                        ^~~~~~~

This piece of code https://github.com/libtom/libtomcrypt/blob/develop/src/headers/tomcrypt_pk.h#L669-L680 is not suitable with uClibc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions