[Buildroot] [autobuild.buildroot.net] Build results for 2014-05-27

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Wed May 28 06:46:02 UTC 2014


Dear Yann E. MORIN,

On Wed, 28 May 2014 08:43:58 +0200, Yann E. MORIN wrote:

> >       bfin |                      monit-5.7 | NOK | http://autobuild.buildroot.net/results/67623f87f8bc2c73f30bdc3943c58238686c106e/
> 
>     src/process/sysdep_LINUX.c: In function 'initprocesstree_sysdep':
>     src/process/sysdep_LINUX.c:207: error: 'GLOB_ONLYDIR' undeclared (first
>     use in this function)
> 
> Not sure, but GLOB_ONLYDIR should come from the C library. I will
> investigate.

GLOB_ONLYDIR is a GNU extension, and Blackfin toolchains have a uClibc
configuration without the appropriate option. However, GLOB_ONLYDIR is
only a hint:

       GLOB_ONLYDIR
              This  is  a hint to glob() that the caller is interested only in
              directories that match the pattern.  If the  implementation  can
              easily  determine file-type information, then nondirectory files
              are not returned to the caller.  However, the caller must  still
              check that returned files are directories.  (The purpose of this
              flag is merely to optimize performance when the caller is inter‐
              ested only in directories.)

So a potential fix would be:

#ifndef GLOB_ONLYDIR
#define GLOB_ONLYDIR 0
#endif

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com



More information about the buildroot mailing list