patches/gdb/6.4/110-uclibc-readline-conf.patch
author Zoltan Devai <zdevai@gmail.com>
Wed Oct 28 12:03:38 2009 +0100 (2009-10-28)
changeset 1602 1ba79f2126df
parent 96 aa1a9fbd6eb8
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.
yann@96
     1
--- gdb-6.1.1-dist/readline/configure	2003-05-27 18:29:47.000000000 -0500
yann@96
     2
+++ gdb-6.1.1/readline/configure	2004-08-09 14:20:23.000000000 -0500
yann@96
     3
@@ -6249,7 +6249,12 @@
yann@96
     4
 
yann@96
     5
 
yann@96
     6
 echo "$as_me:$LINENO: checking for mbstate_t" >&5
yann@96
     7
+echo $ECHO_N "bash_cv_have_mbstate_t=$bash_cv_have_mbstate_t" >&6
yann@96
     8
 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6
yann@96
     9
+if test "${bash_cv_have_mbstate_t+set}" != set; then
yann@96
    10
+  bash_cv_have_mbstate_t=yes
yann@96
    11
+  echo $ECHO_N "WARNING!! forcing to yes!!! $ECHO_C" >&6
yann@96
    12
+fi
yann@96
    13
 if test "${bash_cv_have_mbstate_t+set}" = set; then
yann@96
    14
   echo $ECHO_N "(cached) $ECHO_C" >&6
yann@96
    15
 else