Bug 2443

Summary: poky-tiny: eglibc 2.15 fails to compile xregex.c
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Lianhao Lu <lianhao.lu>
Component: devtools / tool chainAssignee: Nitin Kamble <nitin.a.kamble>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: dvhart, meta.mr.watcher, meta.watcher, sgw
Version: 1.3   
Target Milestone: 1.3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Bug Depends on:    
Bug Blocks: 2382    

Description Lianhao Lu 2012-05-09 07:02:57 UTC
Building the qemux86 with DISTRO=poky-tiny fails to compile eglibc-nativesdk with the following error:

...
| In file included from xregex.c:634:0:
| xregex.c: In function 'byte_regex_compile':
| xregex.c:3395:8: error: too few arguments to function 'findidx'
| ../locale/weight.h:23:1: note: declared here


bug #2295 fixed the same problem for eglibc-nativesdk, now the problem comes into eglibc, since we upgrade target eglibc to 2.15 too.
Comment 2 Nitin Kamble 2012-05-15 16:21:48 UTC
This commit in the master branch has fixed the issue.

commit 95be1d650f3e2b580e4070ee49f752ab3ad3098a
Author: Nitin A Kamble <nitin.a.kamble@intel.com>
Date:   Wed May 9 13:42:45 2012 -0700

    eglibc: fix build with poky-tiny distro

    This fixes bug [YOCTO #2443]

    The prototype of findidx() has changed, but the code in xregex.c is
    still using the old prototype. This issue stayed hidden because this
    code only gets excercised when OPTION_POSIX_REGEXP_GLIBC is disabled
    in the eglibc configuration.
      See the patch for further information.

    (From OE-Core rev: 8691038efb0aca4a2cd61fce0c53d10092e48b75)

    Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>