Re: [PATCH] ARC: Add GNU glob to ARC defconfigs

Rich Felker <[email protected]>
Newsgroups gmane.comp.lib.uclibc.general
Message-ID <[email protected]>
On Wed, Feb 04, 2015 at 03:58:41PM +0000, Anton Kolesov wrote:
> Now I've looked into more details of error cause and what happens is
> that those fields (gl_opendir, gl_readdir, gl_closedir, gl_stat) in
> glob_t in uclibc/include/glob.h are surrounded by "#ifdef
> __UCLIBC_HAS_GNU_GLOB__". "Make" might be built without GNU glob on
> target system because it contains its own copy in source tree and
> uses it when it detects that target system doesn’t have GNU glob.
> However the way it checks for GNU glob is not compatible with
> uClibc, because make/configure checks for "
> _GNU_GLOB_INTERFACE_VERSION == 1" as an indicator that GNU glob is
> present, but uclibc/gnu-versions.h defines
> _GNU_GLOB_INTERFACE_VERSION as 1 regardless of whether GNU glob is
> present in configuration. Thus make/configure decides that GNU glob
> is present when it is not, which causes further compilation error.

I think the definition of _GNU_GLOB_INTERFACE_VERSION just needs to be
moved inside the #ifdef __UCLIBC_HAS_GNU_GLOB__. uclibc should not be
reporting that it has GNU glob when it was built without it.

Rich
_______________________________________________
uClibc mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/uclibc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.