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