apache+tomcat 컴팔시 에러입니다 도움좀 요청합니다..^^

fiennes의 이미지

아파치 버젼은 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

왠종일 씨름하다 답답해서 올립니다..
약간의 도움이라도 부탁드립니다.

codebank의 이미지

일단 가능성에 대해서 이야기 하겠습니다.
만일 C프로그램에 대해서 어느정도 알고 계신다면 위에서 주로 지적하는 apr_off_t
와 ctime이라는 구조체를 찾아서 형식을 맞춰준다면 가능합니다.

이런 종류의 문제가 발생하는 이유는 프로그램 개발당시의 C컴파일러의 버젼과
현재 컴파일하고자하는 컴파일러의 버젼에 차이가 있어서 그런 경우가 가장 큽니다.
최신버젼의 소스를 구해서 컴파일해보시는게 좋을것 같습니다. 그렇지 않고 이
버젼의 소스를 사용해야한다면 소스를 직접 수정해주어야 할겁니다.

------------------------------
좋은 하루 되세요.

fiennes의 이미지

님 말씀대로 컴파일러부터 업급해봐야 할꺼 같습니다.

apr_off_t 구조체에 약간 의아한 점이 있어서..

답변 정말 감사드립니다.

⌒⌒γ

atie의 이미지

jk2는 apache2 버전을 위한 커넥터입니다. 그리고, 더이상 개발지원이 안된다고 합니다. jk로 설치하세요.

----
I paint objects as I think them, not as I see them.
atie's minipage

댓글 달기

Filtered HTML

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

BBCode

  • 텍스트에 BBCode 태그를 사용할 수 있습니다. URL은 자동으로 링크 됩니다.
  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param>
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.

Textile

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • You can use Textile markup to format text.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Markdown

  • 다음 태그를 이용하여 소스 코드 구문 강조를 할 수 있습니다: <code>, <blockcode>, <apache>, <applescript>, <autoconf>, <awk>, <bash>, <c>, <cpp>, <css>, <diff>, <drupal5>, <drupal6>, <gdb>, <html>, <html5>, <java>, <javascript>, <ldif>, <lua>, <make>, <mysql>, <perl>, <perl6>, <php>, <pgsql>, <proftpd>, <python>, <reg>, <spec>, <ruby>. 지원하는 태그 형식: <foo>, [foo].
  • Quick Tips:
    • Two or more spaces at a line's end = Line break
    • Double returns = Paragraph
    • *Single asterisks* or _single underscores_ = Emphasis
    • **Double** or __double__ = Strong
    • This is [a link](http://the.link.example.com "The optional title text")
    For complete details on the Markdown syntax, see the Markdown documentation and Markdown Extra documentation for tables, footnotes, and more.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 사용할 수 있는 HTML 태그: <p><div><span><br><a><em><strong><del><ins><b><i><u><s><pre><code><cite><blockquote><ul><ol><li><dl><dt><dd><table><tr><td><th><thead><tbody><h1><h2><h3><h4><h5><h6><img><embed><object><param><hr>

Plain text

  • HTML 태그를 사용할 수 없습니다.
  • web 주소와/이메일 주소를 클릭할 수 있는 링크로 자동으로 바꿉니다.
  • 줄과 단락은 자동으로 분리됩니다.
댓글 첨부 파일
이 댓글에 이미지나 파일을 업로드 합니다.
파일 크기는 8 MB보다 작아야 합니다.
허용할 파일 형식: txt pdf doc xls gif jpg jpeg mp3 png rar zip.
CAPTCHA
이것은 자동으로 스팸을 올리는 것을 막기 위해서 제공됩니다.