apache+tomcat 컴팔시 에러입니다 도움좀 요청합니다..^^
아파치 버젼은 1.3.33 , tomcat은 5.0.28 이고요
jk2 connector 컴팔시 에러 입니다.
컴팔 옵션은
./configure --with-apache=/usr/local/apache/ --with-apxs=/usr/local/apache/bin/apxs --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util/
이고요
에러메세지는
In file included from ../../include/jk_global.h:27,
from ../../include/jk_pool.h:25,
from ../../include/jk_map.h:26,
from ../../common/jk_channel.c:23:
/usr/local/apr/include/apr.h:269: parse error before `apr_off_t'
/usr/local/apr/include/apr.h:269: warning: data definition has no type or storage class
In file included from ../../include/jk_global.h:30,
from ../../include/jk_pool.h:25,
from ../../include/jk_map.h:26,
from ../../common/jk_channel.c:23:
/usr/local/apr/include/apr_strings.h:296: parse error before `apr_off_t'
/usr/local/apr/include/apr_strings.h:312: parse error before `*'
/usr/local/apr/include/apr_strings.h:348: parse error before `size'
In file included from /usr/local/apr/include/apr_file_io.h:28,
from /usr/local/apr/include/apr_network_io.h:25,
from ../../include/jk_global.h:31,
from ../../include/jk_pool.h:25,
from ../../include/jk_map.h:26,
from ../../common/jk_channel.c:23:
/usr/local/apr/include/apr_file_info.h:203: parse error before `apr_off_t'
/usr/local/apr/include/apr_file_info.h:203: warning: no semicolon at end of struct or union
/usr/local/apr/include/apr_file_info.h:205: warning: data definition has no type or storage class
/usr/local/apr/include/apr_file_info.h:218: parse error before `}'
In file included from /usr/local/apr/include/apr_network_io.h:25,
from ../../include/jk_global.h:31,
from ../../include/jk_pool.h:25,
from ../../include/jk_map.h:26,
from ../../common/jk_channel.c:23:
/usr/local/apr/include/apr_file_io.h:547: parse error before `apr_off_t'
/usr/local/apr/include/apr_file_io.h:739: parse error before `apr_off_t'
In file included from ../../include/jk_global.h:31,
from ../../include/jk_pool.h:25,
from ../../include/jk_map.h:26,
from ../../common/jk_channel.c:23:
/usr/local/apr/include/apr_network_io.h:544: parse error before `apr_off_t'
In file included from ../../include/jk_global.h:41,
from ../../include/jk_pool.h:25,
from ../../include/jk_map.h:26,
from ../../common/jk_channel.c:23:
/usr/include/time.h:217: `ctime' redeclared as different kind of symbol
/usr/local/apr/include/apr_file_info.h:211: previous declaration of `ctime'
make[1]: *** [../../../build/jk2/apache13/jk_channel.lo] 오류 1
make[1]: 나감 `/usr/local/src/jakarta-tomcat-connectors-jk2-2.0.4-src/jk/native2/server/apache13' 디렉토리
make: *** [jk2-build] 오류 1
왠종일 씨름하다 답답해서 올립니다..
약간의 도움이라도 부탁드립니다.
일단 가능성에 대해서 이야기 하겠습니다.만일 C프로그램에 대해서 어느
일단 가능성에 대해서 이야기 하겠습니다.
만일 C프로그램에 대해서 어느정도 알고 계신다면 위에서 주로 지적하는 apr_off_t
와 ctime이라는 구조체를 찾아서 형식을 맞춰준다면 가능합니다.
이런 종류의 문제가 발생하는 이유는 프로그램 개발당시의 C컴파일러의 버젼과
현재 컴파일하고자하는 컴파일러의 버젼에 차이가 있어서 그런 경우가 가장 큽니다.
최신버젼의 소스를 구해서 컴파일해보시는게 좋을것 같습니다. 그렇지 않고 이
버젼의 소스를 사용해야한다면 소스를 직접 수정해주어야 할겁니다.
------------------------------
좋은 하루 되세요.
답변 감사드립니다.
님 말씀대로 컴파일러부터 업급해봐야 할꺼 같습니다.
apr_off_t 구조체에 약간 의아한 점이 있어서..
답변 정말 감사드립니다.
⌒⌒γ
jk2는 apache2 버전을 위한 커넥터입니다. 그리고, 더이상 개발지
jk2는 apache2 버전을 위한 커넥터입니다. 그리고, 더이상 개발지원이 안된다고 합니다. jk로 설치하세요.
----
I paint objects as I think them, not as I see them.
atie's minipage
댓글 달기