config/libc/newlib.in
author Zoltan Devai <zdevai@gmail.com>
Wed Oct 28 12:03:38 2009 +0100 (2009-10-28)
branch1.5
changeset 1645 01d01185eb18
parent 1468 841be3d8669e
child 1590 b51724d5250d
permissions -rw-r--r--
libc/uClibc: fix building on system with recent glibc

While trying to build a toolchain with ct-ng 1.5.0,
arm-unknown-linux-uclibcgnueabi target,
I get the following error:

[INFO ] Installing C library headers
[EXTRA] Copying sources to build dir
[EXTRA] Applying configuration
[EXTRA] Building headers
[EXTRA] Installing headers
[ERROR] extra/scripts/unifdef.c:209: error: conflicting types for 'getline'
[ERROR] make[2]: *** [extra/scripts/unifdef] Error 1
[ERROR] Build failed in step 'Installing C library headers'

The following patch solves the problem.
(It's a backport of this uClibc commit:
http://git.uclibc.org/uClibc/commit/?id=49e81cada73616864b9b31df0aeb6961c30f5a6e
)

[--SNIP from another mail--]
AFAIK this is a problem since glibc 2.10.
(transplanted from 1ba79f2126df8bd89120899a58f2d0bcc2e9c771)
     1 # newlib options
     2 # depends on EXPERIMENTAL
     3 
     4 config LIBC_newlib
     5     help
     6     Newlib is a C library intended for use on embedded systems. It is a 
     7     conglomeration of several library parts, all under free software 
     8     licenses that make them easily usable on embedded products. Newlib 
     9     is only available in source form. It can be compiled for a wide 
    10     array of processors, and will usually work on any architecture with
    11     the addition of a few low-level routines. 
    12 
    13 choice
    14     bool
    15     prompt "newlib version"
    16 # Don't remove next line
    17 # CT_INSERT_VERSION_BELOW
    18 
    19 config NEWLIB_V_1_17_0
    20     bool
    21     prompt "1.17.0"
    22 
    23 endchoice
    24 
    25 config LIBC_VERSION
    26     string
    27 # Don't remove next line
    28 # CT_INSERT_VERSION_STRING_BELOW
    29     default "1.17.0" if NEWLIB_V_1_17_0
    30 
    31 config ATMEL_AVR32_HEADERS
    32     bool
    33     prompt "Install Atmel AVR32 headers"
    34     default y
    35     help
    36       Install Atmel AVR32 headers for native AVR32 development. Most
    37       AVR32 MCU devices are supported.
    38       
    39       If you do native AVR32 development you want to say 'Y' here.
    40