patches/gcc/3.2.3/README-sh
author Zoltan Devai <zdevai@gmail.com>
Wed Oct 28 12:03:38 2009 +0100 (2009-10-28)
changeset 1602 1ba79f2126df
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 http://mirror.sh-linux.org/rpm-2003/SRPMS/gcc-3.2.3-3.src.rpm contains the following patches:
     2 
     3 gcc-20030210-sh-linux-1.patch
     4 gcc-3.2.3-libffi-1.patch
     5 gcc-3.2.3-sh-linux-dwarf2-1.patch (*not* applied by the spec file, it's in there by accident)
     6 
     7 gcc-3.2.3-libffi-1.patch was needed just to build, I think.
     8 
     9 After that was applied, sh4 gcc seemed to compile fine, but c++ programs
    10 failed to execute because libstdc++.so.5 was built without version
    11 info.  This was caused directly by libstdc++-v3/configure setting
    12 SYMVER_MAP=config/linker-map.dummy because it sees that 
    13 no libgcc_s.so was generated; configure says
    14   checking for shared libgcc... no.
    15 
    16 Applying gcc-20030210-sh-linux-1.patch in hopes it makes those problems go away.