[yocto] Problem compiling diffutils on poky-tiny in danny

Tomas Frydrych tf+lists.yocto at r-finger.com
Wed Nov 14 02:07:52 PST 2012


Hi Tim,

On 14/11/12 01:11, Tim Bird wrote:
> ./wctype.h:448:1: error: static declaration of 'iswalnum' follows non-static declaration
> ./wctype.h:460:1: error: static declaration of 'iswalpha' follows non-static declaration
> ...
> Has anyone seen this type of error before, or can provide some
> hints of what to check or adjust to fix this?

The diffutils package provides a replacement for wctypes.h, which
includes the system wctypes.h and then adds some stuff of it's own -- I
think you are hitting the '#if !GNULIB_defined_wctype_functions' in the
replacement file, which expects to be providing iswalnum, etc., and
prototypes them as 'static inline'; the system wctypes.h protypes are
not static.

Not sure why it should be taking that path, could be because these
functions are not provided by libc for poky-tiny (in which case the libc
headers need patching), or could be the detection in diffutils is
broken. As a quick hack, try removing the offending prototypes from the
sysroot wctypes.h.

Tomas

-- 
http://sleepfive.com



More information about the yocto mailing list