[lfs-dev] chapter 6 coreutils-8.28

Bruce Dubbs bruce.dubbs at gmail.com
Tue Oct 31 10:59:04 PDT 2017


Christoph Feikes wrote:
> Could somebody please give me a clue why I have to
> #define MBFILE_INLINE _GL_EXTERN_INLINE in src/{un,}expand.c before
> #include <mbfile.h> when building coreutils-8.28 in chapter 6?

> Without this, the build fails with
>> src/expand.o: In function `expand':
>> expand.c:(.text+0x432): undefined reference to `mbfile_multi_getc'
>> collect2: error: ld returned 1 exit status
> In chapter 5 coreutils builds just fine without the additional definition.

Did you apply the patch?  That's where MBFILE_INLINE is defined.

 From the patch:

Origin: Based on Fedora's i18n patches at
         http://pkgs.fedoraproject.org/cgit/rpms/coreutils.git/tree/

Description: Fixes i18n issues with various Coreutils programs

   -- Bruce



More information about the lfs-dev mailing list