고생이 많으시군요..

저도 참 삽질 많이 했었는데..

glibc-2.3.2 에 버그가 있는것으로 알고 있습니다.

아래는 제가 수정하면서 정리 해본것 들입니다. 그래봐야 돌아다니는거

찾은것이지만..

그리고 g++ 설치 하기 위해 gcc 재설치 시에도 라이브러리 수정해줘야 합니다.

경로는 잘 찾으시기 바랍니다. 그리고 설치시옵션도 아마 다른거 같던데..

그것은 정리를 못 했었습니다. 한번 같은 옵션으로 해보세요..

=====[ 파일수정 ]=============================================
==> ./sysdeps/unix/sysv/linux/arm/sysdep.h
@@ -158,7 +158,7 @@
asm volatile ("swi %1 @ syscall " #name
: "=r" (_a1)
: "i" (SYS_ify(name)) ASM_ARGS_##nr
- : "a1", "memory"); <= 제거
+ : "memory"); <= 추가
_sys_result = _a1;
}
(int) _sys_result; })

==> ./stdio-common/sscanf.c
@@ -27,9 +27,7 @@
/* Read formatted input from S, according to the format string FORMAT.
*/
/* VARARGS2 */
int
-sscanf (s, format) <= 제거
- const char *s; <= 제거

- const char *format; <= 제거
+sscanf (const char *s, const char *format, ...) <= 추가
{
va_list arg;
int done;


==> ./linuxthreads/sysdeps/unix/sysv/linux/arm/sysdep-cancel.h
@@ -34,7 +34,7 @@
# define PSEUDO(name, syscall_name, args)
.section ".text";

PSEUDO_PROLOGUE;

- ENTRY (name) <= 제거

+ ENTRY (name); <= 추가

SINGLE_THREAD_P_INT;

bne .Lpseudo_cancel;

DO_CALL (syscall_name, args);

GLIBC_PATCH_END1


재설치시..
[root@ $PREFIX]# sed -e '/*** BUG/d' lib/libc.so > lib/libc.so.new

[root@ $PREFIX]# mv -f lib/libc.so.new -f lib/libc.so
[root@ $PREFIX]# sed -e '/*** BUG/d' lib/libpthread.so >
lib/libpthread.so.new
[root@ $PREFIX]# mv -f lib/libpthread.so.new -f lib/libpthread.so


정민우 wrote..
: "[GCC 3.2 지원] 툴체인 소스패케지 크로스 컴파일 환경 구성하기" 강좌를 보
: 면서 크로스 컴파일 환경을 구성하고 있습니다.
:
: 잘 되다가 glibc 패키지 설치에서 막혔는데요, make clean 이나 glibc 디 렉 토
: 리를 날리고 다시 해봐도 진척이 없어 질문 드립니다.
:
: wow linux 7.1을 사용하고 있고,
: /home/cross/kernel/linux-2.4.19에 XScale 패치 적용된 리눅스 커널이 있 고,
: /home/cross/kernel/glibc-2.3.1에 glibc를 깔고 다음과 같이 configure를 했
: 습니다.
:
: ./configure arm-linux --build=i686-pc-linux-gnu --with-
: headers=/home/cross/kernel/linux-2.4.19/include --enable-add-ons --enab
: le-shared --prefix=/usr/arm-linux --with-cpu=xscale --without-fp --
: enable-kernel=2.4.19
:
: configure를 마칠때쯤 다음과 같은 화면이 나오구요
: checking for old glibc 2.0.x headers... no
: checking whether -fPIC is default... no
: creating ./config.status
: creating config.make
: creating glibcbug
: creating config.h
: config.h is unchanged
: configuring in linuxthreads
: running /bin/sh ./configure arm-linux --build=i686-pc-linux-gnu -- with-
: headers=/home/cross/kernel/linux-2.4.19/include --enable-add-ons --
: enable-shared --p
: refix=/usr/arm-linux --with-cpu=xscale --without-fp --enable-
: kernel=2.4.19 --cache-file=.././config.cache --srcdir=.
: [root@localhost glibc-2.3.1]#
:
: 그리고 make를 하게 되면 조금 되다가 다음과 같은 에러가 나면서 멈춥니다.
: In file included from /home/cross/kernel/linux-
: 2.4.19/include/linux/param.h:4,
: from ../sysdeps/unix/sysv/linux/sys/param.h:24,
: from ../sysdeps/unix/sysv/linux/init-first.c:26:
: /home/cross/kernel/linux-2.4.19/include/asm/param.h:13:45:
: asm/arch/param.h: No such file or directory
: /home/cross/kernel/linux-2.4.19/include/asm/param.h:14:57:
: asm/proc/page.h: No such file or directory
: make[1]: *** [init-first.o] Error 1
: make[1]: Leaving directory `/home/cross/kernel/glibc-2.3.1/csu'
: make: *** [csu/subdir_lib] Error 2
: [root@localhost glibc-2.3.1]#
:
:
: 벌써 몇 시간째 glibc를 못 깔아서 헤매고 있습니다.
: 고수님들의 답변 부탁드립니다.