make[3]: Entering directory `/data/iamroot/xen/setup/xen-unstable.hg/tools/libxl'

gcc  -O1 -fno-omit-frame-pointer -fno-optimize-sibling-calls -m64 -g -fno-strict-aliasing -std=gnu99 -Wall -Wstrict-prototypes -Wno-unused-value -Wdeclaration-after-statement  -D__XEN_TOOLS__ -MMD -MF .libxl.o.d  -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE  -Werror -Wno-format-zero-length -Wmissing-declarations  -I. -fPIC -I../../tools/libxc -I../../tools/include -I../../tools/libxc -I../../tools/include -I../../tools/xenstore -I../../tools/include -I../../tools/blktap2/control -I../../tools/blktap2/include -I../../tools/include -c -o libxl.o libxl.c

cc1: warnings being treated as errors

libxl.c: In function ‘libxl_create_cpupool’:

libxl.c:3981: error: format not a string literal and no format arguments

libxl.c:3983: error: format not a string literal and no format arguments

libxl.c: In function ‘libxl_cpupool_movedomain’:

libxl.c:4095: error: format not a string literal and no format arguments

make[3]: *** [libxl.o] 오류 1

make[3]: Leaving directory `/data/iamroot/xen/setup/xen-unstable.hg/tools/libxl'

make[2]: *** [subdir-install-libxl] 오류 2

make[2]: Leaving directory `/data/iamroot/xen/setup/xen-unstable.hg/tools'

make[1]: *** [subdirs-install] 오류 2

make[1]: Leaving directory `/data/iamroot/xen/setup/xen-unstable.hg/tools'

make: *** [install-tools] 오류 2



위와 같이 libxl에서 에러가 발생하는 이유는 gcc 4.3이상 부터 가변인자로 형식으로 argument를 받을 때 char *변수를 통해 입력을 할 경우 이를 warning이 발생 되도록 바뀌었음.

xen에서는 빌드 시 옵션을 -Werror를 주므로 warning도 에러로 처리 해서 문제가 됨.

위의 빌드에러를 고치기 위해 소스를 수정 해야 한다.

<수정 전>
3980         libxl__xs_write(&gc, t, libxl__sprintf(&gc, "/local/pool/%d/uuid", *poolid),
3981                  uuid_string);
3982         libxl__xs_write(&gc, t, libxl__sprintf(&gc, "/local/pool/%d/name", *poolid),
3983                  name);


<수정 후>

3980         libxl__xs_write(&gc, t, libxl__sprintf(&gc, "/local/pool/%d/uuid", *poolid), "%s",
3981                  uuid_string);
3982         libxl__xs_write(&gc, t, libxl__sprintf(&gc, "/local/pool/%d/name", *poolid), "%s",
3983                  name);


<수정 전>

4095         libxl__xs_write(&gc, t, libxl__sprintf(&gc, "%s/pool_name", vm_path), poolname);


<수정 후>

4095         libxl__xs_write(&gc, t, libxl__sprintf(&gc, "%s/pool_name", vm_path), "%s", poolname);



위와 같이 수정 하시면 빌드 시 에러가 발생 안합니다.

번호 제목 글쓴이 날짜 조회 수
공지 [공지] 하이퍼바이져 스터디 관련 Q&A 게시판 입니다. woos 2016.04.09 237
155 Emulation과 Full Virtualization 차이 [2] 황선욱 2011.04.02 5875
154 레드햇 클라우드 솔루션 소개 자료 이승희_대전 2011.09.03 5866
153 KGDB 디버깅 정말 열심히 했으나 결국 실패 했습니다. 용석씨 결과 좀 알려주세요~~~ [1] 김연희 2011.07.04 5805
152 NVIDIA GeForce 7025 쓰시는분 보세요. [1] 백창우 2008.01.07 5792
151 내일 참석하지 못할 것 같습니다 죄송합니다. [1] 정찬호 2008.05.16 5783
150 분석 시작전에 x86 이해 문의 [9] file 백창우 2008.01.06 5719
149 VMX 기능 켜기 문제 [4] 김기오 2008.02.21 5703
148 [정보] XEN 설치 가이드 [1] 박세율 2008.01.29 5662
147 아무래도 vim에서 벋어나기가 힘드네요 [1] 김기오 2008.03.27 5615
146 스터디 소스 관리가 너무 어렵습니다 ㅜㅜㅜ svn으로 옮기는 것은 어떨까요?? [2] 김연희 2011.09.19 5610
145 Unix Systems for Modern Architectures 책 제본 [7] 김기오 2008.04.24 5588
144 Xen관련된 참고 논문입니다.(1) file 정성욱 2007.12.26 5539
143 Nested Virtualization [11] 박은병 2010.11.25 5503
142 [re] 성욱씨 emacs 문의요 [2] file 정성욱 2008.03.27 5499
141 이건 정말 기막힌 응용이네요. [2] 백창우 2007.11.22 5456
140 자동 ctags 만들어주는 스크립트좀 공유해주세요 [2] 박세율 2008.04.20 5424
139 인텔 매뉴얼 신청하세요 [4] 김기오 2008.01.25 5409
138 xen이 4.0이 release되었네요 [3] 박은병 2010.05.06 5397
137 창우씨가 만드신 vimrc 파일 주실 수 있나요? 김기오 2008.03.15 5375
136 안녕하세요 - 이일렬 입니다. 이일렬 2007.12.18 5368

XE Login