glib make install 시 timezone error
gcc를 수정해서 glibc가 정상적으로 빌드되는지 테스트하고 있습니다. gcc는 4.3.3, glibc는 2.9를 테스트하고 있습니다. gcc는 간단한 부분만 수정한 거라서 크게 문제 되는 부분은 없다고 생각되는데, glibc를 build할때 make install하면 timezone에서 에러가 뿜어져 나오는군요. configuration은 다음과 같이 했습니다.
cflags : -fpce -O2 -g -march=i686
../glibc-2.9/configure --prefix=/glibc_test --build=i686-pc-linux-gnu --enable-kernel=2.6.27
error는 다음과 같습니다.
.....
"africa", line 807: invalid saved time
"africa", line 807: invalid time of day
"africa", line 807: invalid starting year
"africa", line 812: invalid UTC offset
"africa", line 812: invalid time of day
"africa", line 812: invalid starting year
"africa", line 813: invalid UTC offset
"africa", line 813: invalid time of day
.....
make[2]: *** [/glibc_test/share/zoneinfo/Africa/Algiers] Error 1
make[2]: Leaving directory `/home/ardeness/glibc-2.9/timezone'
make[1]: *** [timezone/subdir_install] Error 2
make[1]: Leaving directory `/home/ardeness/glibc-2.9'
make: *** [install] 오류 2
configuration에서 뭔가 잘못 된거 같은데, 구글님도 딱히 뾰족한 답을 던져주시지 않네요. 경험 있으신 분 계시면 조언좀 부탁드립니다.ㅠㅠ
자답입니다.
glibc를 빌드할때 ld-linux.so와 ld.so를 만들어서 쓰더군요. 근데 이게 문제가 있어서 timezone이 잘못되었다는 메시지를 출력하더라구요. 그래서 make 한 뒤에 시스템에 원래 있던 ld-linux.so와 ld.so를 복사해서 다시 make하고 make install하니 되었습니다. 하지만 편법이라서 좀 찝찝하네요.
댓글 달기