[질문] 한텀 static 컴파일?
글쓴이: keston / 작성시간: 목, 2004/02/12 - 10:47오후
제가 계정을 가진 리눅스 서버에 한텀등 XFree86 패키지가 아예 설치가 안되있습니다.
근데 한텀을 쓰고 싶어서 꽁수로 생각해 낸게 static 컴파일 하면 라이브러리 없이 동작 가능 하므로 다른 리눅스 서버에서 한텀 소스(hanterm-xf-2.0.5-173.tar.gz)를 받아다가 static 컴파일해서 사용할 생각으로 한번 해봤습니다.
Makefile의 CFLAGS에 -static 옵션을 추가하고 make 했더니..
(생략) gcc -static -g -O2 -L/usr/X11R6/lib -o hanterm button.o charproc.o charsets.o cursor.o data.o doublechr.o fontutils.o input.o main.o menu.o misc.o print.o ptydata.o screen.o scrollbar.o tabs.o util.o xstrings.o VTPrsTbl.o TekPrsTbl.o Tekproc.o automata.o chat.o hangul.o hanja.o hfont.o hanutil.o history.o comp.o johabcode2.o -L/usr/X11R6/lib -lXaw3d -lXmu -lXext -lXt -lSM -lICE -lX11 -lnsl -lncurses /usr/X11R6/lib/libXaw3d.a(MultiSrc.o)(.text+0xf79): In function `InitStringOrFile': : the use of `tmpnam' is dangerous, better use `mkstemp' /usr/X11R6/lib/libX11.a(XlibInt.o)(.text+0x85a): In function `_XEventsQueued': : undefined reference to `pthread_equal' /usr/X11R6/lib/libX11.a(XlibInt.o)(.text+0xc21): In function `_XEventsQueued': : undefined reference to `pthread_equal' /usr/X11R6/lib/libX11.a(XlibInt.o)(.text+0xc3a): In function `_XEventsQueued': : undefined reference to `pthread_equal' /usr/X11R6/lib/libX11.a(XlibInt.o)(.text+0xc56): In function `_XEventsQueued': : undefined reference to `pthread_equal' /usr/X11R6/lib/libX11.a(XlibInt.o)(.text+0xc73): In function `_XEventsQueued': : undefined reference to `pthread_equal' /usr/X11R6/lib/libX11.a(XlibInt.o)(.text+0xd06): more undefined references to `pthread_equal' follow collect2: ld returned 1 exit status make: *** [hanterm] 오류 1
이렇게 에러가 나네요..
예전 레드햇 7.3에선 이렇게 해서 한텀을 사용했었는데 7.3과 레드햇9가 커널? 라이브러리? 버전이 달라서 그런지 7.3에서 static 컴파일한 한텀이 9에선 실행이 안되네요..
글구 7.3에선 static 옵션으로 컴파일이 됐었는데 9에선 위와 같은 에러가 나며 컴파일이 안되네요..
꼭 한텀이 아니래두 xterm..Eterm등 상관 없거든요..
혹시 해보신분 또는 해결방법 아시는분 답변 부탁드립니다.
Forums:
댓글 달기