Bug 5391

Summary: eglibc failes to compile with autoconf 2.69 and make 4.0
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Jack Mitchell <jack>
Component: coreAssignee: Khem Raj <raj.khem>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: laurentiu.palcu, Martin.Jansa, meta.mr.watcher, meta.watcher, net147
Version: 1.6   
Target Milestone: 1.6   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
0001-eglibc-2.18-Allow-to-use-make-4.0-and-autoconf-2.69-.patch none

Description Jack Mitchell 2013-10-28 11:55:11 UTC
eglibc is hardcoded to accept make 3.* and exactly autoconf 2.68. With autoconf 2.69 and make 4.0 released, this causes my nativesdk builds to fail.
Comment 1 Jack Mitchell 2013-10-28 11:56:11 UTC
| checking for gnumake... make
| checking version of make... 4.0, bad
| checking for gnumsgfmt... no
| checking for gmsgfmt... no
| checking for msgfmt... msgfmt
| checking version of msgfmt... 0.18.3, ok
| checking for makeinfo... makeinfo
| checking version of makeinfo... 5.2, ok
| checking for sed... sed
| checking version of sed... 4.2.2, ok
| checking for gawk... gawk
| checking version of gawk... 4.1.0, ok
| checking for i586-oe-linux-nm... i586-oe-linux-nm
| checking for autoconf... autoconf
| checking whether autoconf works... no
| configure: error:
| *** These critical programs are missing or too old: make
| *** Check the INSTALL file for required versions.
Comment 2 Martin Jansa 2013-10-30 18:00:26 UTC
I've changed aclocal and configure to allow newer make and autoconf, but then it fails a bit later in do_compile:

| /OE/oe-core/tmp-eglibc/work/x86_64-oe-linux/eglibc/2.18-r0/eglibc-2.18/libc/resolv/gethnamaddr.c:510: undefined reference to `__stack_chk_guard'
| /OE/oe-core/tmp-eglibc/work/x86_64-oe-linux/eglibc/2.18-r0/build-x86_64-oe-linux/resolv/libresolv_pic.a(gethnamaddr.os):/OE/oe-core/tmp-eglibc/work/x86_64-oe-linux/eglibc/2.18-r0/eglibc-2.18/libc/resolv/gethnamaddr.c:636: more undefined references to `__stack_chk_guard' follow
| collect2: error: ld returned 1 exit status
| ../Makerules:461: recipe for target '/OE/oe-core/tmp-eglibc/work/x86_64-oe-linux/eglibc/2.18-r0/build-x86_64-oe-linux/resolv/libresolv.so' failed
Comment 3 Martin Jansa 2013-10-30 20:06:20 UTC
Created attachment 1596 [details]
0001-eglibc-2.18-Allow-to-use-make-4.0-and-autoconf-2.69-.patch

Just RFC, because it fails later in build.
Comment 4 Martin Jansa 2014-01-18 14:10:30 UTC
Different version of such patch was merged and it looks like this was resolved, please reopen if it still fails for you.