Skip to content

GNU-only components that make it impossible to build in Musl or any other libC #17

@xplshn

Description

@xplshn
  • Due to the fact that libxo uses cdefs.h
  • fts_open is not provided by musl-fts nor Musl itself
  • rpmatch should not be used outside of glibc internal code, apparently

Check this excellent Gentoo wiki page: https://wiki.gentoo.org/wiki/Musl_porting_notes

See Juniper/libxo#94:

/usr/include/sys/cdefs.h:4:2: warning: usage of non-standard #include <sys/cdefs.h> is deprecated [-W#warnings]
    4 | #warning usage of non-standard #include <sys/cdefs.h> is deprecated

Developers like to wrongly include sys/cdefs.h to use the _*_DECLS macros. This is a bug and the correct way to do it is to use:

#ifdef __cplusplus
extern "C" {
#endif

Instead of:

#ifdef __cplusplus
}
#endif

And instead of _END_DECLS
https://wiki.gentoo.org/wiki/Musl_porting_notes

This causes problems on other OSes, like Illumos based ones, such as OpenIndiana, and also when */Linux based distros that use Musl, uClibc, Bionic libc (Android libc) or anything other than glibc try to compile libxo

Is chimera really "GNU-free" if it still uses header files and functionality provided only by the glibc? ...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions