config/debug/ltrace.in
author Zoltan Devai <zdevai@gmail.com>
Wed Oct 28 12:03:38 2009 +0100 (2009-10-28)
branch1.5
changeset 1645 01d01185eb18
parent 1535 073d351bdcd3
child 1615 50b25816f5bb
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 # ltrace
     2 
     3 config DEBUG_ltrace
     4     select TOOL_libelf
     5     help
     6       ltrace is a program that simply runs the specified command until it exits.
     7       It intercepts and records the dynamic library calls which are called by
     8       the executed process and the signals which are received by that process.
     9       It can also intercept and print the system calls executed by the program.
    10 
    11 choice
    12     bool
    13     prompt "ltrace version"
    14 # Don't remove next line
    15 # CT_INSERT_VERSION_BELOW
    16 
    17 config LTRACE_V_0_5_2
    18     bool
    19     prompt "0.5.2"
    20 
    21 config LTRACE_V_0_5_1
    22     bool
    23     prompt "0.5.1 (EXPERIMENTAL)"
    24     depends on EXPERIMENTAL
    25 
    26 config LTRACE_V_0_5
    27     bool
    28     prompt "0.5"
    29 
    30 config LTRACE_V_0_4
    31     bool
    32     prompt "0.4"
    33 
    34 endchoice
    35 
    36 config LTRACE_VERSION
    37     string
    38 # Don't remove next line
    39 # CT_INSERT_VERSION_STRING_BELOW
    40     default "0.5.2" if LTRACE_V_0_5_2
    41     default "0.5.1" if LTRACE_V_0_5_1
    42     default "0.5" if LTRACE_V_0_5
    43     default "0.4" if LTRACE_V_0_4