config/debug/strace.in
author Zoltan Devai <zdevai@gmail.com>
Wed Oct 28 12:03:38 2009 +0100 (2009-10-28)
changeset 1602 1ba79f2126df
parent 1534 d4ddf19a1968
child 1603 e0ef539e23d9
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.
     1 # strace
     2 
     3 config DEBUG_strace
     4 
     5 choice
     6     bool
     7     prompt "strace version"
     8 # Don't remove next line
     9 # CT_INSERT_VERSION_BELOW
    10 
    11 config STRACE_V_4_5_18
    12     bool
    13     prompt "4.5.18 (EXPERIMENTAL)"
    14     depends on EXPERIMENTAL
    15 
    16 config STRACE_V_4_5_17
    17     bool
    18     prompt "4.5.17"
    19 
    20 config STRACE_V_4_5_16
    21     bool
    22     prompt "4.5.16"
    23 
    24 config STRACE_V_4_5_15
    25     bool
    26     prompt "4.5.15"
    27 
    28 config STRACE_V_4_5_14
    29     bool
    30     prompt "4.5.14 (OBSOLETE)"
    31     depends on OBSOLETE
    32 
    33 config STRACE_V_4_5
    34     bool
    35     prompt "4.5 (OBSOLETE)"
    36     depends on OBSOLETE
    37 
    38 endchoice
    39 
    40 config STRACE_VERSION
    41     string
    42 # Don't remove next line
    43 # CT_INSERT_VERSION_STRING_BELOW
    44     default "4.5.18" if STRACE_V_4_5_18
    45     default "4.5.17" if STRACE_V_4_5_17
    46     default "4.5.16" if STRACE_V_4_5_16
    47     default "4.5.15" if STRACE_V_4_5_15
    48     default "4.5.14" if STRACE_V_4_5_14
    49     default "4.5" if STRACE_V_4_5