본문 바로가기
카테고리 없음

Linux 에서 Apache 2.2.11 소스 컴파일 시 "undefined reference to `ap_thread_stacksize'" 오류가 나는 경우...

by 내꿈은한량 2009. 6. 30.
오늘 SKC&C 가 제작한 리눅스인 Ginux 에서 Apahce Http Server 2.2.11 버전의 소스 컴파일을 할 경우가 있었다.
uname 으로 확인해 보니 아래와 같이 나온다.
Linux xxx 2.6.16-337.2.j1.GX1 #1 SMP Thu Jun 7 17:01:22 KST 2007 x86_64 x86_64 x86_64 GNU/Linux
위와 같은 리눅스 버전으로 Apache 웹서버 2.2.11 버전을 아래 옵션을 주고 make 를 시도하더였더니
"undefined reference to `ap_thread_stacksize'" 가 나더라...
$ ./configure --prefix=/software/apache2.2 --with-mpm=worker --enable-module-so --enable-shared=max --enable-module=most
$ make
....
src/httpd-2.2.11/srclib/pcre/libpcre.la src/httpd-2.2.11/srclib/apr-util/libaprutil-1.la -lexpat src/httpd-2.2.11/srclib/apr/libapr-1.la -luuid -lrt -lcrypt -lpthread -ldl
server/mpm/worker/.libs/libworker.a(worker.o)(.text+0x13cc): In function `child_main':
src/httpd-2.2.11/server/mpm/worker/worker.c:1203: undefined reference to `ap_thread_stacksize'
collect2: ld returned 1 exit status
make[1]: *** [httpd] Error 1
make[1]: Leaving directory `src/httpd-2.2.11'
make: *** [all-recursive] Error 1
구글신께 여쭤보았더니 아래의 글을 알려주셨고 그대로 했더니 잘 되더라.. ㅋㅋ
https://issues.apache.org/bugzilla/show_bug.cgi?id=39283

핵심은
make distclean
이었다.

"make distclean" 후 다시 configure 부터 실행했더니 오류 없이 정상적으로 컴파일이 종료되었다...