Bug 5384 - Can't build packages relying on gets on newer glibc
Summary: Can't build packages relying on gets on newer glibc
Status: RESOLVED FIXED
Alias: None
Product: buildroot
Classification: Unclassified
Component: Other (show other bugs)
Version: 2012.02
Hardware: PC Linux
: P5 minor
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-22 12:49 UTC by Jonathan Liu
Modified: 2012-08-21 12:08 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Comment 1 Samuel Martin 2012-07-23 03:43:18 UTC
(In reply to comment #0)
> On newer versions of glibc, gets is no longer included so host packages relying
> on it will not compile properly.
> 
> Patches:
> https://raw.github.com/OpenELEC/OpenELEC.tv/f7f4d70fd78621137745a2c5e08b10685dfc84b7/packages/toolchain/devel/autotools/m4/patches/m4-1.4.16-fgets.patch
> https://raw.github.com/OpenELEC/OpenELEC.tv/3b2e87a6955627c122588bc4963b7aae5150c095/packages/toolchain/archivers/cpio/patches/cpio-2.11-fgets.patch
> https://raw.github.com/OpenELEC/OpenELEC.tv/e2c5feecdb2cfd6e343a6a152612f6fcf3aae8e9/packages/toolchain/devel/autotools/gettext/patches/gettext-0.18.1.1-gets.patch

Yes, for now, AFAIK only glibc-2.16 has removed 'gets'.

For m4, a patch fixing this has already been merged: [1].

For cpio and gettext on the host system, Buildroot relies on the package provided by the host distribution.
So, if you are experiencing issues with these packages, this should be more likely reported to the maintainers of the distribution you're using.

BTW, do you know from where does the definition of HAVE_RAW_DECL_GETS come from?
Grepping it in /usr/include of systems using glibc-2.15, glibc-2.16 and eglibc-2.15 gives no result.

Thx for the report.

[1] http://git.buildroot.net/buildroot/commit/?id=600375d18e6ccd08505153863666f2e8b10251be
Comment 2 Thomas Petazzoni 2012-08-21 12:08:39 UTC
Bug already fixed.